summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-05-25 00:11:58 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-05-25 00:11:58 +0000
commite320017cf020be4bcba24e6692d841ad89ba36ed (patch)
tree30c0e790858c075457930f810d2759e192ae876e /app
parent0d34c3731b4df639df760851302ab1809f1fcec5 (diff)
downloadredmine-e320017cf020be4bcba24e6692d841ad89ba36ed.tar.gz
redmine-e320017cf020be4bcba24e6692d841ad89ba36ed.zip
Convert the file attachment's description to a label.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3750 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/attachments/_form.rhtml4
-rw-r--r--app/views/issues/_form.rhtml2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/attachments/_form.rhtml b/app/views/attachments/_form.rhtml
index c98528b85..7702f92e2 100644
--- a/app/views/attachments/_form.rhtml
+++ b/app/views/attachments/_form.rhtml
@@ -1,7 +1,7 @@
<span id="attachments_fields">
<%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil -%>
-<%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>
-<em><%= l(:label_optional_description) %></em>
+<label class="inline"><span id="attachment_description_label_content"><%= l(:label_optional_description) %></span><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>
+</label>
</span>
<br />
<small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml
index 72fd6221d..1e3beaf85 100644
--- a/app/views/issues/_form.rhtml
+++ b/app/views/issues/_form.rhtml
@@ -27,7 +27,7 @@
</div>
<% if @issue.new_record? %>
-<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
+<p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
<% end %>
<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>