ensure the mandatory star hint is always displayed
This commit is contained in:
parent
898badb579
commit
00d0813292
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#{champ.libelle}
|
||||
- if champ.mandatory?
|
||||
- if champ.type_de_champ.mandatory?
|
||||
%span.mandatory *
|
||||
|
||||
- if champ.updated_at.present? && seen_at.present?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
.secondary{ class: champ.has_secondary_options_for_primary? ? '' : 'hidden' }
|
||||
= form.label :secondary_value, for: "#{champ.input_id}-secondary" do
|
||||
= champ.drop_down_secondary_libelle.presence || "Valeur secondaire dépendant de la première"
|
||||
- if champ.mandatory?
|
||||
- if champ.type_de_champ.mandatory?
|
||||
%span.mandatory *
|
||||
- if champ.drop_down_secondary_description.present?
|
||||
.notice{ id: "#{champ.describedby_id}-secondary" }= string_to_html(champ.drop_down_secondary_description)
|
||||
|
|
|
@ -299,7 +299,7 @@ describe 'The user' do
|
|||
fill_individual
|
||||
|
||||
fill_in('age', with: '18')
|
||||
expect(page).to have_css('label', text: 'nom', visible: :visible)
|
||||
expect(page).to have_css('label', text: 'nom *', visible: :visible)
|
||||
|
||||
click_on 'Déposer le dossier'
|
||||
expect(page).to have_current_path(brouillon_dossier_path(user_dossier))
|
||||
|
|
Loading…
Add table
Reference in a new issue