新建实训加入背景知识

This commit is contained in:
daiao 2017-08-10 14:32:12 +08:00
parent c278a4ea56
commit fe7b582cc3
1 changed files with 7 additions and 7 deletions

View File

@ -28,15 +28,15 @@
<p id="e_tip_in" style="margin-left: 10%" class="c_grey"></p>
<p id="e_tips_in" style="margin-left: 10%" class="c_grey"></p>
</li>
<!-- <li class="clearfix mb15">
<label class="panel-form-label fl">预备知识&nbsp;&nbsp;&nbsp;</label>
<li class="clearfix mb15">
<label class="panel-form-label fl">背景知识&nbsp;&nbsp;&nbsp;</label>
<div id="shixun_propaedeutics" class="new_li fl" style="margin-left: 0px;">
<textarea name="shixun[propaedeutics]"><%#= @shixun.propaedeutics %></textarea>
<textarea name="shixun[propaedeutics]"><%= @shixun.propaedeutics %></textarea>
</div>
<p id="e_tip_pr" style="margin-left: 10%" class="c_grey"></p>
<p id="e_tips_pr" style="margin-left: 10%" class="c_grey"></p>
<div class="cl"></div>
</li>-->
</li>
<li class="clearfix mb15">
<label class="panel-form-label fl"><span class="color-orange mr5">*</span>适用专业&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :major_id, options_for_select(shixun_major_option, 0), :id => 'shixun_major', :class => "fl task-form-30 task-height-40"%>
@ -187,8 +187,8 @@
imageUploadURL : "<%= upload_with_markdown_path(:container_id => @shixun.id, :container_type => @shixun.class) %>" //url
});
/* --------------------------------- 预备知识 -------------------------------------- */
/* var shixun_propaedeutics = editormd("shixun_propaedeutics", {
/* --------------------------------- 背景知识 -------------------------------------- */
var shixun_propaedeutics = editormd("shixun_propaedeutics", {
width : "89.7%",
height : 300,
syncScrolling : "single",
@ -213,7 +213,7 @@
imageUpload : true,
imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp", "JPG", "JPEG", "GIF", "PNG", "BMP", "WEBP"],
imageUploadURL : "<%#= upload_with_markdown_path(:container_id => @shixun.id, :container_type => @shixun.class) %>" //url
});*/
});
//////////////////////////////////////////////////////////////
//提交新建项目
function submit_new_project()