##// END OF EJS Templates
Convert the file attachment's description to a label....
Eric Davis -
r3636:e320017cf020
parent child
Show More
@@ -1,7 +1,7
1 1 <span id="attachments_fields">
2 2 <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil -%>
3 <%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>
4 <em><%= l(:label_optional_description) %></em>
3 <label class="inline"><span id="attachment_description_label_content"><%= l(:label_optional_description) %></span><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>
4 </label>
5 5 </span>
6 6 <br />
7 7 <small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
@@ -27,7 +27,7
27 27 </div>
28 28
29 29 <% if @issue.new_record? %>
30 <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
30 <p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
31 31 <% end %>
32 32
33 33 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
@@ -52,11 +52,17 function addFileField() {
52 52 d.type = "text";
53 53 d.name = "attachments[" + fileFieldCount + "][description]";
54 54 d.size = 60;
55 var dLabel = document.createElement("label");
56 dLabel.addClassName('inline');
57 // Pulls the languge value used for Optional Description
58 dLabel.update($('attachment_description_label_content').innerHTML)
55 59
56 60 p = document.getElementById("attachments_fields");
57 61 p.appendChild(document.createElement("br"));
58 62 p.appendChild(f);
59 p.appendChild(d);
63 p.appendChild(dLabel);
64 dLabel.appendChild(d);
65
60 66 }
61 67
62 68 function showTab(name) {
@@ -404,6 +404,12 display: block;
404 404 width: auto;
405 405 }
406 406
407 .tabular label.inline{
408 float:none;
409 margin-left: 5px !important;
410 width: auto;
411 }
412
407 413 input#time_entry_comments { width: 90%;}
408 414
409 415 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
General Comments 0
You need to be logged in to leave comments. Login now