58 lines
3.3 KiB
Plaintext
58 lines
3.3 KiB
Plaintext
<div class="project_r_h02">
|
||
<h2 class="project_h2"><%= l(:permission_new_course)%></h2>
|
||
</div>
|
||
<div class="hwork_new">
|
||
<ul>
|
||
<%= labelled_form_for @course do |f| %>
|
||
<li class="ml45">
|
||
<label><span class="c_red">*</span> <%= l(:label_tags_course_name)%> :</label>
|
||
<input type="text" name="course[name]" id="course_name" class="courses_input" maxlength="100" onkeyup="regex_course_name();">
|
||
<span class="c_red" id="course_name_notice" style="display: none;">课程名称不能为空</span>
|
||
</li>
|
||
<div class="cl"></div>
|
||
<li class="ml45">
|
||
<label><span class="c_red">*</span> <%= l(:label_class_period)%> :</label>
|
||
<input type="text" name="class_period" id="class_period" class="hwork_input02" onkeyup="regex_course_class_period();" maxlength="6">
|
||
<span class="c_red" id="course_class_period_notice" style="display: none;"></span>
|
||
</li>
|
||
<div class="cl"></div>
|
||
<li class="ml45 mb10">
|
||
<label><span class="c_red">*</span> <%= l(:label_course_term)%> :</label>
|
||
<%= select_tag :time,options_for_select(course_time_option(@course.time),@course.time), {} %>
|
||
<%= select_tag :term,options_for_select(course_term_option,@course.term || cur_course_term),{} %>
|
||
</li>
|
||
<div class="cl"></div>
|
||
<li class="ml45 mb10">
|
||
<label><span class="c_red">*</span> <%= l(:label_new_course_password)%> :</label>
|
||
<input type="text" style="display: none;">
|
||
<input type="password" name="course[password]" id="course_course_password" class="hwork_input02">
|
||
<a id="psw_btn" href="javascript:void(0)">显示明码</a>
|
||
<div class="cl"></div>
|
||
<span class=" ml80 c_orange">学生或其他成员申请加入课程时候需要使用该口令,该口令可以由老师在课堂上公布。</span>
|
||
</li>
|
||
<li class="ml45">
|
||
<label class="fl" > <%= l(:label_new_course_description)%> :</label>
|
||
<textarea name="course[description]" placeholder="最多3000个汉字(或6000个英文字符)" class="courses_text fl" ></textarea>
|
||
<div class="cl"></div>
|
||
</li>
|
||
<li class=" mb5 ml80">
|
||
<label >公开 :</label>
|
||
<input id="course_is_public" name="course[is_public]" type="checkbox" value="1">
|
||
<span class="c_grey">(打钩为公开,不打钩则不公开,若不公开,仅课程成员可见该课程。)</span>
|
||
<div class="cl"></div>
|
||
</li>
|
||
<li class=" mb5 ml30">
|
||
<label >学生列表公开 :</label>
|
||
<input id="course_open_student" name="course[open_student]" type="checkbox" value="1">
|
||
<span class="c_grey">(打钩为"学生列表公开",不打钩为不公开,若不公开,则课程外部人员看不到学生列表)</span>
|
||
<div class="cl"></div>
|
||
</li>
|
||
<li class=" ml90" >
|
||
<a href="javascript:void(0)" class="blue_btn fl c_white" onclick="submit_new_course();" >提交</a>
|
||
<a href="http://<%= Setting.host_course%>" target="_blank" class="blue_btn grey_btn fl c_white">取消</a>
|
||
<div class="cl"></div>
|
||
</li>
|
||
<% end%>
|
||
</ul>
|
||
</div><!--talknew end-->
|
||
<div class="cl"></div> |