|
|
@ -10,7 +10,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<h3><strong><%=h @news.title %></strong></h3>
|
|
|
|
<h3><strong><%=h @news.title %></strong></h3>
|
|
|
|
|
|
|
|
|
|
|
|
<% if authorize_for('news', 'edit') %>
|
|
|
|
<% if authorize_for_course('news', 'edit') %>
|
|
|
|
<div id="edit-news" style="display:none;">
|
|
|
|
<div id="edit-news" style="display:none;">
|
|
|
|
<%= labelled_form_for :news, @news, :url => news_path(@news),
|
|
|
|
<%= labelled_form_for :news, @news, :url => news_path(@news),
|
|
|
|
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
|
|
|
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
|
|
|