thingspeak/app/views/users/reset_password.html.erb
Alan Bradburne 4f0354303f Improve channel, user and api_key models with basic scopes, correct references and protect attributes.
Simplify channels & user controllers and models, moving code to the models.
Remove catch-all route and ensure all actions are specified, fixing url paths.
Change clone to dup in feed_controller as using clone seems to affect the cloned object (problem only in ruby 1.9.3?)
2012-02-09 23:42:16 +00:00

34 lines
964 B
Plaintext

<% if @valid_link %>
<h2><%= t(:password_new) %></h2>
<%= form_for @user, :url => change_password_user_path(@user) 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_raw)) %>
</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 %>
<% else %>
<%= t(:password_link_expired) %>
<% end %>