84 lines
2.7 KiB
Plaintext
84 lines
2.7 KiB
Plaintext
<div class="contextual" style="padding-right: 10px;">
|
|
<%= link_to(l(:button_change_password), {:action => 'password'}, :class => 'icon icon-passwd') if @user.change_password_allowed? %>
|
|
<%= call_hook(:view_my_account_contextual, :user => @user)%>
|
|
</div>
|
|
|
|
<h3 style="padding-left: 10px;"><%= l(:label_my_account)%></h3>
|
|
|
|
<fieldset class="box" style="margin:10px;">
|
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
|
<legend onclick="toggleFieldset(this);">
|
|
<%= l(:label_my_photo)%>
|
|
</legend>
|
|
<div>
|
|
<!--upload profiles-->
|
|
<%= render :partial=> "avatar/avatar_form", :locals=>{source:@user} %>
|
|
<!--upload-->
|
|
</div>
|
|
</fieldset>
|
|
<%= labelled_form_for :user, @user,
|
|
:url => { :action => "account" },
|
|
:html => { :id => 'my_account_form',
|
|
:method => :post } do |f| %>
|
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
|
<legend onclick="toggleFieldset(this);">
|
|
<%= l(:label_information_plural)%>
|
|
</legend>
|
|
<div>
|
|
<p style="width:400px;padding-left: 26px;">
|
|
<%= f.text_field :firstname, :required => true %>
|
|
</p>
|
|
<p style="width:400px;padding-left: 26px;">
|
|
<%= f.text_field :lastname, :required => true %>
|
|
</p>
|
|
<p style="width:357px;padding-left: 26px;">
|
|
<%= f.text_field :mail, :required => true %>
|
|
</p>
|
|
<p style="width:426px;padding-left:26px;>
|
|
<%= f.select :language, :Chinese简体中文 => :zh, :English => :en%>
|
|
</p>
|
|
<% if Setting.openid? %>
|
|
<p>
|
|
<%= f.text_field :identity_url %>
|
|
</p></div>
|
|
<% end %>
|
|
|
|
<% @user.custom_field_values.select(&:editable?).each do |value| %>
|
|
<p>
|
|
<%= custom_field_tag_with_label :user, value %>
|
|
</p>
|
|
<% end %>
|
|
<%= call_hook(:view_my_account, :user => @user, :form => f) %>
|
|
</fieldset>
|
|
|
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
|
<legend onclick="toggleFieldset(this);">
|
|
<%= l(:field_mail_notification)%>
|
|
</legend>
|
|
<div style="padding-left: 26px;"> <!-- modified by ming -->
|
|
<p style="width:380px;>
|
|
<%= render :partial => 'users/mail_notifications' %>
|
|
</p></div>
|
|
</fieldset>
|
|
|
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
|
<legend onclick="toggleFieldset(this);">
|
|
<%= l(:label_preferences)%>
|
|
</legend>
|
|
<div style="padding-left: 26px;"> <!-- modified by ming -->
|
|
<%= render :partial => 'users/preferences' %></div>
|
|
</fieldset>
|
|
<!-- added by william -->
|
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;display: none">
|
|
<legend onclick="toggleFieldset(this);">
|
|
<%= l(:label_user_extensions)%>
|
|
</legend>
|
|
<div>
|
|
<%= render :partial => 'users/user_extensions' %></div>
|
|
</fieldset>
|
|
<!-- end -->
|
|
<%= submit_tag l(:button_save) %>
|
|
</fieldset>
|
|
<% end %>
|
|
<% html_title(l(:label_my_account)) -%>
|