aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/devise/passwords
diff options
context:
space:
mode:
authorLuc Donnet2014-06-18 09:52:28 +0200
committerLuc Donnet2014-06-18 09:52:28 +0200
commitbfd178055c1989d4d65a99e3752aa0ccd3abdad1 (patch)
treec1160d25f2115ec98181ef9d0147a092f09a851c /app/views/devise/passwords
parentf4f4a304e36825a53ebc9227509dc3c389ef17cf (diff)
downloadchouette-core-bfd178055c1989d4d65a99e3752aa0ccd3abdad1.tar.bz2
Initialize big css refactoring
Diffstat (limited to 'app/views/devise/passwords')
-rw-r--r--app/views/devise/passwords/edit.html.erb17
-rw-r--r--app/views/devise/passwords/new.html.erb13
2 files changed, 30 insertions, 0 deletions
diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb
new file mode 100644
index 000000000..421339b5d
--- /dev/null
+++ b/app/views/devise/passwords/edit.html.erb
@@ -0,0 +1,17 @@
+<%= title_tag t('.title') %>
+
+<%= semantic_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
+
+ <%= f.inputs do %>
+ <%= f.input :reset_password_token, :as => :hidden %>
+ <%= f.input :password, :as => :password %>
+ <%= f.input :password_confirmation, :as => :password %>
+ <% end %>
+
+ <%= f.actions do %>
+ <%= f.action :submit, :as => :button, :label => t('.commit') %>
+ <%= f.action :cancel, :as => :link %>
+ <% end %>
+<% end %>
+
+<%= render "links" %>
diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb
new file mode 100644
index 000000000..f285a0f6d
--- /dev/null
+++ b/app/views/devise/passwords/new.html.erb
@@ -0,0 +1,13 @@
+<%= title_tag t('.title') %>
+
+<%= semantic_form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |form| %>
+ <%= form.inputs :email %>
+
+ <%= form.actions do %>
+ <%= form.action :submit, :as => :button, :label => t('.commit') %>
+ <%= form.action :cancel, :as => :link %>
+ <% end %>
+
+<% end %>
+
+<%= render "links" %>