2015-12-24 10:40:00 +08:00
|
|
|
<%= content_for(:header_tags) do %>
|
|
|
|
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
2016-02-03 13:04:48 +08:00
|
|
|
<%= javascript_include_tag "des_kindEditor" %>
|
2015-12-24 10:40:00 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<script>
|
2016-02-02 15:50:28 +08:00
|
|
|
$(function(){
|
|
|
|
init_des_data(150);
|
|
|
|
});
|
|
|
|
function check_org_title()
|
2015-12-24 10:40:00 +08:00
|
|
|
{
|
|
|
|
if($("#document_title").val().trim() == "")
|
|
|
|
{
|
|
|
|
$("#doc_title_hint").html("<span class='c_red'>标题不能为空</span>").show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#doc_title_hint").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div class="homepageRightBanner mb5" style="margin-bottom:5px;">
|
|
|
|
<div class="NewsBannerName">编辑文章</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div>
|
2016-02-02 15:50:28 +08:00
|
|
|
<div class="resources" nhname="new_topic_form">
|
|
|
|
<%= form_tag url_for(:controller => 'org_document_comments',:action => 'update', :id => @org_document.id, :flag => @flag, :org_subfield_id => params[:org_subfield_id]),:method => 'put', :id => 'new_org_document_form' do |f| %>
|
|
|
|
<div>
|
2015-12-24 10:40:00 +08:00
|
|
|
<input class="postDetailInput fl mr15" style="margin-bottom:15px;" name="org_document_comment[title]" id="document_title" style="resize:none;" onfocus = "$('#org_document_editor').show();" onblur="check_org_title();" value="<%= @org_document.title %>" />
|
|
|
|
</div>
|
|
|
|
<div id="doc_title_hint"></div>
|
|
|
|
<div class="cl"></div>
|
2016-02-02 17:16:50 +08:00
|
|
|
<div>
|
2015-12-24 10:40:00 +08:00
|
|
|
<div class="mt10">
|
2016-02-02 15:50:28 +08:00
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='description_textarea' name="org_document_comment[content]"><%=@org_document.content.html_safe %></textarea>
|
|
|
|
<%#= kindeditor_tag 'org_document_comment[content]','', :editor_id => 'org_document_description_editor', :height => "150px" %>
|
2015-12-24 10:40:00 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
<p id="homework_course_id_span" class="c_red mt5"></p>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
<div class="mt10">
|
|
|
|
<div class="fl" id="topic_attachments">
|
|
|
|
<%= render :partial => 'org_document_comments/attachment', :locals => {:container => @org_document} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="mt5">
|
2016-02-02 15:50:28 +08:00
|
|
|
<a href="javascript:void(0);" class="BlueCirBtnMini fr" id="new_topic_submit_btn">确定</a>
|
2015-12-24 10:40:00 +08:00
|
|
|
<span class="fr mr10 mt3">或</span>
|
2016-02-02 15:50:28 +08:00
|
|
|
<a href="javascript:void(0);" id="new_topic_cancel_btn" onclick="location=document.referrer;" class="fr mr10 mt3">取消</a>
|
2015-12-24 10:40:00 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-02 15:50:28 +08:00
|
|
|
<% end %>
|
2015-12-24 10:40:00 +08:00
|
|
|
</div>
|
2015-11-13 19:10:44 +08:00
|
|
|
</div>
|