81 lines
5.5 KiB
Plaintext
81 lines
5.5 KiB
Plaintext
<% content_for :header_tags do %>
|
||
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
||
<% end %>
|
||
<div class="active-class ">
|
||
<p style="line-height: 42px;">
|
||
<i class="fa fa-map-marker mr5 color-grey"></i>
|
||
<%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to "实训路径", subjects_path() %>
|
||
> <span>编辑实训路径</span>
|
||
</p>
|
||
<div class="box_bg_shandow bor-grey-e mb30">
|
||
<div class="edu-con-top ">
|
||
<span class="ml15 color-grey font-16">编辑实训路径</span>
|
||
</div>
|
||
<div class="edu-bg createmain mb20 pt30 ">
|
||
<%= labelled_form_for @subject do |f| %>
|
||
<li class="clearfix pt20">
|
||
<label class="panel-form-label label fl"><span class="color-orange">*</span> 名称</label>
|
||
<input type="text" name="subject[name]" value="<%= @subject.name %>" id="new_subject_name" class="task task-height-40 panel-box-sizing task-form-70 fl color-grey ml20" maxlength="100" placeholder="例如:Python程序设计-从入门到精通">
|
||
<div class="cl"></div>
|
||
<span class="color-orange ml20 fl none" style="margin-left: 12%;" id="new_subject_name_notice"><i class="fa fa-exclamation-circle mr5" ></i>请输入名称</span>
|
||
</li>
|
||
<!--<li class="clearfix pt20">-->
|
||
<!--<label class="panel-form-label label fl"><span class="color-orange">*</span> 描述</label>-->
|
||
<!--<input type="text" name="subject[introduction]" value="<%#= @subject.introduction %>" id="new_subject_intro" class="task task-height-40 panel-box-sizing task-form-80 fl color-grey ml20" maxlength="50" placeholder="一句话描述一下,吸引更多人学习吧(不超过50个字符)">-->
|
||
<!--<div class="cl"></div>-->
|
||
<!--<span class="color-orange ml20 fl none" style="margin-left: 12%;" id="new_subject_intro_notice"><i class="fa fa-exclamation-circle mr5" ></i>请输入描述</span>-->
|
||
<!--</li>-->
|
||
<li class="clearfix pt20">
|
||
<label class="panel-form-label label fl mr20"><span class="color-orange">*</span>简介</label>
|
||
<%= hidden_field_tag :asset_id, params[:asset_id], :required => false, :style => 'display:none' %>
|
||
<textarea class="panel-form-width-690 panel-form-height-150 fl panel-box-sizing" style="display: none"></textarea>
|
||
<%= f.kindeditor :description, :editor_id => 'subject_description_editor',
|
||
:owner_id => @subject.nil? ? 0: @subject.id,
|
||
:owner_type => OwnerTypeHelper::SUBJECT,
|
||
:local_storage_mdu => "subject_description_#{User.current.id}_#{@subject.id}",
|
||
:local_storage_id => "desc",
|
||
:width => '80%',
|
||
:height => 200,
|
||
:minHeight=>200,
|
||
:placeholder => "请在此输入实训路径的简介",
|
||
:class => 'talk_text fl',
|
||
:input_html => { :id => 'new_subject_description',
|
||
:class => 'talk_text fl',
|
||
:maxlength => 5000 }
|
||
%>
|
||
<div class="cl"></div>
|
||
<p id="e_tip_desc" style="margin-left: 140px" class="c_grey"></p>
|
||
<p id="e_tips_desc" style="margin-left: 140px" class="c_grey"></p>
|
||
<span class="color-orange ml20 fl none" style="margin-left: 12%;" id="new_subject_description_notice"><i class="fa fa-exclamation-circle mr5" ></i>请输入简介</span>
|
||
</li>
|
||
<li class="clearfix pt20">
|
||
<label class="panel-form-label label fl mr20"><span class="color-orange">*</span> 学习须知</label>
|
||
<textarea class="panel-form-width-690 panel-form-height-150 fl panel-box-sizing" style="display: none"></textarea>
|
||
<%= f.kindeditor :learning_notes, :editor_id => 'subject_learning_notes_editor',
|
||
:owner_id => @subject.nil? ? 0: @subject.id,
|
||
:owner_type => OwnerTypeHelper::SUBJECT,
|
||
:local_storage_mdu => "subject_notes_#{User.current.id}_#{@subject.id}",
|
||
:local_storage_id => "notes",
|
||
:width => '80%',
|
||
:height => 200,
|
||
:minHeight=>200,
|
||
:placeholder => "请在此输入实训路径的学习须知",
|
||
:class => 'talk_text fl',
|
||
:input_html => { :id => 'new_learning_notes',
|
||
:class => 'talk_text fl',
|
||
:maxlength => 5000 }
|
||
%>
|
||
<div class="cl"></div>
|
||
<p id="e_tip_notes" style="margin-left: 140px" class="c_grey"></p>
|
||
<p id="e_tips_notes" style="margin-left: 140px" class="c_grey"></p>
|
||
<span class="color-orange ml20 fl none" style="margin-left: 12%;" id="new_learning_notes_notice"><i class="fa fa-exclamation-circle mr5" ></i>请输入学习须知</span>
|
||
</li>
|
||
<li class="clearfix pt20 pb20">
|
||
<label class="panel-form-label label fl"> </label>
|
||
<%= link_to "取消", subject_path(@subject), :class => "task-btn fl mr10 ml20" %>
|
||
<a href="javascript:void(0);" onclick="submit_edit_subject(<%= @subject.id %>);" class="task-btn task-btn-blue fl">保存</a>
|
||
</li>
|
||
<% end %>
|
||
</div>
|
||
</div>
|
||
</div> |