##// END OF EJS Templates
Resizes the attachment description field and moves the label to a placeholder attribute so that the field doesn't overflows (#9998)....
Jean-Philippe Lang -
r8565:4d6596e534db
parent child
Show More
@@ -2,7 +2,7
2 <span>
2 <span>
3 <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
3 <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
4 :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)))}');" -%>
4 :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)))}');" -%>
5 <label class="inline"><%= l(:label_optional_description) %><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil, :class => 'description' %></label>
5 <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :placeholder => l(:label_optional_description) %>
6 <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
6 <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
7 </span>
7 </span>
8 </span>
8 </span>
@@ -479,7 +479,7 fieldset#notified_events .parent { padding-left: 20px; }
479 .required {color: #bb0000;}
479 .required {color: #bb0000;}
480 .summary {font-style: italic;}
480 .summary {font-style: italic;}
481
481
482 #attachments_fields input[type=text] {margin-left: 8px; }
482 #attachments_fields input.description {margin-left: 8px; width:340px;}
483 #attachments_fields span {display:block; white-space:nowrap;}
483 #attachments_fields span {display:block; white-space:nowrap;}
484 #attachments_fields img {vertical-align: middle;}
484 #attachments_fields img {vertical-align: middle;}
485
485
General Comments 0
You need to be logged in to leave comments. Login now