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.
33 lines
1.0 KiB
33 lines
1.0 KiB
% layout 'default'; |
|
% title l('Create new user'); |
|
<h2><%= l('Create new user') %></h2> |
|
% my @attrs = (method => 'POST'); |
|
%= form_for "/user/create" => (@attrs) => begin |
|
<table> |
|
<tr> |
|
<td><%= l('Login') %></td> |
|
<td><%= text_field 'username', required => 1, placeholder => 'petrov' %></td> |
|
</tr> |
|
<tr> |
|
<td><%= l('Password') %></td> |
|
<td><%= password_field 'password', required => 1, placeholder => '******' %></td> |
|
</tr> |
|
<tr> |
|
<td><%= l('Email') %></td> |
|
<td><%= text_field 'mail', required => 1, type => 'email', placeholder => 'petrov@example.com' %></td> |
|
</tr> |
|
<tr> |
|
<td colspan='2'><hr/></td> |
|
</tr> |
|
<tr> |
|
<td colspan='2'><%= submit_button l('Create') %></td> |
|
</tr> |
|
</table> |
|
% end |
|
% my $result = (flash 'result') || ''; |
|
% if ($result) { |
|
%= tag 'p' => $result; |
|
% } else { |
|
<p>Эта учётная запись будет действовать для всех сервисов *.linuxdv.org</p> |
|
<p>Восстановления пароля пока не предусмотрено.</p> |
|
% }
|
|
|