|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(
|
|
|
|
|
function () {
|
|
|
|
@ -19,17 +17,13 @@
|
|
|
|
|
data: 'text',
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#province").val(value)
|
|
|
|
|
$("#schoollist").html(data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -78,60 +72,47 @@
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 增加账户里的性别-->
|
|
|
|
|
<span id='gender' style='display:none'>
|
|
|
|
|
<% unless @user.user_extensions.nil? %>
|
|
|
|
|
<% if @user.user_extensions.gender == 0 %>
|
|
|
|
|
<% if @user.user_extensions.nil? %>
|
|
|
|
|
<p style="width:400px;padding-left: 26px;">
|
|
|
|
|
<%= l(:label_gender) %> <%= select_tag 'gender', "<option value = '0'>#{l(:label_gender_male)}</option><option value = '1'>#{l(:label_gender_female)}</option>".html_safe ,:class =>'gender' %>
|
|
|
|
|
<%= l(:label_gender) %>
|
|
|
|
|
<%= select_tag 'gender', "<option value = '0'>#{l(:label_gender_male)}</option><option value = '1'>#{l(:label_gender_female)}</option>".html_safe, :class => 'gender' %>
|
|
|
|
|
</p>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if @user.user_extensions.gender == 0 %><!-- label_gender_male -->
|
|
|
|
|
<p style="width:400px;padding-left: 26px;">
|
|
|
|
|
<%= l(:label_gender) %>
|
|
|
|
|
<%= select_tag 'gender', "<option value = '0'>#{l(:label_gender_male)}</option><option value = '1'>#{l(:label_gender_female)}</option>".html_safe, :class => 'gender' %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
<p style="width:400px;padding-left: 26px;">
|
|
|
|
|
<%= l(:label_gender) %> <%= select_tag 'gender', "<option value = '0'>#{l(:label_gender_male)}</option><option value = '1' selected='selected'>#{l(:label_gender_female)}</option>".html_safe ,:class =>'gender' %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<p style="width:400px;padding-left: 26px;"><%= l(:label_gender) %> <%= select_tag 'gender', "<option value = '0'>#{l(:label_gender_male)}</option><option value = '1'>#{l(:label_gender_female)}</option>".html_safe ,:class =>'gender' %></p>
|
|
|
|
|
<%= l(:label_gender) %>
|
|
|
|
|
<%= select_tag 'gender', "<option value = '0'>#{l(:label_gender_male)}</option><option value = '1' selected='selected'>#{l(:label_gender_female)}</option>".html_safe, :class => 'gender' %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 单位-->
|
|
|
|
|
<!--<% unless @user.user_extensions.nil?%>
|
|
|
|
|
<p style="width:400px;padding-left: 26px;"><%= l(:field_occupation)%> <span class="required">*</span><%= text_field_tag "occupation", @user.user_extensions.occupation, :class => 'occupation' %>
|
|
|
|
|
</p>
|
|
|
|
|
<%else%>
|
|
|
|
|
<p style="width:400px;padding-left: 26px;"><%= l(:field_occupation)%><span class="required">*</span><%= text_field_tag "occupation", nil, :class => 'occupation' %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
-->
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<!-- added by Wen -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p style="padding-left: 26px;">
|
|
|
|
|
<% unless User.current.user_extensions.school.nil? %>
|
|
|
|
|
|
|
|
|
|
<%= l(:field_occupation) %> <span class="required">*</span>
|
|
|
|
|
|
|
|
|
|
<input id="province" name="province" type="text" value="<%=User.current.user_extensions.school.province%>" readonly />
|
|
|
|
|
<input id="occupation" name="occupation" type="hidden" value="<%=User.current.user_extensions.school.id%>" />
|
|
|
|
|
<input id="occupation_name" type="text" value="<%=User.current.user_extensions.school.name%>" readonly />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
|
|
<% if User.current.user_extensions.school.nil? %>
|
|
|
|
|
<%= l(:field_occupation) %> <span class="required">*</span>
|
|
|
|
|
<input id="province" name="province" type="text" value="请单击选择省份及学校" readonly>
|
|
|
|
|
<input id="occupation" name="occupation" type="hidden"/>
|
|
|
|
|
<input id="occupation_name" type="text" readonly/>
|
|
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= l(:field_occupation) %> <span class="required">*</span>
|
|
|
|
|
<input id="province" name="province" type="text" value="<%= User.current.user_extensions.school.province %>" readonly/>
|
|
|
|
|
<input id="occupation" name="occupation" type="hidden" value="<%= User.current.user_extensions.school.id %>"/>
|
|
|
|
|
<input id="occupation_name" type="text" value="<%= User.current.user_extensions.school.name %>" readonly/>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- <input id="occupation" readonly />-->
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div id="WOpenWindow">
|
|
|
|
|
<a class="modal_close" href="#"></a>
|
|
|
|
|
|
|
|
|
|
<h2>学校列表</h2>
|
|
|
|
|
|
|
|
|
|
<div class="pcontent">
|
|
|
|
|
<ul id="provincelist" class="school_list">
|
|
|
|
|
<% @ss = School.find_by_sql("select distinct province from schools") %>
|
|
|
|
@ -149,37 +130,165 @@
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function test(id, name) {
|
|
|
|
|
//$("#occupation").html("<option value='"+id+"'>"+name+"</option>");
|
|
|
|
|
$("#occupation").val(id);
|
|
|
|
|
$("#occupation_name").val(name);
|
|
|
|
|
|
|
|
|
|
$("#lean_overlay").hide();
|
|
|
|
|
$("#WOpenWindow").hide();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 增加了地区 -->
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
<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%>
|
|
|
|
|
<%= f.select :language, :Chinese => :zh, :English => :en %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% province = User.current.user_extensions.location %>
|
|
|
|
|
<% city = User.current.user_extensions.location_city %>
|
|
|
|
|
<% identity = User.current.user_extensions.identity %>
|
|
|
|
|
<% title = User.current.user_extensions.technical_title %>
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
$().ready(function () {
|
|
|
|
|
var province = "<%= "#{province}" %>"
|
|
|
|
|
var city = "<%= "#{city}" %>"
|
|
|
|
|
init_province_and_city(document.getElementById('userProvince'), province, document.getElementById('userCity'), city);
|
|
|
|
|
var identity = "<%= "#{identity}" %>"
|
|
|
|
|
var title = "<%= "#{title}" %>"
|
|
|
|
|
init_identity_and_title(document.getElementById('userIdentity'), identity, document.getElementById('userTechnical_title'), title);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<p style="width:400px;padding-left: 26px;"><%= l(:label_location) %>
|
|
|
|
|
<select onchange="showcity(this.value, document.getElementById('userCity'));" name="province" id="userProvince" class="location">
|
|
|
|
|
<option value="">--请选择省份--</option>
|
|
|
|
|
<option value="北京">北京</option>
|
|
|
|
|
<option value="上海">上海</option>
|
|
|
|
|
<option value="广东">广东</option>
|
|
|
|
|
<option value="江苏">江苏</option>
|
|
|
|
|
<option value="浙江">浙江</option>
|
|
|
|
|
<option value="重庆">重庆</option>
|
|
|
|
|
<option value="安徽">安徽</option>
|
|
|
|
|
<option value="福建">福建</option>
|
|
|
|
|
<option value="甘肃">甘肃</option>
|
|
|
|
|
<option value="广西">广西</option>
|
|
|
|
|
<option value="贵州">贵州</option>
|
|
|
|
|
<option value="海南">海南</option>
|
|
|
|
|
<option value="河北">河北</option>
|
|
|
|
|
<option value="黑龙江">黑龙江</option>
|
|
|
|
|
<option value="河南">河南</option>
|
|
|
|
|
<option value="湖北">湖北</option>
|
|
|
|
|
<option value="湖南">湖南</option>
|
|
|
|
|
<option value="江西">江西</option>
|
|
|
|
|
<option value="吉林">吉林</option>
|
|
|
|
|
<option value="辽宁">辽宁</option>
|
|
|
|
|
<option value="内蒙古">内蒙古</option>
|
|
|
|
|
<option value="宁夏">宁夏</option>
|
|
|
|
|
<option value="青海">青海</option>
|
|
|
|
|
<option value="山东">山东</option>
|
|
|
|
|
<option value="山西">山西</option>
|
|
|
|
|
<option value="陕西">陕西</option>
|
|
|
|
|
<option value="四川">四川</option>
|
|
|
|
|
<option value="天津">天津</option>
|
|
|
|
|
<option value="新疆">新疆</option>
|
|
|
|
|
<option value="西藏">西藏</option>
|
|
|
|
|
<option value="云南">云南</option>
|
|
|
|
|
<option value="香港">香港特别行政区</option>
|
|
|
|
|
<option value="澳门">澳门特别行政区</option>
|
|
|
|
|
<option value="台湾">台湾</option>
|
|
|
|
|
<option value="海外">海外</option>
|
|
|
|
|
</select>
|
|
|
|
|
<select name="city" id="userCity" class="location"></select>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% 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>
|
|
|
|
|
</p>
|
|
|
|
|
<span id='technical_title' style='display:none'>
|
|
|
|
|
<select name="technical_title" id="userTechnical_title"></select>
|
|
|
|
|
</span>
|
|
|
|
|
<span id='no' style='display:none'>
|
|
|
|
|
<!-- modified by fq -->
|
|
|
|
|
<% unless User.current.user_extensions.student_id.nil? %>
|
|
|
|
|
<%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= text_field_tag :no, nil, :placeholder => "请输入学号" %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
</span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if Setting.openid? %>
|
|
|
|
|
<p> <%= f.text_field :identity_url %> </p>
|
|
|
|
|
<% 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>
|
|
|
|
|
|
|
|
|
|
<!-- 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)) -%>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
function showcity(province, cityField) {
|
|
|
|
|
switch (province) {
|
|
|
|
@ -368,95 +477,30 @@ function showcity(province, cityField) {
|
|
|
|
|
}
|
|
|
|
|
function init_province_and_city(pField, province, cField, city) {
|
|
|
|
|
for (var i = 0; i < pField.options.length; i++) {
|
|
|
|
|
if (pField.options[i].value==province)
|
|
|
|
|
{
|
|
|
|
|
if (pField.options[i].value == province) {
|
|
|
|
|
pField.selectedIndex = i;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
showcity(province, cField);
|
|
|
|
|
for (var i = 0; i < cField.options.length; i++) {
|
|
|
|
|
if (cField.options[i].value==city)
|
|
|
|
|
{
|
|
|
|
|
if (cField.options[i].value == city) {
|
|
|
|
|
cField.selectedIndex = i;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function init_identity_and_title(pField, identity, cField, title) {
|
|
|
|
|
for (var i = 0; i < pField.options.length; i++) {
|
|
|
|
|
if (pField.options[i].value==identity)
|
|
|
|
|
{
|
|
|
|
|
if (pField.options[i].value == identity) {
|
|
|
|
|
pField.selectedIndex = i;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
showtechnical_title(identity, cField);
|
|
|
|
|
for (var i = 0; i < cField.options.length; i++) {
|
|
|
|
|
if (cField.options[i].value==title)
|
|
|
|
|
{
|
|
|
|
|
if (cField.options[i].value == title) {
|
|
|
|
|
cField.selectedIndex = i;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<% province = User.current.user_extensions.location %>
|
|
|
|
|
<% city = User.current.user_extensions.location_city %>
|
|
|
|
|
<% identity = User.current.user_extensions.identity %>
|
|
|
|
|
<% title = User.current.user_extensions.technical_title %>
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
$().ready(function(){
|
|
|
|
|
var province = "<%= "#{province}" %>"
|
|
|
|
|
var city = "<%= "#{city}" %>"
|
|
|
|
|
init_province_and_city(document.getElementById('userProvince'),province, document.getElementById('userCity'),city);
|
|
|
|
|
var identity = "<%= "#{identity}" %>"
|
|
|
|
|
var title = "<%= "#{title}" %>"
|
|
|
|
|
init_identity_and_title(document.getElementById('userIdentity'),identity, document.getElementById('userTechnical_title'),title);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<p style="width:400px;padding-left: 26px;"><%= l(:label_location) %>
|
|
|
|
|
<select onchange="showcity(this.value, document.getElementById('userCity'));" name="province" id="userProvince" class="location">
|
|
|
|
|
<option value="">--请选择省份--</option>
|
|
|
|
|
<option value="北京">北京</option>
|
|
|
|
|
<option value="上海">上海</option>
|
|
|
|
|
<option value="广东">广东</option>
|
|
|
|
|
<option value="江苏">江苏</option>
|
|
|
|
|
<option value="浙江">浙江</option>
|
|
|
|
|
<option value="重庆">重庆</option>
|
|
|
|
|
<option value="安徽">安徽</option>
|
|
|
|
|
<option value="福建">福建</option>
|
|
|
|
|
<option value="甘肃">甘肃</option>
|
|
|
|
|
<option value="广西">广西</option>
|
|
|
|
|
<option value="贵州">贵州</option>
|
|
|
|
|
<option value="海南">海南</option>
|
|
|
|
|
<option value="河北">河北</option>
|
|
|
|
|
<option value="黑龙江">黑龙江</option>
|
|
|
|
|
<option value="河南">河南</option>
|
|
|
|
|
<option value="湖北">湖北</option>
|
|
|
|
|
<option value="湖南">湖南</option>
|
|
|
|
|
<option value="江西">江西</option>
|
|
|
|
|
<option value="吉林">吉林</option>
|
|
|
|
|
<option value="辽宁">辽宁</option>
|
|
|
|
|
<option value="内蒙古">内蒙古</option>
|
|
|
|
|
<option value="宁夏">宁夏</option>
|
|
|
|
|
<option value="青海">青海</option>
|
|
|
|
|
<option value="山东">山东</option>
|
|
|
|
|
<option value="山西">山西</option>
|
|
|
|
|
<option value="陕西">陕西</option>
|
|
|
|
|
<option value="四川">四川</option>
|
|
|
|
|
<option value="天津">天津</option>
|
|
|
|
|
<option value="新疆">新疆</option>
|
|
|
|
|
<option value="西藏">西藏</option>
|
|
|
|
|
<option value="云南">云南</option>
|
|
|
|
|
<option value="香港">香港特别行政区</option>
|
|
|
|
|
<option value="澳门">澳门特别行政区</option>
|
|
|
|
|
<option value="台湾">台湾</option>
|
|
|
|
|
<option value="海外">海外</option>
|
|
|
|
|
</select>
|
|
|
|
|
<select name="city" id="userCity" class="location"></select></p>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 增加职称-->
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
function showtechnical_title(identity, technical_titleField) {
|
|
|
|
|
switch (identity) {
|
|
|
|
|
|
|
|
|
@ -510,95 +554,3 @@ $().ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% unless @user.user_extensions.identity == 2 %>
|
|
|
|
|
<p style="width:400px;padding-left: 26px;"><%= l(:label_identity) %>
|
|
|
|
|
<td class="info" style="width: 10px">
|
|
|
|
|
<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></td>
|
|
|
|
|
<span id = 'technical_title' style = 'display:none'>
|
|
|
|
|
<select name="technical_title" id="userTechnical_title"></select></span>
|
|
|
|
|
<span id = 'no' style = 'display:none'>
|
|
|
|
|
|
|
|
|
|
<!-- modified by fq -->
|
|
|
|
|
<% unless User.current.user_extensions.student_id.nil? %>
|
|
|
|
|
<%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %></span>
|
|
|
|
|
<!-- <input name="no" id="no" value=<%= "#{User.current.user_extensions.student_id}" %> placeholder="请输入学号"></span> -->
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= text_field_tag :no, nil, :placeholder => "请输入学号" %></span>
|
|
|
|
|
<!-- <input name="no" id="no" placeholder="请输入学号"></span> -->
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
</td></tr></table></p>
|
|
|
|
|
<% else %>
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% 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;">
|
|
|
|
|
<%= 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)) -%>
|
|
|
|
|