Fix link to procedure brouillon in manager

This commit is contained in:
Frederic Merizen 2019-03-01 17:54:17 +01:00 committed by simon lehericey
parent 901765c6d7
commit d54a0a4612
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,4 @@
- if field.data.present? - 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 - else
Plus en ligne Plus en ligne

View file

@ -36,5 +36,10 @@ module TPS
config.active_job.queue_adapter = :delayed_job config.active_job.queue_adapter = :delayed_job
config.action_view.sanitized_allowed_tags = ActionView::Base.sanitized_allowed_tags + ['u'] 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
end end