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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue