mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 02:11:15 +00:00
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@20845 e93f8b46-1217-0410-a6f0-8f06a7374b81
22 lines
1019 B
Plaintext
22 lines
1019 B
Plaintext
<%= error_messages_for @news %>
|
|
|
|
<div class="box tabular">
|
|
<% if @project.nil? %>
|
|
<p>
|
|
<label><%= l(:field_project) %> <span class="required">*</span></label>
|
|
<%= select_tag :project_id, options_for_select(project_tree_options_for_select(Project.allowed_to(:manage_news).to_a), Project.allowed_to(:manage_news).first), {:required => true} %>
|
|
<%= hidden_field_tag :cross_project, 1, id: nil %>
|
|
</p>
|
|
<% end %>
|
|
<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
|
|
}
|
|
%></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) %>
|