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 12:57:30 +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);
|
|
|
|
});
|
2015-12-24 10:40:00 +08:00
|
|
|
function check_org_title()
|
|
|
|
{
|
|
|
|
if($("#document_title").val().trim() == "")
|
|
|
|
{
|
|
|
|
$("#doc_title_hint").html("<span class='c_red'>标题不能为空</span>").show();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$("#doc_title_hint").hide();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function create_org_document()
|
|
|
|
{
|
|
|
|
if(check_org_title() == true)
|
|
|
|
{
|
|
|
|
org_document_description_editor.sync();
|
|
|
|
$('#new_org_document_form').submit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function cancel_create_org_document(){
|
|
|
|
location.href = document.referrer;
|
|
|
|
}
|
|
|
|
</script>
|
2016-03-24 17:03:51 +08:00
|
|
|
<div class="homepageRightBanner" style="margin-top:<%= User.current.logged? ? '0px':'10px' %>; margin-bottom:10px;">
|
|
|
|
<div class="NewsBannerName"><%= OrgSubfield.try(:find, params[:field_id]).try(:name) %></div>
|
|
|
|
</div>
|
2016-03-25 17:16:36 +08:00
|
|
|
<div class="resources" nhname="new_topic_form" >
|
2016-02-02 15:50:28 +08:00
|
|
|
<%= form_tag organization_org_document_comments_path(:organization_id => @organization.id, :field_id => params[:field_id]), :id => 'new_org_document_form' do |f| %>
|
2016-05-24 09:40:16 +08:00
|
|
|
<%= render :partial => "form" %>
|
2016-02-02 15:50:28 +08:00
|
|
|
<% end %>
|
2015-12-24 10:40:00 +08:00
|
|
|
</div>
|