thingspeak/app/views/users/reset_password.html.erb

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-03-27 22:56:15 +02:00
<% if @valid_link %>
<h2><%= t(:password_new) %></h2>
<%= form_for @user, :url => { :controller => 'users', :action => 'change_password', :id => @user.id } do |f| %>
<%= error_messages_for 'user', :header_message => t(:try_again), :message => t(:password_new_error) %>
<input name='userlogin' class='userlogin' />
<table class="bigtable">
<tr>
<td class="left">
<div class="vcenter"><%= f.label :password %></div>
</td>
<td class="right">
<%= f.password_field :password %>
<br />
<%= t(:password_new_choose) %>
</td>
<tr>
<td class="left">
<%= f.label :password_confirmation, raw(t(:password_confirmation)) %>
</td>
<td class="right">
<%= f.password_field :password_confirmation %>
<br />
<%= t(:password_new_confirmation) %>
</td>
</tr>
<tr>
<td class="left"></td>
<td class="right"><%= f.submit t(:submit) %></td>
</tr>
</table>
<% end %>
2011-03-27 22:56:15 +02:00
<% else %>
<%= t(:password_link_expired) %>
<% end %>