demarches-normaliennes/app/views/users/dossiers/_identity_dropdown.html.haml

18 lines
1 KiB
Text
Raw Normal View History

= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: { class: ['dossier-show', 'edit-identity-action'] }, menu_options: { class:['edit-identity-content'] }) do |menu|
- menu.with_button_inner_html do
2023-12-11 17:06:12 +01:00
- if dossier.for_tiers?
= t("views.shared.dossiers.demande.requester_identity")
- else
= t("views.shared.dossiers.demande.individual_identity")
- menu.with_form do
- if dossier.procedure.for_individual
2023-11-14 16:11:17 +01:00
= render partial: "shared/dossiers/identite_individual", locals: { dossier: dossier }
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-btn fr-btn--secondary fr-btn--sm fr-my-1w'
- elsif dossier.etablissement
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: dossier.etablissement, short_identity: true, profile: "usager" }
= link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'fr-btn fr-btn--secondary fr-btn--sm fr-my-1w'