generated from betagouv/rails-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Déplacer le bouton 'Retirer l'élève de la classe' (#1222)
- Loading branch information
Showing
4 changed files
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,13 @@ | |
%td | ||
%strong= number_to_currency(pfmp.amount) | ||
|
||
.actions | ||
.fr-btns-group.fr-btns-group--inline | ||
= button_to "Ajouter une PFMP", new_school_year_class_schooling_pfmp_path(classe.school_year, classe, schooling), class: 'fr-btn', disabled: !classe.establishment.eql?(current_establishment), method: :get | ||
- if schooling.attributive_decision.attached? | ||
= button_to "Télécharger la décision d'attribution", url_for(schooling.attributive_decision), class: 'fr-btn fr-btn--secondary', disabled: !classe.establishment.eql?(current_establishment), target: :download, method: :get | ||
- if schooling.abrogation_decision.attached? | ||
= button_to "Télécharger la décision d'abrogation", url_for(schooling.abrogation_decision), class: 'fr-btn fr-btn--secondary', disabled: !classe.establishment.eql?(current_establishment), target: :download, method: :get | ||
- if classe.establishment.eql?(current_establishment) | ||
.actions | ||
.fr-btns-group.fr-btns-group--inline | ||
= button_to "Ajouter une PFMP", new_school_year_class_schooling_pfmp_path(classe.school_year, classe, schooling), class: 'fr-btn', method: :get | ||
- if schooling.attributive_decision.attached? | ||
= button_to "Télécharger la décision d'attribution", url_for(schooling.attributive_decision), class: 'fr-btn fr-btn--secondary', target: :download, method: :get | ||
- if schooling.abrogation_decision.attached? | ||
= button_to "Télécharger la décision d'abrogation", url_for(schooling.abrogation_decision), class: 'fr-btn fr-btn--secondary', target: :download, method: :get | ||
- if [email protected]_schooling.nil? && @student.current_schooling.eql?(schooling) && !schooling.removed? | ||
= button_to "Retirer l'élève de la classe", confirm_removal_school_year_class_schooling_path(classe.school_year, classe, schooling), class: 'fr-btn fr-btn--danger', method: :get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
%section.fr-pb-3w | ||
-if [email protected]_schooling.nil? && [email protected]_schooling.removed? | ||
.fr-btns-group.fr-btns-group--inline.fr-mt-3w | ||
= button_to "Retirer l'élève de la classe", confirm_removal_school_year_class_schooling_path(selected_school_year, @student.current_schooling.classe, @student.current_schooling), class: 'fr-btn fr-btn--danger', method: :get | ||
|
||
%h2.fr-h4 Coordonnées bancaires | ||
- if @student.rib(current_establishment).nil? | ||
%p Aucune coordonnée bancaire enregistrée pour le moment. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters