From: Marius Balteanu Date: Sat, 19 Mar 2022 08:07:32 +0000 (+0000) Subject: Reindent code in documents/_form view (#36686). X-Git-Tag: 5.0.0~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c2c5fbc50d85f1275fff701f752be330c2da58a;p=redmine.git Reindent code in documents/_form view (#36686). git-svn-id: http://svn.redmine.org/redmine/trunk@21465 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb index 45b63611f..ba783deb7 100644 --- a/app/views/documents/_form.html.erb +++ b/app/views/documents/_form.html.erb @@ -1,23 +1,22 @@ <%= error_messages_for @document %>
-

<%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %>

-

<%= f.text_field :title, :required => true, :size => 60 %>

-

<%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit', - :data => { - :auto_complete => true - } -%>

+

<%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %>

+

<%= f.text_field :title, :required => true, :size => 60 %>

+

<%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit', + :data => { + :auto_complete => true + } %>

-<% @document.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :document, value %>

-<% end %> + <% @document.custom_field_values.each do |value| %> +

<%= custom_field_tag_with_label :document, value %>

+ <% end %>
<%= wikitoolbar_for 'document_description' %> <% if @document.new_record? %> -
-

<%= render :partial => 'attachments/form', :locals => {:container => @document} %>

-
+
+

<%= render :partial => 'attachments/form', :locals => {:container => @document} %>

+
<% end %>