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.
Merge branch 'main' into feat/dashboard
- Loading branch information
Showing
30 changed files
with
334 additions
and
52 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- student_id = local_assigns.fetch(:student_id) | ||
- field_name = local_assigns.fetch(:field_name) | ||
- current_value = local_assigns.fetch(:current_value) | ||
|
||
%fieldset.fr-fieldset{id: "radio-inline-#{student_id}", "aria-labelledby": "radio-inline-legend-#{student_id} radio-inline-messages-#{student_id}"} | ||
%legend.fr-fieldset__legend--regular.fr-fieldset__legend{id: "radio-inline-legend-#{student_id}"} | ||
Les coordonnées bancaires appartiennent à : | ||
.fr-fieldset__element.fr-fieldset__element--inline | ||
.fr-radio-group | ||
%input{id: "radio-inline-1-#{student_id}", type: "radio", value: "personal", name: field_name, checked: current_value == "personal"} | ||
%label.fr-label{for: "radio-inline-1-#{student_id}"} | ||
l'élève | ||
.fr-fieldset__element.fr-fieldset__element--inline | ||
.fr-radio-group | ||
%input{id: "radio-inline-2-#{student_id}", type: "radio", value: "other_person", name: field_name, checked: current_value == "other_person"} | ||
%label.fr-label{for: "radio-inline-2-#{student_id}"} | ||
un représentant légal ou à un tiers | ||
.fr-fieldset__element.fr-fieldset__element--inline | ||
.fr-radio-group | ||
%input{id: "radio-inline-3-#{student_id}", type: "radio", value: "moral_person", name: field_name, checked: current_value == "moral_person"} | ||
%label.fr-label{for: "radio-inline-3-#{student_id}"} | ||
une personne morale | ||
.fr-messages-group{id: "radio-inline-messages-#{student_id}", "aria-live": "assertive"} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.fr-container | ||
.fr-grid-row | ||
.fr-col-md-6.fr-mb-3w | ||
- if @schooling.extended_end_date.present? | ||
= dsfr_alert(type: :warning, title: "Êtes-vous certain(e) de vouloir supprimer le report de cette décision d'attribution ?") | ||
- else | ||
= dsfr_alert(type: :warning, title: "Êtes-vous certain(e) de vouloir reporter cette décision d'attribution ?") | ||
|
||
.fr-grid-row | ||
.fr-col-md-6.fr-mb-3w | ||
= form_with model: @schooling, url: school_year_class_schooling_path(selected_school_year, @classe, @schooling), method: :patch, builder: DsfrFormBuilder, data: { turbo: false } do |form| | ||
%ul | ||
%li | ||
Etudiant : | ||
%span= @schooling.student.full_name | ||
|
||
%li | ||
Classe : | ||
%span= @schooling.classe.to_long_s | ||
|
||
%li | ||
Date de fin initiale : | ||
%span= @schooling.end_date.to_s | ||
|
||
.fr-col-md-6 | ||
= form.dsfr_date_field :extended_end_date, value: @schooling.extended_end_date, disabled: @schooling.extended_end_date.present? | ||
|
||
.fr-col-md-6.fr-mt-3w | ||
= render partial: "shared/confirmed_director", locals: { message: t("panels.attributive_decisions.confirm_director") } | ||
|
||
.fr-btns-group.fr-btns-group--inline.fr-mt-3w | ||
= link_to "Annuler", school_year_class_path(selected_school_year, @classe), class: 'fr-btn fr-btn--secondary' | ||
- if @schooling.extended_end_date.present? | ||
= form.hidden_field :extended_end_date, value: nil | ||
= form.submit "Supprimer le report", class: 'fr-btn fr-btn--danger fr-btn--secondary' | ||
- else | ||
= form.submit "Confirmer le report", class: 'fr-btn fr-btn--danger fr-btn--secondary' |
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,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Aplypro | ||
VERSION = "1.18.1" | ||
VERSION = "1.18.2" | ||
end |
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
Oops, something went wrong.