2023-01-06 17:50:35 +01:00
|
|
|
= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: {class: ['edit-identity-action']}, menu_options: { class:['edit-identity-content'] }) do |menu|
|
|
|
|
- menu.with_button_inner_html do
|
2022-07-13 12:58:42 +02:00
|
|
|
= t("views.shared.dossiers.demande.my_identity")
|
|
|
|
|
2023-01-06 17:50:35 +01:00
|
|
|
- menu.with_form do
|
2022-07-13 12:58:42 +02:00
|
|
|
- if dossier.procedure.for_individual
|
|
|
|
= render partial: "shared/dossiers/identite_individual", locals: { individual: dossier.individual }
|
|
|
|
|
|
|
|
.center
|
2022-10-06 13:02:25 +02:00
|
|
|
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-btn fr-btn--secondary'
|
2022-07-13 12:58:42 +02:00
|
|
|
|
|
|
|
- elsif dossier.etablissement
|
|
|
|
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: dossier.etablissement, short_identity: true, profile: "usager" }
|
|
|
|
|
|
|
|
.center
|
|
|
|
= link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'button'
|
|
|
|
|