2019-01-08 08:20:49 +01:00
|
|
|
|
.procedure-logos
|
2024-08-05 17:19:11 +02:00
|
|
|
|
= image_tag procedure.logo_url, 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
|
2024-08-05 17:20:32 +02:00
|
|
|
|
%span.fr-icon-timer-line{ "aria-hidden" => "true" }
|
2023-05-22 15:36:48 +02:00
|
|
|
|
= 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
|
2023-06-06 10:38:46 +02:00
|
|
|
|
.fr-accordions-group.fr-mb-3w
|
2024-02-15 18:45:13 +01:00
|
|
|
|
- cache_unless(procedure.brouillon?, [I18n.locale, procedure, "description"]) do
|
2023-05-25 15:19:55 +02:00
|
|
|
|
%section.fr-accordion
|
|
|
|
|
%h2.fr-accordion__title
|
2023-11-24 14:40:05 +01:00
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-114", "aria-expanded" => "true" }
|
|
|
|
|
= t('activerecord.attributes.procedure.description')
|
|
|
|
|
#accordion-114.fr-collapse
|
|
|
|
|
= h render SimpleFormatComponent.new(procedure.description, allow_a: true)
|
2023-06-01 11:13:34 +02:00
|
|
|
|
|
2023-11-24 14:40:05 +01:00
|
|
|
|
- if procedure.description_target_audience.present?
|
|
|
|
|
%section.fr-accordion
|
|
|
|
|
%h2.fr-accordion__title
|
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-115", "aria-expanded" => "false" }
|
|
|
|
|
= t('activerecord.attributes.procedure.description_target_audience')
|
|
|
|
|
#accordion-115.fr-collapse
|
|
|
|
|
= h render SimpleFormatComponent.new(procedure.description_target_audience, allow_a: true)
|
2023-06-22 09:50:38 +02:00
|
|
|
|
|
2023-11-24 14:40:05 +01: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)
|
|
|
|
|
|
2024-04-26 15:36:30 +02:00
|
|
|
|
- else
|
|
|
|
|
- pj_without_condition, pj_with_condition = procedure.public_wrapped_partionned_pjs
|
|
|
|
|
- if pj_without_condition.present? || pj_with_condition.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
|
|
|
|
|
- if pj_without_condition.present?
|
|
|
|
|
%ul
|
|
|
|
|
= render partial: "shared/procedure_pieces_jointes_list", collection: pj_without_condition, as: :pj
|
2023-06-13 10:49:16 +02:00
|
|
|
|
|
2024-04-26 15:36:30 +02:00
|
|
|
|
- if pj_with_condition.present?
|
|
|
|
|
%h3.fr-text--sm.fr-mb-0.fr-mt-2w
|
|
|
|
|
= t('shared.procedure_description.pieces_jointes_conditionnal_list_title')
|
|
|
|
|
%ul
|
|
|
|
|
= render partial: "shared/procedure_pieces_jointes_list", collection: pj_with_condition, as: :pj
|
2023-06-01 14:54:58 +02:00
|
|
|
|
|
2023-11-28 17:04:19 +01:00
|
|
|
|
- estimated_delay_component = Procedure::EstimatedDelayComponent.new(procedure: procedure)
|
|
|
|
|
- if estimated_delay_component.render?
|
2023-06-01 11:13:34 +02:00
|
|
|
|
%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-07-27 16:46:20 +02:00
|
|
|
|
= t('shared.procedure_description.usual_traitement_time_title')
|
|
|
|
|
|
2023-06-01 14:54:58 +02:00
|
|
|
|
#accordion-117.fr-collapse
|
2023-11-28 17:04:19 +01:00
|
|
|
|
= render estimated_delay_component
|
2023-07-27 16:46:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if procedure.persisted? && procedure.estimated_duration_visible?
|
|
|
|
|
%section.fr-accordion
|
|
|
|
|
%h2.fr-accordion__title
|
|
|
|
|
%button.fr-accordion__btn{ "aria-controls" => "accordion-118", "aria-expanded" => "false" }
|
|
|
|
|
= t('shared.procedure_description.estimated_fill_duration_title')
|
|
|
|
|
#accordion-118.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-06 10:38:46 +02:00
|
|
|
|
.fr-my-3w
|
|
|
|
|
= render Procedure::NoticeComponent.new(procedure:)
|
|
|
|
|
|
2023-06-28 16:34:50 +02:00
|
|
|
|
- if procedure.sva_svr_enabled?
|
|
|
|
|
= render Dsfr::CalloutComponent.new(title: t('shared.procedure_description.sva_svr_title', rule: t(procedure.sva_svr_decision, scope: 'shared.procedures.sva_svr_rule_name')), icon: "fr-fi-information-line", extra_class_names: "fr-my-6w") do |c|
|
2023-06-06 10:38:46 +02:00
|
|
|
|
- c.with_body do
|
|
|
|
|
%p
|
2023-06-28 16:34:50 +02:00
|
|
|
|
= t("#{procedure.sva_svr_decision}_text_html", scope: 'shared.procedure_description') # i18n-tasks-use: t('shared.procedure_description.sva_text_html') t('shared.procedure_description.svr_text_html')
|
|
|
|
|
%p.fr-mt-1w
|
|
|
|
|
= t('shared.procedure_description.sva_svr_prevision_date',
|
|
|
|
|
delay: t("x_#{procedure.sva_svr_configuration.unit}", count: procedure.sva_svr_configuration.period.to_i, scope: 'datetime.distance_in_words'),
|
|
|
|
|
date: l(SVASVRDecisionDateCalculatorService.decision_date_from_today(procedure), format: :long).gsub(' ', " "))
|