修改页面代码
This commit is contained in:
parent
6db235cf3c
commit
986f48f012
|
@ -35,7 +35,9 @@
|
|||
<%= call_hook(:view_my_account_contextual, :user => @user) %>
|
||||
</div>
|
||||
|
||||
<h3 style="padding-left: 10px;"><%= l(:label_my_account) %></h3>
|
||||
<h3 style="padding-left: 10px;">
|
||||
<%= l(:label_my_account) %>
|
||||
</h3>
|
||||
<%= error_messages_for 'user' %>
|
||||
<fieldset class="box" style="margin:10px;">
|
||||
<%= labelled_form_for :user, @user,
|
||||
|
@ -68,17 +70,22 @@
|
|||
<span id='name' style='display:none'>
|
||||
<p style="width:530px;padding-left: 26px;">
|
||||
<%= f.text_field :lastname, :required => true %>
|
||||
<span class='font_lighter'><%= l(:field_lastname_eg) %></span>
|
||||
<span class='font_lighter'>
|
||||
<%= l(:field_lastname_eg) %>
|
||||
</span>
|
||||
</p>
|
||||
<p style="width:530px;padding-left: 26px;">
|
||||
<%= f.text_field :firstname, :required => true %>
|
||||
<span class='font_lighter'><%= l(:field_firstname_eg) %></span>
|
||||
<span class='font_lighter'>
|
||||
<%= l(:field_firstname_eg) %>
|
||||
</span>
|
||||
</p>
|
||||
</span>
|
||||
|
||||
<span id='enterprise' style='display:none'>
|
||||
<p style="width:400px;padding-left: 26px;">
|
||||
<%= l(:label_company_name)%><%= text_field_tag :enterprise_name, @user.firstname %>
|
||||
<%= l(:label_company_name)%>
|
||||
<%= text_field_tag :enterprise_name, @user.firstname %>
|
||||
</p>
|
||||
</span>
|
||||
|
||||
|
@ -230,11 +237,19 @@
|
|||
<% unless @user.user_extensions.identity == 2 %>
|
||||
<p style="width:400px;padding-left: 26px;">
|
||||
<%= l(:label_identity) %>
|
||||
<select onchange="showtechnical_title(this.value, document.getElementById('userTechnical_title'));" name="identity" id="userIdentity" class="location">
|
||||
<option value=""><%= l(:label_account_identity_choose) %></option>
|
||||
<option value="0"><%= l(:label_account_identity_teacher) %></option>
|
||||
<option value="1"><%= l(:label_account_identity_student) %></option>
|
||||
<option value="3"><%= l(:label_account_identity_developer) %></option>
|
||||
<select onchange="showtechnical_title(this.value, $('#userTechnical_title'));" name="identity" id="userIdentity" class="location">
|
||||
<option value="">
|
||||
<%= l(:label_account_identity_choose) %>
|
||||
</option>
|
||||
<option value="0">
|
||||
<%= l(:label_account_identity_teacher) %>
|
||||
</option>
|
||||
<option value="1">
|
||||
<%= l(:label_account_identity_student) %>
|
||||
</option>
|
||||
<option value="3">
|
||||
<%= l(:label_account_identity_developer) %>
|
||||
</option>
|
||||
|
||||
</select>
|
||||
<span id='technical_title' style='display:none'>
|
||||
|
@ -254,11 +269,21 @@
|
|||
<p>
|
||||
<span style="display:none">
|
||||
<select onchange="showtechnical_title(this.value, document.getElementById('userTechnical_title'));" name="identity" id="userIdentity" class="location">
|
||||
<option value=""><%= l(:label_account_identity_choose) %></option>
|
||||
<option value="0"><%= l(:label_account_identity_teacher) %></option>
|
||||
<option value="1"><%= l(:label_account_identity_student) %></option>
|
||||
<option value="2"><%= l(:label_account_identity_enterprise) %></option>
|
||||
<option value="3"><%= l(:label_account_identity_developer) %></option>
|
||||
<option value="">
|
||||
<%= l(:label_account_identity_choose) %>
|
||||
</option>
|
||||
<option value="0">
|
||||
<%= l(:label_account_identity_teacher) %>
|
||||
</option>
|
||||
<option value="1">
|
||||
<%= l(:label_account_identity_student) %>
|
||||
</option>
|
||||
<option value="2">
|
||||
<%= l(:label_account_identity_enterprise) %>
|
||||
</option>
|
||||
<option value="3">
|
||||
<%= l(:label_account_identity_developer) %>
|
||||
</option>
|
||||
</select>
|
||||
</span>
|
||||
</p>
|
||||
|
@ -267,7 +292,9 @@
|
|||
|
||||
|
||||
<% if Setting.openid? %>
|
||||
<p> <%= f.text_field :identity_url %> </p>
|
||||
<p>
|
||||
<%= f.text_field :identity_url %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<% @user.custom_field_values.select(&:editable?).each do |value| %>
|
||||
|
|
Loading…
Reference in New Issue