diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 420357be1..28cc8d06d 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -26,6 +26,10 @@ h3.with-icon img { display: inline!important; } +.flex { + display: flex!important; +} + .header__logo { max-width: 7rem; padding: 1rem; diff --git a/app/views/authorization_requests/new.html.erb b/app/views/authorization_requests/new.html.erb index 6a5edf9eb..caa7ece52 100644 --- a/app/views/authorization_requests/new.html.erb +++ b/app/views/authorization_requests/new.html.erb @@ -74,11 +74,10 @@ <% if policy(authorization_request_form).new? %> <%= start_authorization_request_form(authorization_request_form) %> <% else %> -

- <%= t('.unicity_warning.description', authorization_request_form_name: authorization_request_form.name_with_authorization) %> -

- - <%= start_authorization_request_form(authorization_request_form, disabled: true) %> +
+ <%= link_to t('.back_to_dashboard'), dashboard_path, class: %w[fr-btn fr-btn--secondary fr-mr-2w] %> + <%= start_authorization_request_form(authorization_request_form, disabled: true) %> +
<% end %>

<% end %> diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 1554b408e..cca87b625 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -140,8 +140,7 @@ fr: title: &start_new_habilitation_title Démarrer une nouvelle habilitation pour %{authorization_name} current_form: Via le formulaire " %{authorization_request_form_name} " current_form_with_editor: Via le formulaire " %{authorization_request_form_name} " relatif à l'éditeur " %{editor_name} " - unicity_warning: - description: Vous ne pouvez posséder qu'une seule habilitation pour %{authorization_request_form_name}. + back_to_dashboard: Retour à l'accueil organization: start_text: "Vous êtes sur le point de démarrer une nouvelle demande d'habilitation pour le compte de %{organization_raison_sociale} (numéro de siret: %{organization_siret})." callout: