43 lines
3.3 KiB
Plaintext
43 lines
3.3 KiB
Plaintext
<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="edu-con-top user_bg_shadow">
|
||
<span class="ml15 color-grey font-16">编辑实训套件</span>
|
||
</div>
|
||
<div class="edu-bg createmain mb20 pt30 user_bg_shadow">
|
||
<%= 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"><span class="color-orange">*</span> 简介</label>
|
||
<textarea name="subject[description]" id="new_subject_description" class="task task-height-220 panel-box-sizing task-form-70 fl color-grey ml20"><%= @subject.description %></textarea>
|
||
<div class="cl"></div>
|
||
<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"><span class="color-orange">*</span> 学习须知</label>
|
||
<textarea type="text" name="subject[learning_notes]" id="new_learning_notes" class="task task-height-220 panel-box-sizing task-form-70 fl color-grey ml20" placeholder=""><%= @subject.learning_notes %></textarea>
|
||
<div class="cl"></div>
|
||
<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> |