Merge pull request #9116 from demarches-simplifiees/add-detail-on-time-estimation-on-description-procedure-page
[Refonte page accueil demarche] Ajout du détail sur le temps d'estimation
This commit is contained in:
commit
b7f60c8e7a
3 changed files with 16 additions and 2 deletions
|
@ -29,13 +29,23 @@
|
|||
.fr-accordions-group
|
||||
%section.fr-accordion
|
||||
%h2.fr-accordion__title
|
||||
%button.fr-accordion__btn{ "aria-controls" => "accordion-114", "aria-expanded" => "true" } Quel est l’objet de cette démarche ?
|
||||
%button.fr-accordion__btn{ "aria-controls" => "accordion-114", "aria-expanded" => "true" }
|
||||
= t('activerecord.attributes.procedure.description')
|
||||
#accordion-114.fr-collapse.js_description
|
||||
= h render SimpleFormatComponent.new(procedure.description, allow_a: true)
|
||||
|
||||
- if procedure.description_target_audience.present?
|
||||
%section.fr-accordion
|
||||
%h2.fr-accordion__title
|
||||
%button.fr-accordion__btn{ "aria-controls" => "accordion-115", "aria-expanded" => "false" } À qui s’adresse la démarche ?
|
||||
%button.fr-accordion__btn{ "aria-controls" => "accordion-115", "aria-expanded" => "false" }
|
||||
= t('activerecord.attributes.procedure.description_target_audience')
|
||||
#accordion-115.fr-collapse.js_description_target_audience
|
||||
= h render SimpleFormatComponent.new(procedure.description_target_audience, allow_a: true)
|
||||
|
||||
- if procedure.persisted? && procedure.estimated_duration_visible?
|
||||
%section.fr-accordion
|
||||
%h2.fr-accordion__title
|
||||
%button.fr-accordion__btn{ "aria-controls" => "accordion-116", "aria-expanded" => "false" }
|
||||
= t('shared.procedure_description.estimated_fill_duration_title')
|
||||
#accordion-116.fr-collapse.js_description_target_audience
|
||||
= t('shared.procedure_description.estimated_fill_duration_detail', estimated_minutes: estimated_fill_duration_minutes(procedure))
|
||||
|
|
|
@ -822,3 +822,5 @@ en:
|
|||
weekly_distribution_details: "in the last 6 months"
|
||||
procedure_description:
|
||||
estimated_fill_duration: "Estimated fill time: %{estimated_minutes} mn"
|
||||
estimated_fill_duration_title: What is the procedure estimated fill time ?
|
||||
estimated_fill_duration_detail: "The fill time is etimated to %{estimated_minutes} min. This period may vary depending on the options you choose"
|
||||
|
|
|
@ -868,3 +868,5 @@ fr:
|
|||
weekly_distribution_details: "au cours des 6 derniers mois"
|
||||
procedure_description:
|
||||
estimated_fill_duration: "Temps de remplissage estimé : %{estimated_minutes} mn"
|
||||
estimated_fill_duration_title: Quelle est la durée de remplissage de la démarche ?
|
||||
estimated_fill_duration_detail: "La durée de remplissage est estimée à %{estimated_minutes} min. Ce délai peut varier selon les options que vous choisirez."
|
||||
|
|
Loading…
Reference in a new issue