Fix link to procedure brouillon in manager
This commit is contained in:
parent
901765c6d7
commit
d54a0a4612
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
- if field.data.present?
|
||||
= link_to "/commencer/#{field.data}", commencer_url(path: field.data), target: '_blank'
|
||||
= link_to Addressable::URI.parse(procedure_lien(field.resource)).path, procedure_lien(field.resource), target: '_blank'
|
||||
- else
|
||||
Plus en ligne
|
||||
|
|
|
@ -36,5 +36,10 @@ module TPS
|
|||
config.active_job.queue_adapter = :delayed_job
|
||||
|
||||
config.action_view.sanitized_allowed_tags = ActionView::Base.sanitized_allowed_tags + ['u']
|
||||
|
||||
config.to_prepare do
|
||||
# Make main application helpers available in administrate
|
||||
Administrate::ApplicationController.helper(TPS::Application.helpers)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue