2015-12-24 09:57:32 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$("#RSide").removeAttr("id");
|
|
|
|
$("#Container").css("width","1000px");
|
|
|
|
});
|
|
|
|
function reset_news(){
|
|
|
|
$("#news_title").val("");
|
|
|
|
$("#title_notice_span").text("");
|
|
|
|
$("#description_notice_span").text("");
|
|
|
|
document.getElementById("news_sticky").checked=false;
|
|
|
|
$("#news_attachments").html("<%= escape_javascript(render :partial => 'attachments/new_form', :locals => {:container => News.new})%>");
|
|
|
|
news_description_editor.html("");
|
|
|
|
$("#news_editor").toggle();
|
|
|
|
}
|
|
|
|
<% if @is_new%>
|
|
|
|
$(function(){
|
|
|
|
$("#news_title").focus();
|
|
|
|
});
|
|
|
|
<%end%>
|
2015-07-22 10:22:50 +08:00
|
|
|
</script>
|
2015-12-24 09:57:32 +08:00
|
|
|
<div class="homepageRight mt0 ml10">
|
|
|
|
<div class="homepageRightBanner">
|
|
|
|
<div class="NewsBannerName">
|
2016-07-01 11:11:53 +08:00
|
|
|
班级通知
|
2015-12-24 09:57:32 +08:00
|
|
|
</div>
|
2015-07-22 10:22:50 +08:00
|
|
|
</div>
|
2015-12-24 09:57:32 +08:00
|
|
|
<% if @course && User.current.allowed_to?(:manage_news, @course) %>
|
|
|
|
<%= labelled_form_for @news, :url =>{:controller=>'news',:action => 'new', :course_id => @course.id},
|
|
|
|
:html => {:nhname=>'form',:multipart => true, :id => 'news-form'} do |f| %>
|
|
|
|
<%= render :partial => 'course_news_new', :locals => {:f => f, :news => @news, :edit_mode => false, :course => @course} %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= render :partial=> 'course_news_detail',:locals =>{:newss => @newss, :page => 0} %>
|
|
|
|
</div>
|