Skip to content

Commit

Permalink
Met en forme la page de réinitialisation de mot de passe
Browse files Browse the repository at this point in the history
  • Loading branch information
shanser authored and etienneCharignon committed Mar 22, 2021
1 parent 74bf663 commit 0224166
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/admin/pages/_logged_out.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ body.logged_out {

h1 {
font-family: $font-titre;
width: $largeur-colonne;
color: $eva_light;
font-weight: bold;
text-align: center;
Expand Down
19 changes: 19 additions & 0 deletions app/views/active_admin/devise/passwords/new.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<% content_for :titre do %>
<%= t('active_admin.devise.reset_password.title') -%>
<% end %>

<div id="login">
<%= render partial: "active_admin/devise/shared/error_messages", resource: resource %>
<%= active_admin_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
f.inputs do
f.input :email
end
f.actions do
f.action :submit, label: t('active_admin.devise.reset_password.submit'), button_html: { value: t('active_admin.devise.reset_password.submit') }
end
end %>

<div class='liens-partages'>
<%= render partial: "active_admin/devise/shared/links" %>
</div>
</div>

0 comments on commit 0224166

Please sign in to comment.