mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Use markup in views as Ryan Bates does in the screencast.
This commit is contained in:
parent
2bf9e462fa
commit
b86c1c241b
7 changed files with 28 additions and 28 deletions
|
@ -3,8 +3,8 @@
|
||||||
<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name)) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name)) do |f| %>
|
||||||
<%= devise_error_messages! %>
|
<%= devise_error_messages! %>
|
||||||
|
|
||||||
<p><%= f.label :email %></p>
|
<p><%= f.label :email %><br />
|
||||||
<p><%= f.text_field :email %></p>
|
<%= f.text_field :email %></p>
|
||||||
|
|
||||||
<p><%= f.submit "Resend confirmation instructions" %></p>
|
<p><%= f.submit "Resend confirmation instructions" %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
<%= devise_error_messages! %>
|
<%= devise_error_messages! %>
|
||||||
<%= f.hidden_field :reset_password_token %>
|
<%= f.hidden_field :reset_password_token %>
|
||||||
|
|
||||||
<p><%= f.label :password %></p>
|
<p><%= f.label :password %><br />
|
||||||
<p><%= f.password_field :password %></p>
|
<%= f.password_field :password %></p>
|
||||||
|
|
||||||
<p><%= f.label :password_confirmation %></p>
|
<p><%= f.label :password_confirmation %><br />
|
||||||
<p><%= f.password_field :password_confirmation %></p>
|
<%= f.password_field :password_confirmation %></p>
|
||||||
|
|
||||||
<p><%= f.submit "Change my password" %></p>
|
<p><%= f.submit "Change my password" %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |f| %>
|
||||||
<%= devise_error_messages! %>
|
<%= devise_error_messages! %>
|
||||||
|
|
||||||
<p><%= f.label :email %></p>
|
<p><%= f.label :email %><br />
|
||||||
<p><%= f.text_field :email %></p>
|
<%= f.text_field :email %></p>
|
||||||
|
|
||||||
<p><%= f.submit "Send me reset password instructions" %></p>
|
<p><%= f.submit "Send me reset password instructions" %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -3,17 +3,17 @@
|
||||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
||||||
<%= devise_error_messages! %>
|
<%= devise_error_messages! %>
|
||||||
|
|
||||||
<p><%= f.label :email %></p>
|
<p><%= f.label :email %><br />
|
||||||
<p><%= f.text_field :email %></p>
|
<%= f.text_field :email %></p>
|
||||||
|
|
||||||
<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i></p>
|
<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
||||||
<p><%= f.password_field :password %></p>
|
<%= f.password_field :password %></p>
|
||||||
|
|
||||||
<p><%= f.label :password_confirmation %></p>
|
<p><%= f.label :password_confirmation %><br />
|
||||||
<p><%= f.password_field :password_confirmation %></p>
|
<%= f.password_field :password_confirmation %></p>
|
||||||
|
|
||||||
<p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i></p>
|
<p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
||||||
<p><%= f.password_field :current_password %></p>
|
<%= f.password_field :current_password %></p>
|
||||||
|
|
||||||
<p><%= f.submit "Update" %></p>
|
<p><%= f.submit "Update" %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
||||||
<%= devise_error_messages! %>
|
<%= devise_error_messages! %>
|
||||||
|
|
||||||
<p><%= f.label :email %></p>
|
<p><%= f.label :email %><br />
|
||||||
<p><%= f.text_field :email %></p>
|
<%= f.text_field :email %></p>
|
||||||
|
|
||||||
<p><%= f.label :password %></p>
|
<p><%= f.label :password %><br />
|
||||||
<p><%= f.password_field :password %></p>
|
<%= f.password_field :password %></p>
|
||||||
|
|
||||||
<p><%= f.label :password_confirmation %></p>
|
<p><%= f.label :password_confirmation %><br />
|
||||||
<p><%= f.password_field :password_confirmation %></p>
|
<%= f.password_field :password_confirmation %></p>
|
||||||
|
|
||||||
<p><%= f.submit "Sign up" %></p>
|
<p><%= f.submit "Sign up" %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<h2>Sign in</h2>
|
<h2>Sign in</h2>
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
||||||
<p><%= f.label :email %></p>
|
<p><%= f.label :email %><br />
|
||||||
<p><%= f.text_field :email %></p>
|
<%= f.text_field :email %></p>
|
||||||
|
|
||||||
<p><%= f.label :password %></p>
|
<p><%= f.label :password %><br />
|
||||||
<p><%= f.password_field :password %></p>
|
<%= f.password_field :password %></p>
|
||||||
|
|
||||||
<% if devise_mapping.rememberable? -%>
|
<% if devise_mapping.rememberable? -%>
|
||||||
<p><%= f.check_box :remember_me %> <%= f.label :remember_me %></p>
|
<p><%= f.check_box :remember_me %> <%= f.label :remember_me %></p>
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name)) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name)) do |f| %>
|
||||||
<%= devise_error_messages! %>
|
<%= devise_error_messages! %>
|
||||||
|
|
||||||
<p><%= f.label :email %></p>
|
<p><%= f.label :email %><br />
|
||||||
<p><%= f.text_field :email %></p>
|
<%= f.text_field :email %></p>
|
||||||
|
|
||||||
<p><%= f.submit "Resend unlock instructions" %></p>
|
<p><%= f.submit "Resend unlock instructions" %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue