aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/assets/stylesheets/modules/devise.css.scss6
-rw-r--r--app/views/devise/passwords/new.html.erb20
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>