pre-fill email field on wrong password

This commit is contained in:
jomo
2015-04-03 20:00:39 +02:00
parent 04c379c3c4
commit ed7dd52db9
3 changed files with 4 additions and 4 deletions

View File

@@ -6,11 +6,11 @@
<table>
<tr>
<td><%= label_tag :email %></td>
<td><%= text_field_tag :email, nil, placeholder: "email@example.com" %></td>
<td><%= text_field_tag :email, params[:email], placeholder: "email@example.com", required: true %></td>
</tr>
<tr>
<td><%= label_tag :password %></td>
<td><%= password_field_tag :password, nil, placeholder: "******" %></td>
<td><%= password_field_tag :password, nil, placeholder: "secret", required: true %></td>
</tr>
<tr>
<td></td>