@ -1,27 +1,40 @@
|
||||
<ul class="syllabus_leftinfo" id="all_syllabus_attr">
|
||||
<%= form_for('syllabus',:url => update_base_info_syllabus_path(syllabus.id),:remote => true) do |f|%>
|
||||
<li class="fl"><label >创建教师:</label><span><%=syllabus.user.show_name %></span></li>
|
||||
<a href="javascript:void(0);" onclick="update_syllabus_info();" id="submit_edit_info" class="fr">保存</a>
|
||||
<!--<a href="javascript:void(0);" onclick="reset_syllabus_info();" id="submit_reset_info" class="fr mr10">取消</a>-->
|
||||
<%= 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>
|
||||
<div class="cl"></div>
|
||||
<li><label>课程性质:</label>
|
||||
<%= select_tag :syllabus_type,options_for_select(syllabus_type,syllabus.syllabus_type), {:id=>"syllabus_type_input", :class=>"syllabus_select"} %>
|
||||
</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>
|
||||
<div class="cl"></div>
|
||||
<li><label >学分</label>
|
||||
<input id="syllabus_credit_input" style="width: 30px;" class="fl" name="credit" placeholder="5" value="<%=syllabus.credit %>"> 学分
|
||||
<span class="none c_red ml5" id="syllabus_credit_notice">正整数</span>
|
||||
</li>
|
||||
<li><label >学分:</label>
|
||||
<input id="syllabus_credit_input" class="syllabus_input_min fl" name="credit" placeholder="5" value="<%=syllabus.credit %>"> 学分
|
||||
<span class="none c_red ml5" id="syllabus_credit_notice">请输入正整数</span><div class="cl"></div>
|
||||
<div class="cl"></div>
|
||||
<li><label>总学时</label>
|
||||
<input id="syllabus_hours_input" style="width: 30px;" class="fl" name="hours" placeholder="50" value="<%=syllabus.hours %>"> 学时
|
||||
<span class="none c_red ml5" id="syllabus_hours_notice">正整数</span>
|
||||
</li>
|
||||
<li><label>总学时:</label><input id="syllabus_hours_input" class="syllabus_input_min fl" name="hours" placeholder="50" value="<%=syllabus.hours %>"> 学时
|
||||
<span class="none c_red ml5" id="syllabus_hours_notice">请输入正整数</span><div class="cl"></div>
|
||||
<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 %>"> 学时
|
||||
<span class="none c_red ml5" id="syllabus_theory_hours_notice">正整数</span>
|
||||
</li>
|
||||
<li><label>理论学时:</label><input id="syllabus_theory_hours_input" class="syllabus_input_min fl" name="theory_hours" placeholder="10" value="<%=syllabus.theory_hours %>"> 学时
|
||||
<span class="none c_red ml5" id="syllabus_theory_hours_notice">请输入正整数</span><div class="cl"></div>
|
||||
<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 %>"> 学时
|
||||
<span class="none c_red ml5" id="syllabus_practice_hours_notice">正整数</span>
|
||||
</li>
|
||||
<li><label>实践学时:</label><input id="syllabus_practice_hours_input" class="syllabus_input_min fl" name="practice_hours" placeholder="5" value="<%=syllabus.practice_hours %>"> 学时
|
||||
<span class="none c_red ml5" id="syllabus_practice_hours_notice">请输入正整数</span><div class="cl"></div>
|
||||
<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 %>">
|
||||
</li>
|
||||
<li><label>适用专业:</label><input id="syllabus_applicable_major_input" class="syllabus_input fl" name="applicable_major" placeholder="UI设计" value="<%=syllabus.applicable_major %>"><div class="cl"></div></li>
|
||||
<li><label>选修课程:</label><input id="syllabus_pre_course_input" class="syllabus_input fl" name="pre_course" placeholder="工业设计史" value="<%=syllabus.pre_course %>"><div class="cl"></div></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
@ -1,8 +1,9 @@
|
||||
<% if syllabus.eng_name && !syllabus.eng_name.empty? %>
|
||||
<span><%= syllabus.eng_name %></span>
|
||||
<p><% if syllabus.eng_name && !syllabus.eng_name.empty? %>
|
||||
<span><%=syllabus.eng_name %></span>
|
||||
<% else%>
|
||||
<span class="fontGrey">课程英文名称</span>
|
||||
<!--<span style="color: #888">课程英文名称</span> -->
|
||||
<% end %>
|
||||
<% if User.current == syllabus.user || User.current.admin? %>
|
||||
<%= link_to image_tag("../images/signature_edit.png",width:"12px", height: "12px"), "javascript:void(0);",:id => "syllabus_edit_ng_name_png", :class => "none", :onclick => "show_edit_eng_name();"%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</p>
|
@ -0,0 +1,21 @@
|
||||
<h3 class="sy_right_title">教师团队
|
||||
<a href="javascript:void(0);" class="sy_cmore fr mr10 none" >增加教师</a>
|
||||
<div class="cl"></div>
|
||||
</h3>
|
||||
<ul class="sy_teachers_list">
|
||||
<% teacher = syllabus.user %>
|
||||
<%# teachers.each do |teacher| %>
|
||||
<li >
|
||||
<%= link_to image_tag(url_to_avatar(teacher), :width => "60", :height => "60", :class => "sy_teachers_img fl mr15"), user_path(teacher), :target => "_blank", :alt => "用户头像" %>
|
||||
<div class="sy_teachers_txt fl">
|
||||
<%= link_to teacher.show_name, user_path(teacher), :class => "sy_teachers_name", :target => "_blank" %>
|
||||
<span class="sy_teachers_span">
|
||||
<% if teacher.user_extensions && teacher.user_extensions.identity %>
|
||||
<%= get_user_roll teacher %>
|
||||
<% end%>
|
||||
</span>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
</li>
|
||||
<%# end %>
|
||||
</ul>
|
@ -1,5 +1,6 @@
|
||||
<span style="word-break: normal; word-wrap: break-word;"><%=@syllabus.title %></span>
|
||||
<h2 >课程名称:<%=syllabus.title %>
|
||||
|
||||
<% if User.current == syllabus.user || User.current.admin? %>
|
||||
<%= link_to image_tag("../images/signature_edit.png",width:"12px", height: "12px"), "javascript:void(0);",:id => "syllabus_edit_title_png", :class => "none", :onclick => "show_edit_title('#{@syllabus.title}');"%>
|
||||
<% end %>
|
||||
<%= link_to image_tag("../images/signature_edit.png",width:"12px", height: "12px"), "javascript:void(0);",:id => "syllabus_edit_title_png", :class => "none", :onclick => "show_edit_title('#{syllabus.title}');"%>
|
||||
<% end %>
|
||||
</h2>
|
@ -1,4 +1,4 @@
|
||||
$("#syllabus_title_show").html("<%= escape_javascript render :partial => 'layouts/syllabus_title', :locals => {:syllabus => @syllabus} %>");
|
||||
$("#syllabus_title_edit").text("");
|
||||
$("#syllabus_title_edit").val("");
|
||||
$("#syllabus_title_show").show();
|
||||
$("#syllabus_title_edit").hide();
|
@ -1 +1,12 @@
|
||||
<%= render :partial => 'syllabus_course_list'%>
|
||||
<ul id="sy_tab_nav">
|
||||
<li id="sy_tab_nav_1" onclick="HoverLi(1);">
|
||||
<a href="javascript:void(0);" class="sy_tab_type" >课程大纲</a>
|
||||
</li>
|
||||
<li id="sy_tab_nav_2" class="sy_tab_hover" onclick="HoverLi(2);">
|
||||
<a href="javascript:void(0);" class="sy_tab_type" >班级列表</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div id="sy_tab_con_2">
|
||||
<%=render :partial => 'syllabuses/syllabus_course_list' %>
|
||||
</div><!--班级列表 end-->
|
||||
|
@ -1 +1 @@
|
||||
$("#course-list").replaceWith('<%= escape_javascript( render :partial => 'syllabus_course_list') %>');
|
||||
$("#sy_tab_con_2").html('<%= escape_javascript( render :partial => 'syllabus_course_list') %>');
|
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 18 KiB |
@ -0,0 +1,206 @@
|
||||
/* 字体颜色 */
|
||||
.sy_cblack{ color: #333;}
|
||||
.sy_cgrey{ color: #888;}
|
||||
.sy_corange{ color: #ee4a1f;}
|
||||
.sy_f14{ font-size: 14px;}
|
||||
.sy_f16{ font-size: 16px;}
|
||||
a.sy_cgrey{ color: #888;}
|
||||
a:hover.sy_cgrey{ color:#ee4a1f;}
|
||||
a.sy_corange{ color: #ee4a1f; }
|
||||
a:hover.sy_corange{ text-decoration:underline;}
|
||||
a.sy_cblue{ color: #3b94d6;}
|
||||
a.sy_cblack{ color: #333;}
|
||||
a.sy_cgrey{ color: #888;}
|
||||
a.sy_cmore{ font-size:12px; color:#888; font-weight:normal;}
|
||||
a:hover.sy_cmore{color: #ee4a1f;}
|
||||
/* 按钮*/
|
||||
a.btn_orange_big{
|
||||
border: 1px solid #ee4a1f;
|
||||
color: #ee4a1f;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
padding:0 10px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
-webkit-border-radius:3px;
|
||||
-moz-border-radius:3px;
|
||||
-o-border-radius:3px;
|
||||
border-radius:3px;
|
||||
}
|
||||
a:hover.btn_orange_big{
|
||||
background: #ee4a1f;
|
||||
color: #fff;
|
||||
}
|
||||
a.btn_green_big{
|
||||
border: 1px solid #60b25e;
|
||||
color: #60b25e;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
padding:0 10px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
-webkit-border-radius:3px;
|
||||
-moz-border-radius:3px;
|
||||
-o-border-radius:3px;
|
||||
border-radius:3px;
|
||||
}
|
||||
a:hover.btn_green_big{
|
||||
background: #60b25e;
|
||||
color: #fff;
|
||||
}
|
||||
a.sy_btn_green{
|
||||
color: #fff;
|
||||
background: #60b25e;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
padding:0 15px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
-webkit-border-radius:3px;
|
||||
-moz-border-radius:3px;
|
||||
-o-border-radius:3px;
|
||||
border-radius:3px;
|
||||
}
|
||||
a:hover.sy_btn_green{ background: #51a74f;}
|
||||
a.sy_btn_grey{
|
||||
color: #333;
|
||||
background: #e1e1e1;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
padding:0 15px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
-webkit-border-radius:3px;
|
||||
-moz-border-radius:3px;
|
||||
-o-border-radius:3px;
|
||||
border-radius:3px;
|
||||
}
|
||||
a:hover.sy_btn_grey{ background: #c3c3c3;}
|
||||
a.sy_btn_blue{
|
||||
color: #fff;
|
||||
background: #3b94d6;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
padding:0 15px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
-webkit-border-radius:3px;
|
||||
-moz-border-radius:3px;
|
||||
-o-border-radius:3px;
|
||||
border-radius:3px;
|
||||
}
|
||||
a:hover.sy_btn_blue{ background: #2788d0;}
|
||||
/* 排序 */
|
||||
.sy_category{
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
padding-left: 15px;
|
||||
border-bottom:1px solid #ddd;
|
||||
}
|
||||
.sy_category span{ float: left;}
|
||||
a.sortupbtn{
|
||||
background: url(../images/sy/liststyle.png) 0 3px no-repeat;
|
||||
width:12px;
|
||||
height:17px;
|
||||
display:block;
|
||||
margin-right:10px;
|
||||
cursor:pointer;
|
||||
}
|
||||
a.sortdownbtn{
|
||||
background: url(../images/sy/liststyle.png) 0 -12px no-repeat;
|
||||
width:12px;
|
||||
height:17px;
|
||||
display:block;
|
||||
cursor:pointer;
|
||||
}
|
||||
/* 翻页 */
|
||||
.pages a{
|
||||
display:block;
|
||||
border:1px solid #d1d1d1;
|
||||
color:#888;
|
||||
float:left;
|
||||
width:30px;
|
||||
text-align:center;
|
||||
padding:3px 0;
|
||||
line-height:1.9;
|
||||
margin-right:5px;
|
||||
}
|
||||
.pages a:hover{
|
||||
background-color:#3b94d6;
|
||||
border:1px solid #3b94d6;
|
||||
color:#fff;
|
||||
}
|
||||
a.pages-big{
|
||||
width:50px;
|
||||
}
|
||||
.pages .active{
|
||||
background-color:#3b94d6;
|
||||
border:1px solid #3b94d6;
|
||||
color:#fff;
|
||||
}
|
||||
.pages{
|
||||
width:330px;
|
||||
|
||||
margin:20px auto 10px;
|
||||
}
|
||||
/* 输入框 */
|
||||
.sy_contanier input,.sy_contanier select{
|
||||
border:1px solid #ccc;
|
||||
padding:5px;
|
||||
background:#fff;
|
||||
}
|
||||
/* 加入班级弹窗 */
|
||||
#sy_popup_box{
|
||||
width:460px;
|
||||
background:#fff;
|
||||
padding-bottom:30px;
|
||||
-webkit-border-radius:5px;
|
||||
-moz-border-radius:5px;
|
||||
-o-border-radius:5px;
|
||||
border-radius:5px;
|
||||
box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5);
|
||||
}
|
||||
.sy_popup_top{
|
||||
background:#3b94d6;
|
||||
height:40px;
|
||||
-webkit-border-radius: 5px 5px 0px 0px;
|
||||
-moz-border-radius: 5px 5px 0px 0px;
|
||||
-o-border-radius: 5px 5px 0px 0px;
|
||||
border-radius: 5px 5px 0px 0px;
|
||||
}
|
||||
.sy_popup_top h3{
|
||||
font-size:18px;
|
||||
color:#fff;
|
||||
font-weight:normal;
|
||||
line-height:40px;
|
||||
padding-left:10px;
|
||||
}
|
||||
a.sy_icons_close{
|
||||
width:20px;
|
||||
height:20px;
|
||||
display:block;
|
||||
background: url(../images/sy/sy_icons_close.png) 0 0px no-repeat;
|
||||
margin:8px 10px 0 0;
|
||||
}
|
||||
.sy_popup_con{
|
||||
margin:30px auto 0;
|
||||
font-size:14px;
|
||||
width:330px;
|
||||
}
|
||||
.sy_popup_add label{
|
||||
display:block;
|
||||
float:left;
|
||||
width:85px;
|
||||
text-align:right;
|
||||
line-height:40px;
|
||||
}
|
||||
.sy_popup_add li{
|
||||
line-height:40px;
|
||||
}
|
||||
.sy_input_txt{
|
||||
border:1px solid #dedede;
|
||||
height:36px;
|
||||
background:#fff;
|
||||
padding:0 5px;
|
||||
width:220px;
|
||||
}
|