fix input name for lien site web
This commit is contained in:
parent
b86de113bd
commit
7d1733c4ad
1 changed files with 13 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
.fr-input-group
|
.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')
|
= t('activerecord.attributes.procedure.procedure_path')
|
||||||
|
|
||||||
%span.fr-hint-text
|
%span.fr-hint-text
|
||||||
|
@ -16,6 +16,7 @@
|
||||||
class: 'unstyled flex-1',
|
class: 'unstyled flex-1',
|
||||||
pattern: '^[a-z0-9_-]{3,200}$',
|
pattern: '^[a-z0-9_-]{3,200}$',
|
||||||
autocomplete: 'off')
|
autocomplete: 'off')
|
||||||
|
|
||||||
-# %span{ data: { controller: 'clipboard', clipboard_text_value: '' } }
|
-# %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' }
|
-# %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
|
-# Copier le lien public
|
||||||
|
@ -26,8 +27,18 @@
|
||||||
- c.body do
|
- c.body do
|
||||||
= t('activerecord.attributes.procedure.procedure_path_alert', link: APPLICATION_NAME)
|
= 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?
|
- if closed_procedures.present?
|
||||||
.fr-select-group
|
.fr-select-group
|
||||||
|
|
Loading…
Reference in a new issue