diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-20 07:57:04 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-20 07:57:04 +0000 |
commit | 90fc69cec89715fb4a0508d2d32b9a5db4c274dc (patch) | |
tree | 73fde8fee8776914e50d68ed455a64d3c9480dae /app | |
parent | 9c6270212217743e7646ffe7f0b97acd8fd6bad4 (diff) | |
download | redmine-90fc69cec89715fb4a0508d2d32b9a5db4c274dc.tar.gz redmine-90fc69cec89715fb4a0508d2d32b9a5db4c274dc.zip |
Merged r21465 and r21466 to 4.2-stable (#36686).
git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21474 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/documents/_form.html.erb | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb index 45b63611f..139afe24a 100644 --- a/app/views/documents/_form.html.erb +++ b/app/views/documents/_form.html.erb @@ -1,23 +1,20 @@ <%= error_messages_for @document %> <div class="box tabular"> -<p><%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %></p> -<p><%= f.text_field :title, :required => true, :size => 60 %></p> -<p><%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit', - :data => { - :auto_complete => true - } -%></p> + <p><%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %></p> + <p><%= f.text_field :title, :required => true, :size => 60 %></p> + <p><%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit', + :data => { + :auto_complete => true + } %></p> -<% @document.custom_field_values.each do |value| %> - <p><%= custom_field_tag_with_label :document, value %></p> -<% end %> + <% @document.custom_field_values.each do |value| %> + <p><%= custom_field_tag_with_label :document, value %></p> + <% end %> + + <% if @document.new_record? %> + <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p> + <% end %> </div> <%= wikitoolbar_for 'document_description' %> - -<% if @document.new_record? %> -<div class="box tabular"> -<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p> -</div> -<% end %> |