|
|
|
@ -126,7 +126,7 @@
|
|
|
|
|
<div>
|
|
|
|
|
<p class="collegeInfo"><%= @training_title %></p>
|
|
|
|
|
<%= form_for @training do |f| %>
|
|
|
|
|
<%= hidden_field_tag(:id, @tag_id) %>
|
|
|
|
|
<%= hidden_field_tag(:tag_id, @tag_id) %>
|
|
|
|
|
|
|
|
|
|
<p class="subtitle">基本信息</p>
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
@ -304,6 +304,19 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<% if @training_type == 3 %>
|
|
|
|
|
var trainingCategory = $('input[type="radio"][name="training_category"]:checked').val();
|
|
|
|
|
if (trainingCategory == undefined || trainingCategory == '') {
|
|
|
|
|
alert('请选择培训类型');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($("input[type='checkbox'][name='research_field[]']:checked").length == 0) {
|
|
|
|
|
alert('请选择授课类型/研究领域');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
if (userphone == '') {
|
|
|
|
|
alert("请输入手机号码");
|
|
|
|
|
return;
|
|
|
|
|