2006-07-29 13:32:58 +04:00
|
|
|
<h2><%=l(:label_my_account)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><%=l(:field_login)%>: <strong><%= @user.login %></strong><br />
|
2007-01-25 22:35:39 +03:00
|
|
|
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p>
|
2006-07-09 20:30:01 +04:00
|
|
|
|
|
|
|
<%= error_messages_for 'user' %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-12-05 01:02:30 +03:00
|
|
|
<div class="box">
|
|
|
|
<h3><%=l(:label_information_plural)%></h3>
|
|
|
|
|
|
|
|
<% labelled_tabular_form_for :user, @user, :url => { :action => "account" } do |f| %>
|
|
|
|
|
|
|
|
<p><%= f.text_field :firstname, :required => true %></p>
|
|
|
|
<p><%= f.text_field :lastname, :required => true %></p>
|
|
|
|
<p><%= f.text_field :mail, :required => true, :size => 40 %></p>
|
|
|
|
<p><%= f.select :language, lang_options_for_select %></p>
|
|
|
|
<p><%= f.check_box :mail_notification %></p>
|
|
|
|
|
|
|
|
<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %>
|
|
|
|
<p><%= pref_fields.check_box :hide_mail %></p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<center><%= submit_tag l(:button_save) %></center>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<% unless @user.auth_source_id %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<div class="box">
|
2006-07-29 13:32:58 +04:00
|
|
|
<h3><%=l(:field_password)%></h3>
|
2006-07-30 14:47:02 +04:00
|
|
|
|
2007-01-26 22:56:25 +03:00
|
|
|
<% form_tag({:action => 'change_password'}, :class => "tabular") do %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
|
2006-07-09 20:30:01 +04:00
|
|
|
<%= password_field_tag 'password', nil, :size => 25 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
|
2006-07-09 20:30:01 +04:00
|
|
|
<%= password_field_tag 'new_password', nil, :size => 25 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
|
2006-07-09 20:30:01 +04:00
|
|
|
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<center><%= submit_tag l(:button_save) %></center>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|
2006-07-29 23:54:22 +04:00
|
|
|
</div>
|
|
|
|
<% end %>
|