% layout 'default'; % title l('Update user');

<%= l('Update user') %>

% my @attrs = (method => 'POST', enctype => 'multipart/form-data'); %= form_for "/user/update" => (@attrs) => begin
<%= 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' %>
<%= l('Mobile') %> <%= text_field 'mobile' %>
<%= l('Avatar') %> <%= file_field 'photo' %>

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

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