2018-10-04 09:43:19 +02:00
|
|
|
- content_for(:title, "Nouveau dossier (#{@dossier.procedure.libelle})")
|
|
|
|
|
2019-01-07 12:17:11 +01:00
|
|
|
- if !dossier_submission_is_closed?(@dossier)
|
|
|
|
= form_for current_user, url: siret_dossier_path(@dossier), html: { class: 'form', method: 'post' } do |f|
|
2018-10-04 09:43:19 +02:00
|
|
|
|
2023-09-18 15:05:31 +02:00
|
|
|
%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'edit-identity-siret' } }
|
|
|
|
= f.hidden_field :dossier_id, value: @dossier.id
|
2018-10-04 09:43:19 +02:00
|
|
|
|
2023-09-18 15:05:31 +02:00
|
|
|
%legend.fr-fieldset__legend#edit-identity-siret
|
2023-09-18 15:24:06 +02:00
|
|
|
%h2.fr-h4= t('views.users.dossiers.identite.identity_siret')
|
2018-10-04 09:43:19 +02:00
|
|
|
|
2023-09-18 15:05:31 +02:00
|
|
|
.fr-fieldset__element
|
2023-09-18 15:24:06 +02:00
|
|
|
%p.fr-text--sm= t('views.users.dossiers.identite.complete_siret')
|
2023-09-18 15:05:31 +02:00
|
|
|
|
2023-09-18 18:15:28 +02:00
|
|
|
.fr-fieldset__element.fr-fieldset__element--short-text
|
2023-09-18 15:24:06 +02:00
|
|
|
= render Dsfr::InputComponent.new form: f, attribute: :siret, opts: { placeholder: t('views.users.dossiers.identite.siret_placeholder') }
|
2023-09-18 15:05:31 +02:00
|
|
|
|
|
|
|
.fr-fieldset__element
|
2023-09-18 15:24:06 +02:00
|
|
|
%p.fr-text--sm= t('views.users.dossiers.identite.siret_help_html',
|
|
|
|
annuaire_link: link_to('annuaire-entreprises.data.gouv.fr', annuaire_link, title: new_tab_suffix(t('views.users.dossiers.identite.annuaire_link_title')), **external_link_attributes))
|
2019-07-25 11:33:29 +02:00
|
|
|
|
2023-09-18 15:24:06 +02:00
|
|
|
= f.submit t('views.users.dossiers.identite.continue'), class: "fr-btn", data: { disable_with: t('views.users.dossiers.identite.siret_loading') }
|