|
|
|
@ -62,12 +62,45 @@
|
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
|
|
<!-- 昵称 -->
|
|
|
|
|
<p style="width:630px;padding-left: 54px;">
|
|
|
|
|
<p style="width:630px;padding-left: 40px;">
|
|
|
|
|
<%= f.text_field :login, :required => true, :size => 25, :name => "login"%>
|
|
|
|
|
<span class='font_lighter'><%= l(:label_max_number) %></span>
|
|
|
|
|
<br/>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p style="width:400px;padding-left: 54px;">
|
|
|
|
|
<%= l(:label_identity) %><span style="color: #ff0000"> *</span>
|
|
|
|
|
<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="2">
|
|
|
|
|
<%= l(:label_account_identity_enterprise) %>
|
|
|
|
|
</option>
|
|
|
|
|
<option value="3">
|
|
|
|
|
<%= l(:label_account_identity_developer) %>
|
|
|
|
|
</option>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<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>
|
|
|
|
|
</p>
|
|
|
|
|
<div>
|
|
|
|
|
<span id='name' style='display:none'>
|
|
|
|
|
<p style="width:530px;padding-left: 54px;">
|
|
|
|
@ -85,8 +118,8 @@
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span id='enterprise' style='display:none'>
|
|
|
|
|
<p style="width:400px;padding-left: 54px;">
|
|
|
|
|
<%= l(:label_company_name)%>
|
|
|
|
|
<p style="width:400px;padding-left: 40px;">
|
|
|
|
|
<%= l(:label_company_name)%><span style="color: red"> *</span>
|
|
|
|
|
<%= text_field_tag :enterprise_name, @user.firstname %>
|
|
|
|
|
</p>
|
|
|
|
|
</span>
|
|
|
|
@ -112,12 +145,19 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- added by Wen -->
|
|
|
|
|
<p style="padding-left: 26px;">
|
|
|
|
|
<% unless @user.user_extensions.identity == 2 %>
|
|
|
|
|
<%= l(:field_occupation) %>
|
|
|
|
|
<span class="required">*</span>
|
|
|
|
|
<% if User.current.user_extensions.identity == 3 %>
|
|
|
|
|
<p id="occupation_detail" style="padding-left: 26px; display: none">
|
|
|
|
|
|
|
|
|
|
<%= l(:field_occupation) %>
|
|
|
|
|
<span class="required"> </span>
|
|
|
|
|
<% if User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %>
|
|
|
|
|
|
|
|
|
|
<input id="province" name="province" style="display: none" type="text" value="请单击选择省份及学校" readonly>
|
|
|
|
|
<input id="occupation" name="occupation" style="display: none" type="text" value="<%= @user.user_extensions.occupation %>" />
|
|
|
|
|
<input id="occupation_name" type="text" style="display: none" readonly/>
|
|
|
|
@ -132,7 +172,7 @@
|
|
|
|
|
<input id="occupation" name="occupation" type="text" style="display: none" value="<%= User.current.user_extensions.school.id %>"/>
|
|
|
|
|
<input id="occupation_name" type="text" style="display: none" value="<%= User.current.user_extensions.school.name %>" readonly="true" style="background-color: #E2E2E2;"/>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div id="WOpenWindow">
|
|
|
|
@ -249,60 +289,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% unless @user.user_extensions.identity == 2 %>
|
|
|
|
|
<p style="width:400px;padding-left: 54px;">
|
|
|
|
|
<%= l(:label_identity) %>
|
|
|
|
|
<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'>
|
|
|
|
|
<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>
|
|
|
|
|
</p>
|
|
|
|
|
<% else %>
|
|
|
|
|
<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>
|
|
|
|
|
</select>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -604,9 +591,11 @@
|
|
|
|
|
$('#name').show()
|
|
|
|
|
$('#enterprise').hide()
|
|
|
|
|
$('#gender').show()
|
|
|
|
|
$('#occupation_detail').show()
|
|
|
|
|
$('input#province').show()
|
|
|
|
|
$('input#occupation_name').show()
|
|
|
|
|
$('input#occupation').hide()
|
|
|
|
|
|
|
|
|
|
var technical_titleOptions = new Array(
|
|
|
|
|
"<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>");
|
|
|
|
|
break;
|
|
|
|
@ -617,9 +606,11 @@
|
|
|
|
|
$('#name').show()
|
|
|
|
|
$('#enterprise').hide()
|
|
|
|
|
$('#gender').show()
|
|
|
|
|
$('#occupation_detail').show()
|
|
|
|
|
$('input#province').show()
|
|
|
|
|
$('input#occupation_name').show()
|
|
|
|
|
$('input#occupation').hide()
|
|
|
|
|
|
|
|
|
|
var technical_titleOptions = new Array(
|
|
|
|
|
"<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>");
|
|
|
|
|
|
|
|
|
@ -631,9 +622,7 @@
|
|
|
|
|
$('#name').hide()
|
|
|
|
|
$('#enterprise').show()
|
|
|
|
|
$('#gender').hide()
|
|
|
|
|
$('input#province').show()
|
|
|
|
|
$('input#occupation_name').show()
|
|
|
|
|
$('input#occupation').hide()
|
|
|
|
|
$('#occupation_detail').hide()
|
|
|
|
|
var technical_titleOptions = new Array(
|
|
|
|
|
"<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>");
|
|
|
|
|
|
|
|
|
@ -644,6 +633,7 @@
|
|
|
|
|
$('#name').show()
|
|
|
|
|
$('#enterprise').hide()
|
|
|
|
|
$('#gender').show()
|
|
|
|
|
$('#occupation_detail').show()
|
|
|
|
|
$('input#province').hide()
|
|
|
|
|
$('input#occupation_name').hide()
|
|
|
|
|
$('input#occupation').show()
|
|
|
|
@ -658,6 +648,7 @@
|
|
|
|
|
$('#name').show()
|
|
|
|
|
$('#enterprise').hide()
|
|
|
|
|
$('#gender').show()
|
|
|
|
|
$('#occupation_detail').show()
|
|
|
|
|
var technical_titleOptions = new Array(
|
|
|
|
|
"<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>");
|
|
|
|
|
|
|
|
|
|