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 %>