summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-21 09:33:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-21 09:33:04 +0000
commit4d6596e534db9aad4ecb6451074620759225d3a3 (patch)
treef6c2db534cfb92de77480a0752270af2bf245e29
parent3fc9a606eb690549595fd2bc253fafe542cbc561 (diff)
downloadredmine-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
-rw-r--r--app/views/attachments/_form.html.erb2
-rw-r--r--public/stylesheets/application.css2
2 files changed, 2 insertions, 2 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>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index b9b6da6bb..f67071ec7 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -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;}