% layout 'default'; % title l('User profile');

<%= l('User profile') %>

% my @attrs = (method => 'POST', enctype => 'multipart/form-data'); %= form_for "/user/update" => (@attrs) => begin
<%= l('Login') %> <%= session('useruid') %>
<%= l('Display name') %> <%= text_field 'displayname', placeholder => l('John Doe') %>
<%= l('Email') %> <%= text_field 'mail', type => 'email', placeholder => 'petrov@example.com' %>
<%= l('Organization') %> <%= text_field 'org', placeholder => l('JSC Vector') %>
<%= l('Cell phone') %> <%= text_field 'mobile', placeholder => '+79081235689' %>
<%= l('Avatar') %> <%= file_field 'photo' %>

<%= l('Current password') %> <%= password_field 'password', required => 1, placeholder => '******' %>

<%= submit_button l('Update') %>
% end % my $result = (flash 'result') || ''; % if ($result) { %= tag 'p' => $result; % }