diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-21 09:33:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-21 09:33:04 +0000 |
commit | 4d6596e534db9aad4ecb6451074620759225d3a3 (patch) | |
tree | f6c2db534cfb92de77480a0752270af2bf245e29 /app/views/attachments | |
parent | 3fc9a606eb690549595fd2bc253fafe542cbc561 (diff) | |
download | redmine-4d6596e534db9aad4ecb6451074620759225d3a3.tar.gz redmine-4d6596e534db9aad4ecb6451074620759225d3a3.zip |
Resizes the attachment description field and moves the label to a placeholder attribute so that the field doesn't overflows (#9998).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8685 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r-- | app/views/attachments/_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb index 33990e8ab..a7c463989 100644 --- a/app/views/attachments/_form.html.erb +++ b/app/views/attachments/_form.html.erb @@ -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> |