“我的账号”伸缩按钮-隐藏功能
This commit is contained in:
parent
5afc5884b8
commit
90bb9c8fe9
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<fieldset class="box" style="margin:10px;">
|
<fieldset class="box" style="margin:10px;">
|
||||||
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
||||||
<legend onclick="toggleFieldset(this);">
|
<legend onclick="toggleFieldset(this);">
|
||||||
|
@ -21,11 +20,12 @@
|
||||||
<%= labelled_form_for :user, @user,
|
<%= labelled_form_for :user, @user,
|
||||||
:url => { :action => "account" },
|
:url => { :action => "account" },
|
||||||
:html => { :id => 'my_account_form',
|
:html => { :id => 'my_account_form',
|
||||||
:method => :post } do |f| %>
|
:method => :post } do |f| %>
|
||||||
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
||||||
<legend onclick="toggleFieldset(this);">
|
<legend onclick="toggleFieldset(this);">
|
||||||
<%= l(:label_information_plural)%>
|
<%= l(:label_information_plural)%>
|
||||||
</legend>
|
</legend>
|
||||||
|
<div>
|
||||||
<p style="width:400px;padding-left: 26px;">
|
<p style="width:400px;padding-left: 26px;">
|
||||||
<%= f.text_field :firstname, :required => true %>
|
<%= f.text_field :firstname, :required => true %>
|
||||||
</p>
|
</p>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
<% if Setting.openid? %>
|
<% if Setting.openid? %>
|
||||||
<p>
|
<p>
|
||||||
<%= f.text_field :identity_url %>
|
<%= f.text_field :identity_url %>
|
||||||
</p>
|
</p></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% @user.custom_field_values.select(&:editable?).each do |value| %>
|
<% @user.custom_field_values.select(&:editable?).each do |value| %>
|
||||||
|
@ -52,8 +52,11 @@
|
||||||
<%= call_hook(:view_my_account, :user => @user, :form => f) %>
|
<%= call_hook(:view_my_account, :user => @user, :form => f) %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!--Added by young-->
|
<!--Added by young-->
|
||||||
|
<div>
|
||||||
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
||||||
<legend><%=l(:label_authentication)%></legend>
|
<legend onclick="toggleFieldset(this);">
|
||||||
|
<%=l(:label_authentication)%></legend> <!-- add by huang -->
|
||||||
|
<div>
|
||||||
<p style="width:400px;padding-left: 26px;"><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
|
<p style="width:400px;padding-left: 26px;"><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
|
||||||
<%= password_field_tag 'password', nil, :size => 25 %></p>
|
<%= password_field_tag 'password', nil, :size => 25 %></p>
|
||||||
|
|
||||||
|
@ -61,24 +64,27 @@
|
||||||
<%= password_field_tag 'new_password', nil, :size => 25 %>
|
<%= password_field_tag 'new_password', nil, :size => 25 %>
|
||||||
<em class="info" style="width:400px;padding-left: 52px;"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
|
<em class="info" style="width:400px;padding-left: 52px;"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
|
||||||
|
|
||||||
<p style="width:400px;padding-left: 26px;"><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
|
<p style="width:400px;padding-left: 26px;"><label for="new_password_confirmation"><%=l(:field_password_confirmation)%><span class="required">*</span></label>
|
||||||
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>
|
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>
|
||||||
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!--Ended by young-->
|
<!--Ended by young-->
|
||||||
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
||||||
<legend onclick="toggleFieldset(this);">
|
<legend onclick="toggleFieldset(this);">
|
||||||
<%= l(:field_mail_notification)%>
|
<%= l(:field_mail_notification)%>
|
||||||
</legend>
|
</legend>
|
||||||
|
<div>
|
||||||
<p style="width:380px;>
|
<p style="width:380px;>
|
||||||
<%= render :partial => 'users/mail_notifications' %>
|
<%= render :partial => 'users/mail_notifications' %>
|
||||||
</p>
|
</p></div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
||||||
<legend onclick="toggleFieldset(this);">
|
<legend onclick="toggleFieldset(this);">
|
||||||
<%= l(:label_preferences)%>
|
<%= l(:label_preferences)%>
|
||||||
</legend>
|
</legend>
|
||||||
<%= render :partial => 'users/preferences' %>
|
<div>
|
||||||
|
<%= render :partial => 'users/preferences' %></div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<%= submit_tag l(:button_save) %>
|
<%= submit_tag l(:button_save) %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
Loading…
Reference in New Issue