diff --git a/app/views/components/_header.html.erb b/app/views/components/_header.html.erb
index 3e00164..edd53b3 100644
--- a/app/views/components/_header.html.erb
+++ b/app/views/components/_header.html.erb
@@ -1,5 +1,7 @@
<%= page_title %>
+
+ <%= page_title %>
+
+ <%= page_title %>
+
+
- <%= f.label :email, 'Email address', class: 'block mb-1' %> - <%= f.email_field :email, required: true, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> -
-- <%= f.submit "Resend confirmation instructions", class: 'btn-md btn-blue' %> -
+<%= render layout: "components/main_compact" do %> ++ <%= f.label :email, 'Email address', class: 'block mb-1' %> + <%= f.email_field :email, + required: true, autofocus: true, autocomplete: "email", + value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email), + class: "w-full sm:w-4/5" %> +
++ <%= f.submit "Resend confirmation instructions", class: 'btn-md btn-blue' %> +
+ <% end %> + + <%= render "devise/shared/links" %> <% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index 7419237..33f0f0d 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -1,27 +1,31 @@ -- <%= f.label :password, "New password" %> -
-
- <%= f.password_field :password, autofocus: true, autocomplete: "new-password" %>
- <% if @minimum_password_length %>
-
(<%= @minimum_password_length %> characters minimum)
- <% end %>
-
- <%= f.label :password_confirmation, "Confirm new password" %> -
-- <%= f.password_field :password_confirmation, autocomplete: "new-password" %> -
-- <%= f.submit "Change my password", class: 'btn-md btn-blue' %> -
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> + <%= render "devise/shared/error_messages", resource: resource %> + <%= f.hidden_field :reset_password_token %> + ++ <%= f.label :password, "New password" %> +
+
+ <%= f.password_field :password, autofocus: true, autocomplete: "new-password" %>
+ <% if @minimum_password_length %>
+
(<%= @minimum_password_length %> characters minimum)
+ <% end %>
+
+ <%= f.label :password_confirmation, "Confirm new password" %> +
++ <%= f.password_field :password_confirmation, autocomplete: "new-password" %> +
++ <%= f.submit "Change my password", class: 'btn-md btn-blue' %> +
+ <% end %> + + <%= render "devise/shared/links" %> <% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 65006f9..7d8e6cc 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,18 +1,22 @@ -- <%= f.label :cn, 'User', class: 'block' %> - <%= f.text_field :cn, autofocus: true, autocomplete: "username", required: true %> @ kosmos.org -
-- <%= f.label :email, 'Email address', class: 'block' %> - <%= f.email_field :email, autocomplete: "email", required: true %> -
-- <%= f.submit "Send me reset password instructions", class: 'btn-md btn-blue' %> -
+<%= render layout: "components/main_compact" do %> ++ <%= f.label :cn, 'User', class: 'block' %> + <%= f.text_field :cn, autofocus: true, autocomplete: "username", required: true %> @ kosmos.org +
++ <%= f.label :email, 'Email address', class: 'block' %> + <%= f.email_field :email, autocomplete: "email", required: true %> +
++ <%= f.submit "Send me a reset link", class: 'btn-md btn-blue' %> +
+ <% end %> + + <%= render "devise/shared/links" %> <% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index da446c8..73ecdac 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,18 +1,20 @@ -- <%= f.label :cn, 'User', class: 'block' %> - <%= f.text_field :cn, autofocus: true, autocomplete: "username" %> @ kosmos.org -
-- <%= f.label :password, class: 'block' %> - <%= f.password_field :password, autocomplete: "current-password" %> -
-- <%= f.submit "Log in", class: 'btn-md btn-blue' %> -
+<%= render layout: "components/main_compact" do %> + <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> + <%= render "devise/shared/error_messages", resource: resource %> ++ <%= f.label :cn, 'User', class: 'block' %> + <%= f.text_field :cn, autofocus: true, autocomplete: "username" %> @ kosmos.org +
++ <%= f.label :password, class: 'block' %> + <%= f.password_field :password, autocomplete: "current-password" %> +
++ <%= f.submit "Log in", class: 'btn-md btn-blue' %> +
+ <% end %> + + <%= render "devise/shared/links" %> <% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 047c145..51ad0f5 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -21,13 +21,13 @@ <%= render partial: "shared/icons/comet" %> -