fix input name for lien site web

This commit is contained in:
Lisa Durand 2023-07-17 17:15:44 +02:00
parent b86de113bd
commit 7d1733c4ad

View file

@ -1,5 +1,5 @@
.fr-input-group
= form.label :procedure_path, class: 'fr-label' do
= label_tag :procedure_path, class: 'fr-label' do
= t('activerecord.attributes.procedure.procedure_path')
%span.fr-hint-text
@ -16,6 +16,7 @@
class: 'unstyled flex-1',
pattern: '^[a-z0-9_-]{3,200}$',
autocomplete: 'off')
-# %span{ data: { controller: 'clipboard', clipboard_text_value: '' } }
-# %button.fr-btn.fr-icon-clipboard-line.fr-btn--sm.fr-btn--secondary.fr-btn--icon-left{ data: { action: 'clipboard#copy' }, title: 'Copier le lien public' }
-# Copier le lien public
@ -26,8 +27,18 @@
- c.body do
= t('activerecord.attributes.procedure.procedure_path_alert', link: APPLICATION_NAME)
= render Dsfr::InputComponent.new(form: form, attribute: :lien_site_web, input_type: :text_field, opts: {placeholder: t('activerecord.attributes.procedure.lien_site_web_placeholder')})
.fr-input-group
= label_tag :lien_site_web, class: 'fr-label' do
= t('activerecord.attributes.procedure.lien_site_web')
%span.fr-hint-text
= t('activerecord.attributes.procedure.hints.lien_site_web')
= text_field_tag(:lien_site_web, procedure.lien_site_web,
required: true,
class: 'fr-input',
autocomplete: 'off',
placeholder: t('activerecord.attributes.procedure.lien_site_web_placeholder'))
- if closed_procedures.present?
.fr-select-group