thingspeak/app/views/users/new.html.erb
2011-03-27 16:56:15 -04:00

65 lines
1.6 KiB
Plaintext

<h2><%= t(:signup_header) %></h2>
<br />
<%= form_for @user, :url => account_path do |f| %>
<%= error_messages_for 'user', :header_message => t(:try_again), :message => t(:account_error) %>
<input name='userlogin' class='userlogin' />
<table class="bigtable">
<tr>
<td class="left">
<div class="vcenter"><%= f.label :login, t(:userid) %></div>
</td>
<td class="right">
<%= f.text_field :login %>
</td>
</tr>
<tr>
<td class="left">
<div class="vcenter"><%= f.label t(:email) %></div>
</td>
<td class="right">
<%= f.text_field :email %>
</td>
</tr>
<tr>
<td><%= t(:time_zone) %></td>
<td><%= time_zone_select 'user', 'time_zone', nil, :default => 'Eastern Time (US & Canada)' %></td>
</tr>
<tr>
<td class="left">
<div class="vcenter"><%= f.label t(:password) %></div>
</td>
<td class="right">
<%= f.password_field :password %>
</td>
<tr>
<td class="left">
<%= f.label :password_confirmation, raw(t(:password_confirmation_raw)) %>
</td>
<td class="right">
<%= f.password_field :password_confirmation %>
</td>
</tr>
<tr>
<td class="left">
Invite Code
</td>
<td class="right">
<input name="invite" type="text" />
</td>
</tr>
<tr>
<td class="left"></td>
<td class="right">
<%= t(:tos_agree) %> <%= link_to t(:tos), { :controller => 'pages', :action => 'terms' }, :target => '_blank' %>.
</td>
</tr>
<tr>
<td class="left"></td>
<td class="right"><%= f.submit t(:create_account) %></td>
</tr>
</table>
<% end %>
<script type="text/javascript">
document.getElementById('user_login').focus();
</script>