2015-11-12 17:52:47 +08:00
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg'%>
|
|
|
|
<script>
|
|
|
|
function check_org_title(title)
|
|
|
|
{
|
|
|
|
if($("#document_title").val().trim() == "")
|
|
|
|
{
|
|
|
|
$("#doc_title_hint").html("<span class='c_red'>标题不能为空</span>").show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#doc_title_hint").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2015-11-13 19:10:44 +08:00
|
|
|
<div class="homepageRightBanner mb5">
|
2015-11-12 17:52:47 +08:00
|
|
|
<div class="NewsBannerName">编辑文章</div>
|
|
|
|
</div>
|
2015-11-13 19:10:44 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
<div>
|
2015-11-27 10:43:21 +08:00
|
|
|
<%= form_tag url_for(:controller => 'org_document_comments',:action => 'update', :id => @org_document.id, :flag => @flag),:method => 'put', :id => 'new_org_document_form' do |f| %>
|
2015-11-12 17:52:47 +08:00
|
|
|
<div class="resources">
|
|
|
|
<div>
|
2015-11-13 19:10:44 +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 %>" />
|
2015-11-12 17:52:47 +08:00
|
|
|
</div>
|
|
|
|
<div id="doc_title_hint"></div>
|
2015-11-13 19:10:44 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
<div id="org_document_editor" >
|
2015-11-12 17:52:47 +08:00
|
|
|
<div class="mt10">
|
2015-11-20 11:12:45 +08:00
|
|
|
<%= kindeditor_tag 'org_document_comment[content]',@org_document.content, :editor_id => 'org_document_description_editor', :height => "150px" %>
|
2015-11-12 17:52:47 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
|
|
<p id="homework_course_id_span" class="c_red mt5"></p>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
<div class="mt5">
|
|
|
|
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="org_document_description_editor.sync();$('#new_org_document_form').submit();">确定</a>
|
|
|
|
<span class="fr mr10 mt3">或</span>
|
2015-11-20 10:52:26 +08:00
|
|
|
<a href="javascript:void(0);" onclick="location=document.referrer;" class="fr mr10 mt3">取消</a>
|
2015-11-12 17:52:47 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-11-13 19:10:44 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|