|
|
@ -1,9 +1,13 @@ |
|
|
|
% layout 'default'; |
|
|
|
% layout 'default'; |
|
|
|
% title l('Update user'); |
|
|
|
% title l('User profile'); |
|
|
|
<h2><%= l('Update user') %></h2> |
|
|
|
<h2><%= l('User profile') %></h2> |
|
|
|
% my @attrs = (method => 'POST', enctype => 'multipart/form-data'); |
|
|
|
% my @attrs = (method => 'POST', enctype => 'multipart/form-data'); |
|
|
|
%= form_for "/user/update" => (@attrs) => begin |
|
|
|
%= form_for "/user/update" => (@attrs) => begin |
|
|
|
<table> |
|
|
|
<table> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td><%= l('Login') %></td> |
|
|
|
|
|
|
|
<td><%= session('useruid') %></td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Display name') %></td> |
|
|
|
<td><%= l('Display name') %></td> |
|
|
|
<td><%= text_field 'displayname', placeholder => l('John Doe') %></td> |
|
|
|
<td><%= text_field 'displayname', placeholder => l('John Doe') %></td> |
|
|
@ -14,11 +18,11 @@ |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Organization') %></td> |
|
|
|
<td><%= l('Organization') %></td> |
|
|
|
<td><%= text_field 'org' %></td> |
|
|
|
<td><%= text_field 'org', placeholder => l('JSC Vector') %></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Mobile') %></td> |
|
|
|
<td><%= l('Cell phone') %></td> |
|
|
|
<td><%= text_field 'mobile' %></td> |
|
|
|
<td><%= text_field 'mobile', placeholder => '+79081235689' %></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Avatar') %></td> |
|
|
|
<td><%= l('Avatar') %></td> |
|
|
@ -27,7 +31,7 @@ |
|
|
|
<tr><td colspan='2'><hr/></td></tr> |
|
|
|
<tr><td colspan='2'><hr/></td></tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Current password') %></td> |
|
|
|
<td><%= l('Current password') %></td> |
|
|
|
<td><%= password_field 'pass', required => 1, placeholder => '******' %></td> |
|
|
|
<td><%= password_field 'password', required => 1, placeholder => '******' %></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr><td colspan='2'><hr/></td></tr> |
|
|
|
<tr><td colspan='2'><hr/></td></tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|