diff options
Diffstat (limited to 'app/views/news')
-rw-r--r-- | app/views/news/edit.html.erb | 2 | ||||
-rw-r--r-- | app/views/news/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/news/new.html.erb | 2 | ||||
-rw-r--r-- | app/views/news/show.html.erb | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erb index f00a024c1..5dd43c3ce 100644 --- a/app/views/news/edit.html.erb +++ b/app/views/news/edit.html.erb @@ -1,6 +1,6 @@ <h2><%=l(:label_news)%></h2> -<% labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %> +<%= labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb index b839b5f44..b354adcb8 100644 --- a/app/views/news/index.html.erb +++ b/app/views/news/index.html.erb @@ -7,7 +7,7 @@ <div id="add-news" style="display:none;"> <h2><%=l(:label_news_new)%></h2> -<% labelled_form_for @news, :url => project_news_index_path(@project), +<%= labelled_form_for @news, :url => project_news_index_path(@project), :html => { :id => 'news-form', :multipart => true } do |f| %> <%= render :partial => 'news/form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> diff --git a/app/views/news/new.html.erb b/app/views/news/new.html.erb index 1c55215b7..95a902432 100644 --- a/app/views/news/new.html.erb +++ b/app/views/news/new.html.erb @@ -1,6 +1,6 @@ <h2><%=l(:label_news_new)%></h2> -<% labelled_form_for @news, :url => project_news_index_path(@project), +<%= labelled_form_for @news, :url => project_news_index_path(@project), :html => { :id => 'news-form', :multipart => true } do |f| %> <%= render :partial => 'news/form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb index b0b5f023e..cb332f88c 100644 --- a/app/views/news/show.html.erb +++ b/app/views/news/show.html.erb @@ -16,7 +16,7 @@ <% if authorize_for('news', 'edit') %> <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| %> <%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> @@ -55,7 +55,7 @@ <% if @news.commentable? %> <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p> -<% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> +<%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %> <div class="box"> <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %> <%= wikitoolbar_for 'comment_comments' %> |