From b6949acc96087d134bada2b685596563505a6903 Mon Sep 17 00:00:00 2001
From: Sebastian Kippe
- <%= form.submit class: 'btn btn-md btn-blue' %> -
-+ <%= form.submit class: 'btn-md btn-blue' %> +
<% end %> diff --git a/app/views/admin/donations/edit.html.erb b/app/views/admin/donations/edit.html.erb index 677d81b..5042797 100644 --- a/app/views/admin/donations/edit.html.erb +++ b/app/views/admin/donations/edit.html.erb @@ -2,7 +2,7 @@ <%= render 'form', donation: @donation, url: admin_donation_path(@donation) %> -+
<%= link_to 'Show', admin_donation_path(@donation), class: 'ks-text-link' %> | <%= link_to 'Back', admin_donations_path, class: 'ks-text-link' %>
diff --git a/app/views/admin/donations/index.html.erb b/app/views/admin/donations/index.html.erb index 69878c8..3325d1c 100644 --- a/app/views/admin/donations/index.html.erb +++ b/app/views/admin/donations/index.html.erb @@ -36,6 +36,6 @@
<% end %> -- <%= link_to 'Record an out-of-system donation', new_admin_donation_path, class: 'btn btn-md btn-gray' %> +
+ <%= link_to 'Record an out-of-system donation', new_admin_donation_path, class: 'btn-md btn-gray' %>
diff --git a/app/views/admin/donations/new.html.erb b/app/views/admin/donations/new.html.erb index 4fd44bf..ca10ca3 100644 --- a/app/views/admin/donations/new.html.erb +++ b/app/views/admin/donations/new.html.erb @@ -2,6 +2,6 @@ <%= render 'form', donation: @donation, url: admin_donations_path %> -- <%= link_to 'Back', admin_donations_path %> +
+ <%= link_to 'Back', admin_donations_path, class: 'ks-text-link' %>
diff --git a/app/views/admin/donations/show.html.erb b/app/views/admin/donations/show.html.erb index 2f18335..dd929f2 100644 --- a/app/views/admin/donations/show.html.erb +++ b/app/views/admin/donations/show.html.erb @@ -30,5 +30,7 @@ <%= @donation.paid_at %> -<%= link_to 'Edit', edit_admin_donation_path(@donation), class: 'ks-text-link' %> | -<%= link_to 'Back', admin_donations_path, class: 'ks-text-link' %> ++ <%= link_to 'Edit', edit_admin_donation_path(@donation), class: 'ks-text-link' %> | + <%= link_to 'Back', admin_donations_path, class: 'ks-text-link' %> +
diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 5a46eee..40c840d 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -2,19 +2,13 @@ <%= 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' %>
- <%= f.email_field :email, required: true, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
-
- <%= f.submit "Resend confirmation instructions" %> -
-+ <%= 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' %> +
<% end %> <%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index 5fbb9ff..7419237 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -4,22 +4,24 @@ <%= 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" %> -
+ <%= 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" %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index ed6d7ce..65006f9 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -2,26 +2,17 @@ <%= 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' %>
- <%= f.text_field :cn, autofocus: true, autocomplete: "username", required: true %> @ kosmos.org
-
- <%= f.label :email, 'Email address' %>
- <%= f.email_field :email, autocomplete: "email", required: true %>
-
- <%= f.submit "Send me reset password instructions" %> -
-+ <%= 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' %> +
<% end %> <%= render "devise/shared/links" %> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 38d95b8..4df4cab 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -31,9 +31,9 @@ <%= f.password_field :current_password, autocomplete: "current-password" %> -+ <%= f.submit "Update", class: 'btn-md btn-blue' %> +
<% end %>
- <%= f.label :cn, 'User' %>
- <%= f.text_field :cn, autofocus: true, autocomplete: "username" %> @ kosmos.org
-
- <%= f.label :password %>
- <%= f.password_field :password, autocomplete: "current-password" %>
-
- <%= f.submit "Log in" %> -
-+ <%= 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" %> diff --git a/app/views/devise/shared/_links.html.erb b/app/views/devise/shared/_links.html.erb index fef9bef..b1d1ccd 100644 --- a/app/views/devise/shared/_links.html.erb +++ b/app/views/devise/shared/_links.html.erb @@ -1,24 +1,24 @@ -+
<%= link_to "Log in", new_session_path(resource_name) %>
+
<%= link_to "Forgot your password?", new_password_path(resource_name) %>
+
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
+
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
<%= f.label :email %>
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
-
+ <%= f.submit "Resend unlock instructions", class: 'btn-md btn-blue' %> +
<% end %> <%= render "devise/shared/links" %> diff --git a/app/views/security/index.html.erb b/app/views/security/index.html.erb index 1df49cc..e1169b6 100644 --- a/app/views/security/index.html.erb +++ b/app/views/security/index.html.erb @@ -6,7 +6,7 @@<%= form_with(url: settings_reset_password_path, method: :post) do %> - <%= submit_tag("Send me a password reset link", class: 'btn btn-md btn-gray') %> + <%= submit_tag("Send me a password reset link", class: 'btn-md btn-gray') %> <% end %>
diff --git a/app/views/signup/index.html.erb b/app/views/signup/index.html.erb index f3d8b80..25ed61e 100644 --- a/app/views/signup/index.html.erb +++ b/app/views/signup/index.html.erb @@ -7,6 +7,6 @@ This invitation can only be used once, and sign-up is currently only possible by invitation. Seems like you have good friends! -- <%= link_to "Get started", signup_steps_path(1), class: "next-step" %> +
+ <%= link_to "Get started", signup_steps_path(1), class: "btn btn-md btn-blue" %>
diff --git a/app/views/signup/steps.html.erb b/app/views/signup/steps.html.erb index 3c527f4..53cf237 100644 --- a/app/views/signup/steps.html.erb +++ b/app/views/signup/steps.html.erb @@ -2,60 +2,53 @@ <% when 1 %>
- <%= f.label :cn, 'Username' %>
- <%= f.text_field :cn, autofocus: true, autocomplete: "username" %>
- @
- kosmos.org
-
Username <%= @validation_error %>
- <% end %> -<%= f.submit "Continue" %>
-+ <%= f.label :cn, 'Username', class: 'hidden' %> + <%= f.text_field :cn, autofocus: true, autocomplete: "username", + class: 'text-xl' %> + @ + kosmos.org +
+ <% if @validation_error.present? %> +Username <%= @validation_error %>
+ <% end %> ++ <%= f.submit "Continue", class: 'btn btn-md btn-blue' %> +
<% end %> <% when 2 %>
- <%= f.label :email, 'Email address' %>
- <%= f.email_field :email, autofocus: true, autocomplete: "email" %>
-
Email <%= @validation_error %>
- <% end %> -<%= f.submit "Continue" %>
-+ <%= f.label :email, 'Email address', class: 'hidden' %> + <%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'text-xl' %> +
+ <% if @validation_error.present? %> +Email <%= @validation_error %>
+ <% end %> ++ <%= f.submit "Continue", class: 'btn btn-md btn-blue' %> +
<% end %> <% when 3 %>
- <%= f.label :password, 'Password' %>
- <%= f.password_field :password, autofocus: true %>
-
Password <%= @validation_error %>
- <% end %> -- - By clicking the button below, you accept our future Terms of Service - and Privacy Policy. Don't worry, they will be excellent! - +
+ <%= f.label :password, 'Password', class: 'hidden' %> + <%= f.password_field :password, autofocus: true, class: 'text-xl' %> +
+ <% if @validation_error.present? %> +Password <%= @validation_error %>
+ <% end %> ++ By clicking the button below, you accept our future Terms of Service + and Privacy Policy. Don't worry, they will be excellent! +
++ <%= f.submit "Create account", class: 'btn-md btn-blue' %>
-<%= f.submit "Create account" %>
-