Adding postal code to users

This commit is contained in:
2014-02-08 21:06:07 -07:00
parent 92c3a6d2be
commit 56450cf319
6 changed files with 24 additions and 11 deletions

View File

@@ -35,6 +35,11 @@ Thanks again, and happy hacking!</p>
<%= f.label :phone_visible, "Show Phone to All Members?" %>
</div>
<div class="field">
<%= f.label :postal_code, "Residential Postal Code" %><br />
<%= f.text_field :postal_code %> (we'd like to know where you're commuting from!)
</div>
<div class="field">
<%= f.label :twitter_url %>
<%= f.text_field :twitter_url, :placeholder => "https://twitter.com/heatsynclabs" %><br/>
@@ -71,13 +76,13 @@ Thanks again, and happy hacking!</p>
<%= f.text_area :marketing_source %>
</div>
<div><%= f.label :password %><% if params[:action]!='new' %> <em>(Only if you want to change your password)</em><% end %><br />
<div><%= f.label :password %><% unless ['new','create'].include?(params[:action]) %> <em>(Only if you want to change your password)</em><% end %><br />
<%= f.password_field :password %></div>
<div><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></div>
<% if params[:action]!='new' %>
<% unless ['new','create'].include?(params[:action]) %>
<div><%= f.label :current_password, "Type Your Current Password" %> <em>(For your account's security)</em><br />
<%= f.password_field :current_password %></div>
<% end %>

View File

@@ -46,6 +46,10 @@
<%= f.check_box :phone_visible %>
<%= f.label :phone_visible, "Show Phone to All Members?" %>
</div>
<div class="field">
<%= f.label :postal_code, "Residential Postal Code" %><br />
<%= f.text_field :postal_code %> (we'd like to know where you're commuting from!)
</div>
<div class="field">
<%= f.label :twitter_url %>
<%= f.text_field :twitter_url, :placeholder => "https://twitter.com/heatsynclabs" %><br/>