191 lines
8.1 KiB
Plaintext
191 lines
8.1 KiB
Plaintext
<%= content_for(:header_tags) do %>
|
||
<%= import_ke(enable_at: false, prettify: false, init_activity: true) %>
|
||
<% end %>
|
||
<%= javascript_include_tag 'baiduTemplate' %>
|
||
|
||
<div class="edu-class-container" style="flex: 1 0 auto;">
|
||
<p class="mb10">
|
||
<i class="fa fa-map-marker mr5 color-grey" ></i>
|
||
<%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', courses_path %> > <%= @syllabus.title %></p>
|
||
<div class="edu-class-box">
|
||
<div class="edu-class-top clearfix mb20">
|
||
<ul class="fl edu-class-top-info">
|
||
<li class="color-grey mb5"><%= @syllabus.user.user_extensions.school.blank? ? '' : @syllabus.user.user_extensions.school.name %></li>
|
||
<li class="font-24 font-bold mb10">
|
||
<%= @syllabus.title %>
|
||
<% if @is_syllabus_member %>
|
||
<a href="<%= edit_syllabus_path(@syllabus) %>" title="编辑" class="link-color-grey">
|
||
<i class="fa fa-edit ml15" aria-hidden="true"></i>
|
||
</a>
|
||
<% end %>
|
||
</li>
|
||
<li class="color-grey" style="height: 26px;"><%= @syllabus.eng_name %></li>
|
||
<li class="color-grey font-12">
|
||
<% if @syllabus.major_level %>
|
||
<span class="mr15"><%= @syllabus.syllabus_major_level %></span>
|
||
<span class="mr15"><%= @syllabus.syllabus_discipline_category %></span>
|
||
<span class="mr15"><%= @syllabus.syllabus_first_level_discipline %></span>
|
||
<% end %>
|
||
<span class="mr15 <%= @syllabus.syllabus_type_str ? '' : 'none' %>"><%= @syllabus.syllabus_type_str %></span></li>
|
||
</ul>
|
||
|
||
<div class="edu-class-top-img fr edu-position" >
|
||
<img src="../images/bigdata/edu-class/edu-class-img.jpg" width="260" height="140">
|
||
<% if @is_syllabus_member %>
|
||
<a href="javascript:void(0)" class="edu-class-right-add edu-undis">
|
||
<span>更换图片</span>
|
||
</a>
|
||
<% end %>
|
||
</div>
|
||
<% if @is_syllabus_member %>
|
||
<%= link_to '选用', choose_user_course_syllabus_path(@syllabus, :type => 'A'), :class => 'task-btn task-btn-blue fr mr20 ml20', :style => 'margin-top:110px;', :remote => true %>
|
||
<% end %>
|
||
</div>
|
||
<div class="edu-class-inner mb20">
|
||
<div class="with75 fl">
|
||
<div class="edu-tab clearfix mb20">
|
||
<ul id="edu-tab-nav">
|
||
<li id="edu-tab-nav-1" class="edu-tab-hover" onclick="HoverLi(1);">
|
||
<a href="javascript:void(0);" class="tab_type">授课大纲</a>
|
||
<span class="edu-tab-fa"><i class="fa fa-caret-down" ></i></span>
|
||
</li>
|
||
<% if @is_syllabus_member %>
|
||
<li id="edu-tab-nav-2">
|
||
<%= link_to '课程资源库', syllabus_resources_syllabus_path(@syllabus), :remote => true, :class => 'tab_type' %>
|
||
<span class="edu-tab-fa"><i class="fa fa-caret-down"></i></span>
|
||
</li>
|
||
<li id="edu-tab-nav-3">
|
||
<%= link_to '课程题库', syllabus_homeworks_syllabus_path(@syllabus), :remote => true, :class => 'tab_type' %>
|
||
<span class="edu-tab-fa"><i class="fa fa-caret-down" ></i></span>
|
||
</li>
|
||
<% end %>
|
||
</ul>
|
||
<div class="cl"></div>
|
||
<div id="edu-tab-con-1">
|
||
<div id="syllabus_des_box">
|
||
<%= render :partial => 'syllabus_des' %>
|
||
</div>
|
||
<div class="edu-bg" id="sy_reference_show_box">
|
||
<%= render :partial => 'show_ref' %>
|
||
</div>
|
||
<div class="edu-bg undis" id="sy_reference_edit_box">
|
||
|
||
</div>
|
||
</div>
|
||
<div id="edu-tab-con-2" class="undis">
|
||
</div>
|
||
<div id="edu-tab-con-3" class="undis">
|
||
<%#= render :partial => 'syllabus_homeworks', :locals => {:homeworks => nil} %>
|
||
</div>
|
||
<div class="cl"></div>
|
||
</div>
|
||
</div>
|
||
<div class="with25 fr ">
|
||
<div class="edu-class-right-box ml15 mb20 ">
|
||
<div class="edu-con-top clearfix mb20">
|
||
<h2 class="fl ml15 ">教师团队</h2>
|
||
<div class="edu-weixin-share fr">
|
||
<a href="javascript:void(0)" class="link-color-grey fr font-12 mr15 mt3">分享<i class="fa fa-weixin fr mt5 ml5" aria-hidden="true"></i></a>
|
||
<div class="cl"></div>
|
||
<div class="edu-weixin-hide">
|
||
<font></font>
|
||
<img src="../images/bigdata/trustie_QR.jpg" width="100" height="100" alt="微信分享" >
|
||
<p class="edu-weixin-p">用微信扫描二维码分享给你的小伙伴</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="edu-h300-auto mb20" id="syllabus_members_box">
|
||
<%= render :partial => "syllabus_members" %>
|
||
</div>
|
||
<% if @is_syllabus_member %>
|
||
<a href="<%= add_sy_member_alert_syllabus_path(@syllabus) %>" data-remote="true" class="edu-class-right-add">
|
||
<i class="fa fa-plus"></i>
|
||
<span>添加</span>
|
||
</a>
|
||
<% end %>
|
||
</div>
|
||
<div class="edu-class-right-box ml15 mb20">
|
||
<div class="edu-con-top clearfix mb20">
|
||
<h2 class="fl ml15 ">班级列表</h2>
|
||
<span class="fr mr15 color-green font-12 mt3">正在进行</span>
|
||
</div>
|
||
<ul class="edu-class-list-style ml15 mr15 edu-h350-auto mb30">
|
||
<% if @courses.count == 0 %>
|
||
<p class="edu-nodata-p">暂无</p>
|
||
<% else %>
|
||
<% @courses.each do |course| %>
|
||
<li>
|
||
<i class="fa fa-caret-right mr5 color-grey"></i>
|
||
<%= link_to course.name, course_path(course), :target => '_blank' %>
|
||
</li>
|
||
<% end %>
|
||
<% end %>
|
||
</ul>
|
||
<% if @is_syllabus_member %>
|
||
<a href="<%= new_course_path() %>" class="edu-class-right-add">
|
||
<i class="fa fa-plus"></i>
|
||
<span>新建</span>
|
||
</a>
|
||
<% end %>
|
||
</div>
|
||
<div class="edu-class-right-box ml15 mb20">
|
||
<div class="edu-con-top clearfix mb20">
|
||
<h2 class="fl ml15 ">班级列表</h2>
|
||
<span class="fr mr15 color-grey font-12 mt3">已结束</span>
|
||
</div>
|
||
<ul class="edu-class-list-style ml15 mr15 edu-h350-auto">
|
||
<% if @end_courses.count == 0 %>
|
||
<p class="edu-nodata-p">暂无</p>
|
||
<% else %>
|
||
<% @end_courses.each do |course| %>
|
||
<li>
|
||
<i class="fa fa-caret-right mr5 color-grey"></i>
|
||
<%= link_to course.name, course_path(course), :target => '_blank' %>
|
||
</li>
|
||
<% end %>
|
||
<% end %>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script id="t:sy-refer-list" type="text/html">
|
||
<li class="clearfix">
|
||
<span class="font-bd fl">参考资料</span>
|
||
<a href="javascript:void(0);" title="增加" class="link-color-grey add_refer"><i class="fa fa-plus-circle font-16 ml10 fl mt5"></i></a>
|
||
<a href="javascript:void(0);" title="删除" class="link-color-grey delete_refer"><i class="fa fa-times-circle font-16 ml10 fl mt5"></i></a>
|
||
<div class="cl"></div>
|
||
<div class="mb10 edu-form-border clearfix">
|
||
<label class="edu-form-label fl">书名:</label>
|
||
<input type="text" name="syllabus[book][]" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料名称,如:大学计算机(第6版)">
|
||
</div>
|
||
<div class="mb10 edu-form-border clearfix">
|
||
<label class="edu-form-label fl">编辑:</label>
|
||
<input type="text" name="syllabus[editor][]" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的主编等信息">
|
||
</div>
|
||
<div class="mb10 edu-form-border clearfix">
|
||
<label class="edu-form-label fl">出版社:</label>
|
||
<input type="text" name="syllabus[press][]" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的出版社和版本等信息">
|
||
</div>
|
||
</li>
|
||
</script>
|
||
|
||
<script type="text/javascript">
|
||
$(function() {
|
||
sd_create_editor_from_data(<%= @syllabus.id %>, null, "100%", "<%= @syllabus.class.to_s %>");
|
||
showNormalImage('syllabus_description_<%= @syllabus.id %>');
|
||
$("#syllabus_description_<%= @syllabus.id%> p,#syllabus_description_<%= @syllabus.id%> span,#syllabus_description_<%= @syllabus.id%> em").each(function(){
|
||
var postContent = $(this).html();
|
||
postContent = postContent.replace(/ /g," ");
|
||
postContent= postContent.replace(/ {2}/g," ");
|
||
postContent=postContent.replace(/ /g," ");
|
||
postContent=postContent.replace(/ /g," ");
|
||
$(this).html(postContent);
|
||
});
|
||
autoUrl('syllabus_description_<%= @syllabus.id %>');
|
||
});
|
||
</script>
|
||
|