summaryrefslogtreecommitdiffstats
path: root/app/views/news/_form.html.erb
blob: 58f68e1b2ef0dbd226dd4b7b3f64fea80de87b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%= error_messages_for @news %>

<div class="box tabular">
<p><%= f.text_field :title, :required => true, :size => 60 %></p>
<p><%= f.text_area :summary, :cols => 60, :rows => 2 %></p>
<p><%= f.text_area :description, :required => true, :cols => 60, :rows => 15, :class => 'wiki-edit',
                   :data => {
                       :auto_complete => true,
                       :issues_url => auto_complete_issues_path(:project_id => @project, :q => '')
                   }
%></p>
<p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @news} %></p>
</div>

<%= wikitoolbar_for 'news_description', preview_news_path(:project_id => @project, :id => @news) %>