Commit 5a2111526dd7a255f74c98b95eeefc578ab0f444
1 parent
c54d07b9
Exists in
master
and in
4 other branches
New logo/color for login screen
Showing
8 changed files
with
18 additions
and
14 deletions
Show diff stats
app/assets/images/login-logo.png
app/assets/stylesheets/sections/login.scss
app/views/devise/passwords/edit.html.haml
| 1 | = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: "login-box" }) do |f| | 1 | = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: "login-box" }) do |f| |
| 2 | - = image_tag "login-logo.png", width: "304", height: "66", class: "login-logo", alt: "Login Logo" | ||
| 3 | %h3 Change your password | 2 | %h3 Change your password |
| 4 | = devise_error_messages! | 3 | = devise_error_messages! |
| 5 | = f.hidden_field :reset_password_token | 4 | = f.hidden_field :reset_password_token |
app/views/devise/passwords/new.html.erb
| @@ -1,9 +0,0 @@ | @@ -1,9 +0,0 @@ | ||
| 1 | -<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { class: "login-box", method: :post }) do |f| %> | ||
| 2 | - <%= image_tag "login-logo.png", width: "304", height: "66", class: "login-logo", alt: "Login Logo" %> | ||
| 3 | - <%= devise_error_messages! %> | ||
| 4 | - <%= f.email_field :email, placeholder: "Email", class: "text" %> | ||
| 5 | - <br/> | ||
| 6 | - <br/> | ||
| 7 | - <%= f.submit "Reset password", class: "btn-primary btn" %> | ||
| 8 | - <div class="pull-right"> <%= link_to "Sign in", new_session_path(resource_name), class: "btn" %><br /></div> | ||
| 9 | -<% end %> |
| @@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
| 1 | += form_for(resource, as: resource_name, url: password_path(resource_name), html: { class: "login-box", method: :post }) do |f| | ||
| 2 | + %h3.page_title Reset password | ||
| 3 | + %br | ||
| 4 | + = devise_error_messages! | ||
| 5 | + = f.email_field :email, placeholder: "Email", class: "text" | ||
| 6 | + %br/ | ||
| 7 | + %br/ | ||
| 8 | + = f.submit "Reset password", class: "btn-primary btn" | ||
| 9 | + .pull-right | ||
| 10 | + = link_to "Sign in", new_session_path(resource_name), class: "btn" | ||
| 11 | + %br/ |
app/views/devise/registrations/new.html.haml
| 1 | = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "login-box" }) do |f| | 1 | = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "login-box" }) do |f| |
| 2 | - = image_tag "login-logo.png", width: "304", height: "66", class: "login-logo", alt: "Login Logo" | 2 | + %h3.page_title Sign Up |
| 3 | + %br | ||
| 3 | = devise_error_messages! | 4 | = devise_error_messages! |
| 4 | %div | 5 | %div |
| 5 | = f.text_field :name, class: "text top", placeholder: "Name", required: true | 6 | = f.text_field :name, class: "text top", placeholder: "Name", required: true |
app/views/devise/sessions/new.html.haml