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="splitcontentleft">
|
|
|
|
<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-06-28 22:11:03 +04:00
|
|
|
<%= start_form_tag :action => 'my_account' %>
|
|
|
|
|
|
|
|
<!--[form:user]-->
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'user', 'firstname' %></p>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label><br/>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'user', 'lastname' %></p>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label><br/>
|
2006-07-30 14:47:02 +04:00
|
|
|
<%= text_field 'user', 'mail', :size => 40 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="user_language"><%=l(:field_language)%></label><br/>
|
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-07-29 13:32:58 +04:00
|
|
|
<p><%= check_box 'user', 'mail_notification' %> <label for="user_mail_notification"><%=l(:field_mail_notification)%></label></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>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<div class="splitcontentright">
|
|
|
|
<% 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-06-28 22:11:03 +04:00
|
|
|
<%= start_form_tag :action => 'change_password' %>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label><br/>
|
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-07-29 13:32:58 +04:00
|
|
|
<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label><br/>
|
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-07-29 13:32:58 +04:00
|
|
|
<p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label><br/>
|
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 %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|