2015-12-06 15:03:36 +08:00
|
|
|
<%= content_for(:header_tags) do %>
|
|
|
|
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
|
|
|
<% end %>
|
2015-12-24 09:57:32 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$("#RSide").removeAttr("id");
|
|
|
|
$("#Container").css("width","1000px");
|
|
|
|
$("#news_title").focus();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<div class="homepageRight mt0 ml10">
|
|
|
|
<div class="homepageRightBanner">
|
|
|
|
<div class="NewsBannerName">
|
2016-07-20 17:00:18 +08:00
|
|
|
编辑<%= (@news.project_id != -1 && !@news.project_id.nil?) ? '新闻':'通知' %>
|
2015-12-24 09:57:32 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-28 10:31:55 +08:00
|
|
|
<%= labelled_form_for :news, @news, :url => news_path(@news),
|
|
|
|
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
2016-01-20 17:23:02 +08:00
|
|
|
<% if @org_subfield %>
|
|
|
|
<%= render :partial => 'edit_for_org_subfield', :locals => {:f => f, :news => @news} %>
|
2016-01-21 10:33:53 +08:00
|
|
|
<% elsif @course %>
|
2016-01-20 17:23:02 +08:00
|
|
|
<%= render :partial => 'course_news_new', :locals => {:f => f, :news => @news, :edit_mode => true, :course => @course} %>
|
2016-01-21 10:33:53 +08:00
|
|
|
<% elsif @project %>
|
|
|
|
<%= render :partial => 'project_news_new', :locals => {:f => f, :news => @news, :edit_mode => true} %>
|
2016-01-20 17:23:02 +08:00
|
|
|
<% end %>
|
2015-04-28 10:31:55 +08:00
|
|
|
<% end %>
|
2015-06-17 17:01:03 +08:00
|
|
|
</div>
|