|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
% layout 'default'; |
|
|
|
|
% title l('User profile'); |
|
|
|
|
<h2><%= l('User profile') %></h2> |
|
|
|
|
% my $data = (stash 'user_data') || {}; |
|
|
|
|
% my @attrs = (method => 'POST', enctype => 'multipart/form-data'); |
|
|
|
|
%= form_for "/user/update" => (@attrs) => begin |
|
|
|
|
<table> |
|
|
|
@ -8,18 +9,22 @@
|
|
|
|
|
<td><%= l('Login') %></td> |
|
|
|
|
<td><%= session('useruid') %></td> |
|
|
|
|
</tr> |
|
|
|
|
% param displayname => $data->{displayName}; |
|
|
|
|
<tr> |
|
|
|
|
<td><%= l('Display name') %></td> |
|
|
|
|
<td><%= text_field 'displayname', placeholder => l('John Doe') %></td> |
|
|
|
|
</tr> |
|
|
|
|
% param mail => $data->{mail}; |
|
|
|
|
<tr> |
|
|
|
|
<td><%= l('Email') %></td> |
|
|
|
|
<td><%= text_field 'mail', type => 'email', placeholder => 'petrov@example.com' %></td> |
|
|
|
|
</tr> |
|
|
|
|
% param o => $data->{o}; |
|
|
|
|
<tr> |
|
|
|
|
<td><%= l('Organization') %></td> |
|
|
|
|
<td><%= text_field 'org', placeholder => l('JSC Vector') %></td> |
|
|
|
|
<td><%= text_field 'o', placeholder => l('JSC Vector') %></td> |
|
|
|
|
</tr> |
|
|
|
|
% param mobile => $data->{mobile}; |
|
|
|
|
<tr> |
|
|
|
|
<td><%= l('Cell phone') %></td> |
|
|
|
|
<td><%= text_field 'mobile', placeholder => '+79081235689' %></td> |
|
|
|
|