注册页面增加学号提示 #1287
This commit is contained in:
parent
3fef2d8a3c
commit
f1aa0c1570
app/views/account
|
@ -291,7 +291,6 @@
|
||||||
|
|
||||||
<%= labelled_form_for @user, :url => register_path do |f| %>
|
<%= labelled_form_for @user, :url => register_path do |f| %>
|
||||||
<%= error_messages_for 'user' %>
|
<%= error_messages_for 'user' %>
|
||||||
|
|
||||||
<div class="box tabular">
|
<div class="box tabular">
|
||||||
<p>
|
<p>
|
||||||
<table>
|
<table>
|
||||||
|
@ -305,31 +304,34 @@
|
||||||
<option value="1"><%= l(:label_student) %></option>
|
<option value="1"><%= l(:label_student) %></option>
|
||||||
<option value="2"><%= l(:label_enterprise) %></option>
|
<option value="2"><%= l(:label_enterprise) %></option>
|
||||||
<option value="3"><%= l(:label_account_developer) %></option>
|
<option value="3"><%= l(:label_account_developer) %></option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span id='technical_title' style='display:none'>
|
<span id='technical_title' style='display:none'>
|
||||||
<select name="technical_title" id="userTechnical_title"></select></span>
|
<select name="technical_title" id="userTechnical_title"></select>
|
||||||
|
</span>
|
||||||
<span id='no' style='display:none'>
|
<span id='no' style='display:none'>
|
||||||
|
<strong>
|
||||||
|
<%= l(:label_bidding_user_studentcode) %>
|
||||||
|
<span class="required"> *</span>
|
||||||
|
</strong>
|
||||||
<% unless User.current.user_extensions.nil? %>
|
<% unless User.current.user_extensions.nil? %>
|
||||||
<%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %></span>
|
<%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= text_field_tag :no, nil, :placeholder => "请输入学号" %></span>
|
<%= text_field_tag :no, nil, :placeholder => "请输入学号" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<% if @user.auth_source_id.nil? %>
|
<% if @user.auth_source_id.nil? %>
|
||||||
<p><%= f.text_field :login, :size => 25, :required => true %><span id="valid_user_login"></span>
|
<p><%= f.text_field :login, :size => 25, :required => true %><span id="valid_user_login"></span>
|
||||||
<em class="info"><%= l(:label_max_number) %></em></p>
|
<em class="info"><%= l(:label_max_number) %></em>
|
||||||
|
</p>
|
||||||
<p><%= f.password_field :password, :size => 25, :required => true %>
|
<p><%= f.password_field :password, :size => 25, :required => true %>
|
||||||
<em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
|
<em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em>
|
||||||
|
</p>
|
||||||
<p><%= f.password_field :password_confirmation, :size => 25, :required => true %></p>
|
<p><%= f.password_field :password_confirmation, :size => 25, :required => true %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span id='name' style='display:none'>
|
<span id='name' style='display:none'>
|
||||||
|
@ -337,23 +339,29 @@
|
||||||
<p><%= f.text_field :lastname, :required => true %></p>
|
<p><%= f.text_field :lastname, :required => true %></p>
|
||||||
</span>
|
</span>
|
||||||
<span id='enterprise' style='display:none'>
|
<span id='enterprise' style='display:none'>
|
||||||
<p><table>
|
<p>
|
||||||
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info" align="right" style="width: 90px"><strong>企业名<span class="required"> *</span></strong></td>
|
<td class="info" align="right" style="width: 90px">
|
||||||
|
<strong>企业名
|
||||||
|
<span class="required"> *</span>
|
||||||
|
</strong>
|
||||||
|
</td>
|
||||||
<td class="info" style="width: 10px">
|
<td class="info" style="width: 10px">
|
||||||
<%= text_field_tag :enterprise_name %></td>
|
<%= text_field_tag :enterprise_name %>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<p><%= f.text_field :mail, :required => true %><span id="valid_user_mail"></span></p>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<em class="info"><%= "#{l(:label_mail_attention)} " %></em></p>
|
<%= f.text_field :mail, :required => true %>
|
||||||
|
<span id="valid_user_mail"></span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<em class="info"><%= "#{l(:label_mail_attention)} " %></em>
|
||||||
|
</p>
|
||||||
<p><%= f.select :language, lang_options_for_select, :required => true %></p>
|
<p><%= f.select :language, lang_options_for_select, :required => true %></p>
|
||||||
|
|
||||||
<!-- added by bai 增加了身份、性别和地区-->
|
<!-- added by bai 增加了身份、性别和地区-->
|
||||||
|
|
||||||
<span id='gender' style='display:none'>
|
<span id='gender' style='display:none'>
|
||||||
|
@ -370,8 +378,6 @@
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -435,19 +441,13 @@
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if Setting.openid? %>
|
<% if Setting.openid? %>
|
||||||
<p><%= f.text_field :identity_url %></p>
|
<p><%= f.text_field :identity_url %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<% @user.custom_field_values.select { |v| v.editable? || v.required? }.each do |value| %>
|
<% @user.custom_field_values.select { |v| v.editable? || v.required? }.each do |value| %>
|
||||||
<p><%= custom_field_tag_with_label :user, value %></p>
|
<p><%= custom_field_tag_with_label :user, value %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
var $login = $('#user_login')
|
var $login = $('#user_login')
|
||||||
|
@ -486,5 +486,4 @@
|
||||||
;
|
;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue