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 />
|
|
|
|
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %>,
|
|
|
|
<%=l(:field_updated_on)%>: <%= format_time(@user.updated_on) %></p>
|
2006-07-09 20:30:01 +04:00
|
|
|
|
|
|
|
<%= error_messages_for 'user' %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<div class="box">
|
2006-07-29 13:32:58 +04:00
|
|
|
<h3><%=l(:label_information_plural)%></h3>
|
2006-07-30 14:47:02 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<%= start_form_tag({:action => 'my_account'}, :class => "tabular") %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<!--[form:user]-->
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'user', 'firstname' %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'user', 'lastname' %></p>
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
|
2006-07-30 14:47:02 +04:00
|
|
|
<%= text_field 'user', 'mail', :size => 40 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_language"><%=l(:field_language)%></label>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= select("user", "language", lang_options_for_select) %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[eoform:user]-->
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="user_mail_notification"><%=l(:field_mail_notification)%></label>
|
|
|
|
<%= check_box 'user', 'mail_notification' %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<center><%= submit_tag l(:button_save) %></center>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
|
|
|
</div>
|
|
|
|
|
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
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<%= start_form_tag({:action => 'change_password'}, :class => "tabular") %>
|
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>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
2006-07-29 23:54:22 +04:00
|
|
|
</div>
|
|
|
|
<% end %>
|