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
|
2023-06-06 10:38:46 +02:00
|
|
|
|
.fr-accordions-group.fr-mb-3w
|
2023-12-05 16:13:49 +01:00
|
|
|
|
- cache [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)
|
|
|
|
|
|
|
|
|
|
- elsif procedure.pieces_jointes_list?
|
|
|
|
|
%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 procedure.pieces_jointes_list_without_conditionnal.present?
|
|
|
|
|
%ul
|
|
|
|
|
= render partial: "shared/procedure_pieces_jointes_list", collection: procedure.pieces_jointes_list_without_conditionnal, as: :pj
|
2023-06-13 10:49:16 +02:00
|
|
|
|
|
2023-11-24 14:40:05 +01: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
|
|
|
|
|
= render partial: "shared/procedure_pieces_jointes_list", collection: procedure.pieces_jointes_list_with_conditionnal, as: :pj
|
2023-06-01 14:54:58 +02:00
|
|
|
|
|
2023-11-24 14:40:05 +01:00
|
|
|
|
- if procedure.stats_usual_traitement_time
|
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-24 14:40:05 +01:00
|
|
|
|
= t('shared.procedure_description.usual_traitement_time_detail_html', traitement_time: distance_of_time_in_words(procedure.stats_usual_traitement_time), percentile: ProcedureStatsConcern::USUAL_TRAITEMENT_TIME_PERCENTILE, days: ProcedureStatsConcern::NB_DAYS_RECENT_DOSSIERS, href: statistiques_path(procedure.path) )
|
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(' ', " "))
|