班级设置中的班级名称,框内例子与框外提示不一致,请按第二张图进行修改
This commit is contained in:
parent
35773049cc
commit
6fc34f0ad0
|
|
@ -29,9 +29,12 @@
|
|||
</li>
|
||||
<li class="pt20 clearfix">
|
||||
<label class="panel-form-label label fl"><span class="color-orange mr5">*</span>班级名称 </label>
|
||||
<input type="text" name="course[name]" id="new_course_name" class="task task-height-40 panel-box-sizing fl color-grey" maxlength="100" placeholder="例如 计算机学院通信工程专业16级1班" onkeyup="regex_course_name('new');">
|
||||
<input type="text" name="course[name]" id="new_course_name" class="task task-height-40 panel-box-sizing fl color-grey" maxlength="100" placeholder="例如:软件工程计算机系2016秋季A班" onkeyup="regex_course_name('new');">
|
||||
<div class="cl"></div>
|
||||
<span class="color-orange fl none" id="new_course_name_notice" style="margin-left:25%;"><i class="fa fa-exclamation-circle mr5" ></i>班级名称不能为空且至少有两个字符</span>
|
||||
<div class="cl"></div>
|
||||
<li class="ml125 mb5 fontGrey3" style="margin-left:25%;"><i class="fa fa-check-circle color-light-green mr5"></i>正确示例:软件工程计算机系2016秋季A班</li>
|
||||
<li class="ml125 fontGrey3" style="margin-left:25%;"><i class="fa fa-times-circle color-orange mr5"></i>错误示例:计算机系2016秋季A班</li>
|
||||
</li>
|
||||
<li class="pt20 clearfix">
|
||||
<label class="panel-form-label label fl">总学时 </label>
|
||||
|
|
|
|||
|
|
@ -50,9 +50,12 @@
|
|||
<li class="pt20 clearfix">
|
||||
<label class="panel-form-label label fl"><span class="color-orange mr5">*</span>班级名称
|
||||
</label>
|
||||
<input type="text" name="course[name]" id="edit_course_name" value="<%= @course.name %>" class="task task-height-40 panel-box-sizing fl color-grey" maxlength="100" placeholder="例如 计算机学院通信工程专业16级1班" onkeyup="regex_course_name('edit');">
|
||||
<input type="text" name="course[name]" id="edit_course_name" value="<%= @course.name %>" class="task task-height-40 panel-box-sizing fl color-grey" maxlength="100" placeholder="例如:软件工程计算机系2016秋季A班" onkeyup="regex_course_name('edit');">
|
||||
<div class="cl"></div>
|
||||
<span class="color-orange fl none" id="edit_course_name_notice" style="margin-left:25%;"><i class="fa fa-exclamation-circle mr5" ></i>班级名称不能为空且至少有两个字符</span>
|
||||
<div class="cl"></div>
|
||||
<li class="ml125 mb5 fontGrey3" style="margin-left:25%;"><i class="fa fa-check-circle color-light-green mr5"></i>正确示例:软件工程计算机系2016秋季A班</li>
|
||||
<li class="ml125 fontGrey3" style="margin-left:25%;"><i class="fa fa-times-circle color-orange mr5"></i>错误示例:计算机系2016秋季A班</li>
|
||||
</li>
|
||||
<li class="pt20 clearfix">
|
||||
<label class="panel-form-label label fl">总学时 </label>
|
||||
|
|
|
|||
|
|
@ -576,7 +576,7 @@ function regex_course_name(str)
|
|||
syl_title = $("#"+str+"_syllabus_id").find("option:selected").text();
|
||||
if(name.length < 2)
|
||||
{
|
||||
$("#"+str+"_course_name_notice").html('<i class="fa fa-exclamation-circle mr5" ></i>请班级名称不能为空且至少有两个字符');
|
||||
$("#"+str+"_course_name_notice").html('<i class="fa fa-exclamation-circle mr5" ></i>班级名称不能为空且至少有两个字符');
|
||||
$("#"+str+"_course_name_notice").show();
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue