|
|
@ -1,6 +1,7 @@ |
|
|
|
% layout 'default'; |
|
|
|
% layout 'default'; |
|
|
|
% title l('User profile'); |
|
|
|
% title l('User profile'); |
|
|
|
<h2><%= l('User profile') %></h2> |
|
|
|
<h2><%= l('User profile') %></h2> |
|
|
|
|
|
|
|
% my $data = (stash 'user_data') || {}; |
|
|
|
% 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> |
|
|
@ -8,18 +9,22 @@ |
|
|
|
<td><%= l('Login') %></td> |
|
|
|
<td><%= l('Login') %></td> |
|
|
|
<td><%= session('useruid') %></td> |
|
|
|
<td><%= session('useruid') %></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
|
|
|
|
% param displayname => $data->{displayName}; |
|
|
|
<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> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
|
|
|
|
% param mail => $data->{mail}; |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Email') %></td> |
|
|
|
<td><%= l('Email') %></td> |
|
|
|
<td><%= text_field 'mail', type => 'email', placeholder => 'petrov@example.com' %></td> |
|
|
|
<td><%= text_field 'mail', type => 'email', placeholder => 'petrov@example.com' %></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
|
|
|
|
% param o => $data->{o}; |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Organization') %></td> |
|
|
|
<td><%= l('Organization') %></td> |
|
|
|
<td><%= text_field 'org', placeholder => l('JSC Vector') %></td> |
|
|
|
<td><%= text_field 'o', placeholder => l('JSC Vector') %></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
|
|
|
|
% param mobile => $data->{mobile}; |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><%= l('Cell phone') %></td> |
|
|
|
<td><%= l('Cell phone') %></td> |
|
|
|
<td><%= text_field 'mobile', placeholder => '+79081235689' %></td> |
|
|
|
<td><%= text_field 'mobile', placeholder => '+79081235689' %></td> |
|
|
|