2019-01-08 08:20:49 +01:00
|
|
|
|
.procedure-logos
|
2020-05-14 18:11:13 +02:00
|
|
|
|
- procedure_logo_alt = ''
|
|
|
|
|
- if procedure.service.present?
|
|
|
|
|
- procedure_logo_alt = "#{procedure.service.nom} − #{procedure.service.organisme}"
|
|
|
|
|
= image_tag procedure.logo_url, alt: procedure_logo_alt
|
2019-10-21 17:18:05 +02:00
|
|
|
|
- if procedure.euro_flag
|
2019-09-24 16:38:58 +02:00
|
|
|
|
= image_tag("flag_of_europe.svg", id: 'euro_flag', class: (!procedure.euro_flag ? "hidden" : ""))
|
2023-05-31 11:33:59 +02:00
|
|
|
|
%h1.fr-h2
|
2019-01-08 08:20:49 +01:00
|
|
|
|
= procedure.libelle
|
2020-05-27 11:25:43 +02:00
|
|
|
|
|
2023-01-31 18:52:47 +01:00
|
|
|
|
- if procedure.persisted? && procedure.estimated_duration_visible?
|
2023-05-22 15:36:48 +02:00
|
|
|
|
%p
|
|
|
|
|
%small
|
|
|
|
|
%span.fr-icon-timer-line
|
|
|
|
|
= t('shared.procedure_description.estimated_fill_duration', estimated_minutes: estimated_fill_duration_minutes(procedure))
|
|
|
|
|
|
2020-05-27 11:25:43 +02:00
|
|
|
|
- if procedure.auto_archive_on
|
2023-06-05 17:28:38 +02:00
|
|
|
|
%p
|
|
|
|
|
%small
|
|
|
|
|
%span.fr-icon-calendar-line
|
|
|
|
|
Date limite : #{procedure_auto_archive_datetime(procedure)}.
|
2020-05-27 11:25:43 +02:00
|
|
|
|
|
2023-06-05 17:28:38 +02:00
|
|
|
|
= yield
|
2020-05-27 11:25:43 +02:00
|
|
|
|
|
2023-05-25 15:19:55 +02:00
|
|
|
|
- unless @no_description
|
|
|
|
|
.fr-accordions-group
|
2023-05-23 15:24:42 +02:00
|
|
|
|
%section.fr-accordion
|
2023-05-24 11:18:54 +02:00
|
|
|
|
%h2.fr-accordion__title
|
2023-06-01 11:13:34 +02:00
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-114", "aria-expanded" => "true" }
|
|
|
|
|
= t('activerecord.attributes.procedure.description')
|
2023-06-01 14:54:58 +02:00
|
|
|
|
#accordion-114.fr-collapse
|
2023-05-25 15:19:55 +02:00
|
|
|
|
= h render SimpleFormatComponent.new(procedure.description, allow_a: true)
|
|
|
|
|
|
|
|
|
|
- if procedure.description_target_audience.present?
|
|
|
|
|
%section.fr-accordion
|
|
|
|
|
%h2.fr-accordion__title
|
2023-06-01 11:13:34 +02:00
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-115", "aria-expanded" => "false" }
|
|
|
|
|
= t('activerecord.attributes.procedure.description_target_audience')
|
2023-06-01 14:54:58 +02:00
|
|
|
|
#accordion-115.fr-collapse
|
2023-05-25 15:19:55 +02:00
|
|
|
|
= h render SimpleFormatComponent.new(procedure.description_target_audience, allow_a: true)
|
2023-06-01 11:13:34 +02:00
|
|
|
|
|
2023-06-22 09:50:38 +02:00
|
|
|
|
- if procedure.description_pj.present?
|
|
|
|
|
%section.fr-accordion.pieces_jointes
|
|
|
|
|
%h2.fr-accordion__title
|
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-116", "aria-expanded" => "false" }
|
|
|
|
|
= t('shared.procedure_description.pieces_jointes')
|
|
|
|
|
#accordion-116.fr-collapse
|
|
|
|
|
= h render SimpleFormatComponent.new(procedure.description_pj, allow_a: true)
|
|
|
|
|
|
|
|
|
|
- elsif procedure.pieces_jointes_list?
|
2023-06-01 14:54:58 +02:00
|
|
|
|
%section.fr-accordion.pieces_jointes
|
|
|
|
|
%h2.fr-accordion__title
|
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-116", "aria-expanded" => "false" }
|
|
|
|
|
= t('shared.procedure_description.pieces_jointes')
|
|
|
|
|
#accordion-116.fr-collapse
|
2023-06-13 10:49:16 +02:00
|
|
|
|
- if procedure.pieces_jointes_list_without_conditionnal.present?
|
|
|
|
|
%ul
|
|
|
|
|
- procedure.pieces_jointes_list_without_conditionnal.each do |pj|
|
|
|
|
|
%li
|
|
|
|
|
= pj.libelle
|
2023-06-15 14:33:13 +02:00
|
|
|
|
= t('utils.no_mandatory') if !pj.mandatory?
|
2023-06-13 10:49:16 +02:00
|
|
|
|
|
|
|
|
|
- if procedure.pieces_jointes_list_with_conditionnal.present?
|
|
|
|
|
%h3.fr-text--sm.fr-mb-0.fr-mt-2w
|
|
|
|
|
= t('shared.procedure_description.pieces_jointes_conditionnal_list_title')
|
|
|
|
|
%ul
|
|
|
|
|
- procedure.pieces_jointes_list_with_conditionnal.each do |pj|
|
|
|
|
|
%li
|
|
|
|
|
= pj.libelle
|
2023-06-15 14:33:13 +02:00
|
|
|
|
= t('utils.no_mandatory') if !pj.mandatory?
|
2023-06-01 14:54:58 +02:00
|
|
|
|
|
2023-06-01 11:13:34 +02:00
|
|
|
|
- if procedure.persisted? && procedure.estimated_duration_visible?
|
|
|
|
|
%section.fr-accordion
|
|
|
|
|
%h2.fr-accordion__title
|
2023-06-01 14:54:58 +02:00
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-117", "aria-expanded" => "false" }
|
2023-06-01 11:13:34 +02:00
|
|
|
|
= t('shared.procedure_description.estimated_fill_duration_title')
|
2023-06-01 14:54:58 +02:00
|
|
|
|
#accordion-117.fr-collapse
|
2023-06-01 11:13:34 +02:00
|
|
|
|
= t('shared.procedure_description.estimated_fill_duration_detail', estimated_minutes: estimated_fill_duration_minutes(procedure))
|
2023-06-05 14:25:51 +02:00
|
|
|
|
|
2023-06-07 10:52:24 +02:00
|
|
|
|
- if procedure.notice.attached?
|
2023-06-05 14:25:51 +02:00
|
|
|
|
.fr-my-3w
|
|
|
|
|
= render Dsfr::DownloadComponent.new(attachment: procedure.notice , url: notice_url(procedure), name: t("views.shared.dossiers.edit.notice"), ephemeral_link: administrateur_signed_in?)
|