socialforge/app/views/layouts/_syllabus_edit_info.html.erb

41 lines
2.4 KiB
Plaintext
Raw Normal View History

2016-07-22 10:20:28 +08:00
<%= form_for('syllabus',:url => update_base_info_syllabus_path(syllabus.id),:remote => true) do |f|%>
<h3 class="sy_right_title">课程信息
<a href="javascript:void(0);" onclick="update_syllabus_info();" id="submit_edit_info" class="sy_cmore fr mr10">保存</a>
2016-07-01 11:11:53 +08:00
<div class="cl"></div>
2016-07-22 10:20:28 +08:00
</h3>
<ul class="sy_info mt15" id="all_syllabus_attr">
<li><label >创建教师</label><span class="fl ml10 sy_cgrey"><%=syllabus.user.show_name %></span></li>
<li><label>课程性质</label>
<%= select_tag :syllabus_type,options_for_select(syllabus_type,syllabus.syllabus_type), {:id=>"syllabus_type_input", :class=>"sy_info_select fl"} %>
</li>
2016-07-01 11:11:53 +08:00
<div class="cl"></div>
2016-07-22 10:20:28 +08:00
<li><label >学分</label>
<input id="syllabus_credit_input" style="width: 30px;" class="fl" name="credit" placeholder="5" value="<%=syllabus.credit %>">&nbsp;学分
<span class="none c_red ml5" id="syllabus_credit_notice">正整数</span>
2016-07-01 11:11:53 +08:00
</li>
2016-07-22 10:20:28 +08:00
<div class="cl"></div>
<li><label>总学时</label>
<input id="syllabus_hours_input" style="width: 30px;" class="fl" name="hours" placeholder="50" value="<%=syllabus.hours %>">&nbsp;学时
<span class="none c_red ml5" id="syllabus_hours_notice">正整数</span>
2016-07-01 11:11:53 +08:00
</li>
2016-07-22 10:20:28 +08:00
<div class="cl"></div>
<li><label>理论学时</label>
<input id="syllabus_theory_hours_input" style="width: 30px;" class="fl" name="theory_hours" placeholder="10" value="<%=syllabus.theory_hours %>">&nbsp;学时
<span class="none c_red ml5" id="syllabus_theory_hours_notice">正整数</span>
2016-07-01 11:11:53 +08:00
</li>
2016-07-22 10:20:28 +08:00
<div class="cl"></div>
<li><label>实践学时</label>
<input id="syllabus_practice_hours_input" style="width: 30px;" class="fl" name="practice_hours" placeholder="5" value="<%=syllabus.practice_hours %>">&nbsp;学时
<span class="none c_red ml5" id="syllabus_practice_hours_notice">正整数</span>
2016-07-01 11:11:53 +08:00
</li>
2016-07-22 10:20:28 +08:00
<div class="cl"></div>
<li><label>适用专业</label>
<input id="syllabus_applicable_major_input" class="fl" name="applicable_major" placeholder="UI设计" value="<%=syllabus.applicable_major %>">
</li>
<li><label>选修课程</label>
<input id="syllabus_pre_course_input" class="fl" name="pre_course" placeholder="工业设计史" value="<%=syllabus.pre_course %>">
2016-07-01 11:11:53 +08:00
</li>
2016-07-22 10:20:28 +08:00
<div class="cl"></div>
</ul>
<% end %>