Skip to content
Browse files

Add "#clearance" wrapper to markup

  • Loading branch information...
1 parent 9b96de4 commit 9a3ad608436e2b33722e55a998e83217da7c12ee Galen Frechette committed with croaky Feb 11, 2013
View
4 app/views/passwords/create.html.erb
@@ -1 +1,3 @@
-<p><%= t '.description' %></p>
+<div id="clearance" class="password-reset">
+ <p><%= t '.description' %></p>
+</div>
View
28 app/views/passwords/edit.html.erb
@@ -1,16 +1,18 @@
-<h2><%= t '.title' %></h2>
+<div id='clearance' class='password-reset'>
+ <h2><%= t '.title' %></h2>
-<p><%= t '.description' %></p>
+ <p><%= t '.description' %></p>
-<%= form_for :password_reset,
- :url => user_password_path(@user, :token => @user.confirmation_token),
- :html => { :method => :put } do |form| %>
- <div class='password-field'>
- <%= form.label :password %>
- <%= form.password_field :password %>
- </div>
+ <%= form_for :password_reset,
+ :url => user_password_path(@user, :token => @user.confirmation_token),
+ :html => { :method => :put } do |form| %>
+ <div class='password-field'>
+ <%= form.label :password %>
+ <%= form.password_field :password %>
+ </div>
- <div class='submit-field'>
- <%= form.submit %>
- </div>
-<% end %>
+ <div class='submit-field'>
+ <%= form.submit %>
+ </div>
+ <% end %>
+</div>
View
24 app/views/passwords/new.html.erb
@@ -1,14 +1,16 @@
-<h2><%= t '.title' %></h2>
+<div id='clearance' class='password-reset'>
+ <h2><%= t '.title' %></h2>
-<p><%= t '.description' %></p>
+ <p><%= t '.description' %></p>
-<%= form_for :password, :url => passwords_path do |form| %>
- <div class='text-field'>
- <%= form.label :email %>
- <%= form.text_field :email, :type => 'email' %>
- </div>
+ <%= form_for :password, :url => passwords_path do |form| %>
+ <div class='text-field'>
+ <%= form.label :email %>
+ <%= form.text_field :email, :type => 'email' %>
+ </div>
- <div class='submit-field'>
- <%= form.submit %>
- </div>
-<% end %>
+ <div class='submit-field'>
+ <%= form.submit %>
+ </div>
+ <% end %>
+</div>
View
15 app/views/sessions/new.html.erb
@@ -1,3 +1,14 @@
-<h2><%= t '.title' %></h2>
+<div id='clearance' class='sign-in'>
+ <h2><%= t '.title' %></h2>
-<%= render :partial => '/sessions/form' %>
+ <%= render :partial => '/sessions/form' %>
+
+ <ul>
+ <li>
+ <%= link_to t('.sign_up'), sign_up_path %>
+ </li>
+ <li>
+ <%= link_to t('.forgot_password'), new_password_path %>
+ </li>
+ </ul>
+</div>
View
22 app/views/users/new.html.erb
@@ -1,13 +1,15 @@
-<h2>Sign up</h2>
+<div id='clearance' class='sign-up'>
+ <h2>Sign up</h2>
-<%= form_for @user do |form| %>
- <%= render :partial => '/users/form', :object => form %>
+ <%= form_for @user do |form| %>
+ <%= render :partial => '/users/form', :object => form %>
- <div class='submit-field'>
- <%= form.submit %>
- </div>
+ <div class='submit-field'>
+ <%= form.submit %>
+ </div>
- <div class='other-links'>
- <%= link_to t('.sign_in'), sign_in_path %>
- </div>
-<% end %>
+ <div class='other-links'>
+ <%= link_to t('.sign_in'), sign_in_path %>
+ </div>
+ <% end %>
+</div>

0 comments on commit 9a3ad60

Please sign in to comment.
Something went wrong with that request. Please try again.