2018-08-07 14:11:55 +02:00
|
|
|
|
#publish-modal.modal{ "aria-labelledby" => "myModalLabel", :role => "dialog", :tabindex => "-1" }
|
2017-04-06 19:10:25 +02:00
|
|
|
|
.modal-dialog.modal-lg{ :role => "document" }
|
2016-06-30 12:33:43 +02:00
|
|
|
|
= form_tag admin_procedure_publish_path(procedure_id: @procedure.id), method: :put, remote: true do
|
2016-06-24 16:41:44 +02:00
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
2017-04-06 19:10:25 +02:00
|
|
|
|
%button.close{ "aria-label" => "Close", "data-dismiss" => "modal", :type => "button" }
|
|
|
|
|
%span{ "aria-hidden" => "true" } ×
|
2016-06-24 16:41:44 +02:00
|
|
|
|
%h4#myModalLabel.modal-title
|
2018-08-14 15:17:22 +02:00
|
|
|
|
= procedure_modal_text(@procedure, :title)
|
2017-04-12 11:12:05 +02:00
|
|
|
|
%span#publish-modal-title
|
2016-06-24 16:41:44 +02:00
|
|
|
|
.modal-body
|
2018-08-14 15:17:22 +02:00
|
|
|
|
= procedure_modal_text(@procedure, :body)
|
2018-01-11 19:04:39 +01:00
|
|
|
|
- if !@procedure.archivee?
|
2016-06-24 16:57:35 +02:00
|
|
|
|
%b
|
2018-08-14 15:17:22 +02:00
|
|
|
|
Elle ne pourra plus être modifiée à l’issue de cette publication.
|
2016-06-24 16:41:44 +02:00
|
|
|
|
%br
|
2018-09-05 14:48:42 +02:00
|
|
|
|
Afin de faciliter l’accès à la démarche, vous êtes invité à personnaliser l’adresse d'accès si vous le souhaitez.
|
2016-06-24 16:41:44 +02:00
|
|
|
|
%br
|
|
|
|
|
.form-group
|
|
|
|
|
%br
|
2018-09-05 14:48:42 +02:00
|
|
|
|
%h4 Lien de la démarche
|
2016-06-24 16:41:44 +02:00
|
|
|
|
%p.center
|
2018-08-14 15:17:22 +02:00
|
|
|
|
= commencer_url(procedure_path: '')
|
2018-09-19 17:12:12 +02:00
|
|
|
|
= text_field_tag('procedure_path', @procedure.path || @procedure.default_path,
|
2016-06-24 16:41:44 +02:00
|
|
|
|
id: 'procedure_path',
|
2018-09-05 14:48:42 +02:00
|
|
|
|
placeholder: 'Chemin vers la démarche',
|
2018-08-22 15:06:19 +02:00
|
|
|
|
data: { autocomplete: 'path' },
|
2017-04-06 17:18:03 +02:00
|
|
|
|
class: 'form-control',
|
2017-04-14 11:34:53 +02:00
|
|
|
|
maxlength: 50,
|
2017-04-06 19:58:11 +02:00
|
|
|
|
style: 'width: 300px; display: inline;')
|
2017-04-12 11:12:05 +02:00
|
|
|
|
#path-messages
|
2016-06-24 16:41:44 +02:00
|
|
|
|
#path_is_mine.text-warning.center.message
|
2018-09-05 14:48:42 +02:00
|
|
|
|
Ce lien est déjà utilisé par une de vos démarche.
|
2016-06-24 16:41:44 +02:00
|
|
|
|
%br
|
2018-09-05 14:48:42 +02:00
|
|
|
|
Si vous voulez l’utiliser, l’ancienne démarche sera archivée (plus accessible du public).
|
2016-06-24 16:41:44 +02:00
|
|
|
|
#path_is_not_mine.text-danger.center.message
|
2018-09-05 14:48:42 +02:00
|
|
|
|
Ce lien est déjà utilisé par une démarche.
|
2016-06-24 16:41:44 +02:00
|
|
|
|
%br
|
2018-08-14 15:17:22 +02:00
|
|
|
|
Vous ne pouvez pas l’utiliser car il appartient à un autre administrateur.
|
2016-06-24 16:41:44 +02:00
|
|
|
|
#path_is_invalid.text-danger.center.message
|
2017-04-14 11:34:53 +02:00
|
|
|
|
= t('activerecord.errors.models.procedure_path.attributes.path.format')
|
2016-06-24 16:41:44 +02:00
|
|
|
|
.modal-footer
|
2018-08-14 15:17:22 +02:00
|
|
|
|
= submit_tag procedure_modal_text(@procedure, :submit), class: %w(btn btn btn-success), disabled: :disabled, id: 'publish'
|
|
|
|
|
= button_tag "Annuler", class: %w(btn btn btn-default), data: { dismiss: :modal }, id: 'cancel'
|