]> source.dussan.org Git - redmine.git/commitdiff
Resizes the attachment description field and moves the label to a placeholder attribu...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 21 Jan 2012 09:33:04 +0000 (09:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 21 Jan 2012 09:33:04 +0000 (09:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8685 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/attachments/_form.html.erb
public/stylesheets/application.css

index 33990e8ab0d1e7e5d059caa29fe9b2ed4c7dde54..a7c4639894fdd03f320b8a1bd58b8470623392fd 100644 (file)
@@ -2,7 +2,7 @@
   <span>
     <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
           :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');"  -%>
-    <label class="inline"><%= l(:label_optional_description) %><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil, :class => 'description' %></label>
+    <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :placeholder => l(:label_optional_description) %>
     <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
   </span>
 </span>
index b9b6da6bb140957847f5be327b7a40b21c7a0a4c..f67071ec76dd1e75594c07b1957de03f0845eac1 100644 (file)
@@ -479,7 +479,7 @@ fieldset#notified_events .parent { padding-left: 20px; }
 .required {color: #bb0000;}
 .summary {font-style: italic;}
 
-#attachments_fields input[type=text] {margin-left: 8px; }
+#attachments_fields input.description {margin-left: 8px; width:340px;}
 #attachments_fields span {display:block; white-space:nowrap;}
 #attachments_fields img {vertical-align: middle;}