diff options
| author | Luc Donnet | 2014-11-17 13:29:45 +0100 |
|---|---|---|
| committer | Luc Donnet | 2014-11-17 13:29:45 +0100 |
| commit | ab4abb00d0a8b1fdee6bf1cf635c856f49f0707c (patch) | |
| tree | 5f09a52c460f4fb0be65809e6a255bc10c064414 /app | |
| parent | 0df2ab4ef16ade6547db4f707472cc9506c12892 (diff) | |
| download | chouette-core-ab4abb00d0a8b1fdee6bf1cf635c856f49f0707c.tar.bz2 | |
Update new password design page
Diffstat (limited to 'app')
| -rw-r--r-- | app/assets/stylesheets/modules/devise.css.scss | 6 | ||||
| -rw-r--r-- | app/views/devise/passwords/new.html.erb | 20 |
2 files changed, 18 insertions, 8 deletions
diff --git a/app/assets/stylesheets/modules/devise.css.scss b/app/assets/stylesheets/modules/devise.css.scss index 8236366ce..2b6c67a5e 100644 --- a/app/assets/stylesheets/modules/devise.css.scss +++ b/app/assets/stylesheets/modules/devise.css.scss @@ -1,6 +1,12 @@ #devise{ background-color: $gray-light; + .passwords.new{ + imput{ + width: initial !important; + } + } + .front_bg{ background: url(image-path('welcome.jpg')) no-repeat center center; background-size: cover; diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 68fd8c22a..865805319 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,12 +1,16 @@ -<div class="panel panel-default"> - <div class="panel-heading"><%= t('.title') %></div> - <div class="panel-body"> - <%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |form| %> - <%= form.input :email %> +<div class="col-md-offset-2 col-md-8"> + <div class="panel panel-default"> + <div class="panel-heading"><%= t('.title') %></div> + <div class="panel-body"> + <%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |form| %> + <%= form.input :email, :as => :email, placeholder: 'user@domain.com' %> - <%= link_to t("cancel"), root_path, :class => "btn btn-default" %> - <%= form.button :submit, :value => t("devise.passwords.new.commit") %> - <% end %> + <div class="col-md-offset-2"> + <%= link_to t("cancel"), root_path, :class => "btn btn-default" %> + <%= form.button :submit, :value => t("devise.passwords.new.commit"), :class => "btn-info" %> + </div> + <% end %> + </div> </div> </div> |
