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

diff --git a/app/views/components/_header_compact.html.erb b/app/views/components/_header_compact.html.erb new file mode 100644 index 0000000..19ab7f1 --- /dev/null +++ b/app/views/components/_header_compact.html.erb @@ -0,0 +1,7 @@ +
+
+

+ <%= page_title %> +

+
+
diff --git a/app/views/components/_main_compact.html.erb b/app/views/components/_main_compact.html.erb new file mode 100644 index 0000000..ee6ee2e --- /dev/null +++ b/app/views/components/_main_compact.html.erb @@ -0,0 +1,5 @@ +
+
+ <%= yield %> +
+
diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 40c840d..bb6b4a0 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -1,14 +1,21 @@ -

Resend confirmation instructions

+<%= render partial: "components/header_compact", locals: { page_title: "Log in" } %> -<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> - <%= render "devise/shared/error_messages", resource: resource %> -

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

Resend confirmation instructions

+ + <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> + <%= render "devise/shared/error_messages", resource: resource %> +

+ <%= 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 @@ -

Change your password

+<%= render partial: "components/header_compact", locals: { page_title: "Log in" } %> -<%= 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 %> +<%= render layout: "components/main_compact" do %> +

Change your password

-

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

Forgot your password?

+<%= render partial: "components/header_compact", locals: { page_title: "Log in" } %> -<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> - <%= render "devise/shared/error_messages", resource: resource %> -

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

Forgot your password?

+ + <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> + <%= render "devise/shared/error_messages", resource: resource %> +

+ <%= 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 @@ -

Log in

+<%= render partial: "components/header_compact", locals: { page_title: "Log in" } %> -<%= 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' %> -

+<%= 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" %> - -