Corrige l'affichage du radio-button "Personne morale" (#4081)
Administrateur : corrige l'affichage du radio-button "Personne morale"
This commit is contained in:
commit
34cc3793a8
3 changed files with 5 additions and 3 deletions
|
@ -62,7 +62,7 @@ class Admin::ProceduresController < AdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@procedure ||= Procedure.new
|
@procedure ||= Procedure.new(for_individual: true)
|
||||||
@availability = Procedure::PATH_AVAILABLE
|
@availability = Procedure::PATH_AVAILABLE
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
%h4 À qui s’adresse ma démarche ?
|
%h4 À qui s’adresse ma démarche ?
|
||||||
.checkbox
|
.checkbox
|
||||||
%label
|
%label
|
||||||
= f.radio_button :for_individual, 1, :checked => true
|
= f.radio_button :for_individual, true
|
||||||
%b Ma démarche s’adresse à un particulier
|
%b Ma démarche s’adresse à un particulier
|
||||||
|
|
||||||
%p
|
%p
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
|
|
||||||
.checkbox
|
.checkbox
|
||||||
%label
|
%label
|
||||||
= f.radio_button :for_individual, 0, :checked => false
|
= f.radio_button :for_individual, false
|
||||||
%b Ma démarche s’adresse à une personne morale
|
%b Ma démarche s’adresse à une personne morale
|
||||||
|
|
||||||
%p
|
%p
|
||||||
|
|
|
@ -36,6 +36,8 @@ feature 'As an administrateur I wanna create a new procedure', js: true do
|
||||||
click_on 'from-scratch'
|
click_on 'from-scratch'
|
||||||
|
|
||||||
expect(page).to have_current_path(new_admin_procedure_path)
|
expect(page).to have_current_path(new_admin_procedure_path)
|
||||||
|
expect(find('#procedure_for_individual_true')).to be_checked
|
||||||
|
expect(find('#procedure_for_individual_false')).not_to be_checked
|
||||||
fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3'
|
fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3'
|
||||||
fill_in 'procedure_duree_conservation_dossiers_hors_ds', with: '6'
|
fill_in 'procedure_duree_conservation_dossiers_hors_ds', with: '6'
|
||||||
click_on 'save-procedure'
|
click_on 'save-procedure'
|
||||||
|
|
Loading…
Reference in a new issue