You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
757 B
25 lines
757 B
% layout 'default'; |
|
% title l('Auth required'); |
|
<h2><%= l('Auth required') %></h2> |
|
% my @attrs = (method => 'POST'); |
|
%= form_for "/user/auth" => (@attrs) => begin |
|
<table> |
|
<tr> |
|
<td><%= l('Login') %></td> |
|
<td><%= text_field 'username', required => 1, placeholder => 'username' %></td> |
|
</tr> |
|
<tr> |
|
<td><%= l('Password') %></td> |
|
<td><%= password_field 'password', required => 1, placeholder => '******' %></td> |
|
</tr> |
|
<tr><td colspan='2'><hr/></td></tr> |
|
<tr> |
|
<td colspan='2'><%= submit_button l('Log in') %></td> |
|
</tr> |
|
</table> |
|
% end |
|
% if (my $error = flash('result')) { |
|
<p><%= $error %></p> |
|
% } else { |
|
<p>Чтобы поменять свои данные, необходимо представиться системе.</p> |
|
% }
|
|
|