Skip to content

Commit

Permalink
Wrap reissue button within accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
pskl committed Nov 20, 2024
1 parent 14e1c79 commit b2a30d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions app/views/home/_attributive_decision_reissue_form.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
= form_with method: :post, url: school_year_establishment_reissue_attributive_decisions_path(selected_school_year, current_establishment) do |form|
.fr-checkbox-group
= form.check_box :confirmed_director, checked: current_user.confirmed_director?
= form.label :confirmed_director, class: "fr-label" do
= t("panels.attributive_decisions.confirm_director").html_safe
.fr-text--sm.fr-mt-1w= confirmed_director_information
= form.submit "Rééditer les décisions d'attribution", class: "fr-btn fr-btn--secondary"
%section.fr-accordion
%h3.fr-accordion__title
%button.fr-accordion__btn{"aria-controls" => "accordion-106", "aria-expanded" => "false"}
Rééditer les décisions d'attribution précédemment éditées
.fr-collapse#accordion-106
= form_with method: :post, url: school_year_establishment_reissue_attributive_decisions_path(selected_school_year, current_establishment) do |form|
.fr-checkbox-group
= form.check_box :confirmed_director, checked: current_user.confirmed_director?
= form.label :confirmed_director, class: "fr-label" do
= t("panels.attributive_decisions.confirm_director").html_safe
.fr-text--sm.fr-mt-1w= confirmed_director_information
= form.submit "Rééditer les décisions d'attribution", class: "fr-btn fr-btn--secondary"
2 changes: 1 addition & 1 deletion features/step_definitions/web_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
end

Quand("je coche {string}") do |label|
check label
check label, visible: true
end

Quand("je clique sur {string} dans la rangée {string}") do |link, row|
Expand Down

0 comments on commit b2a30d2

Please sign in to comment.