@@ -1,7 +1,7 | |||||
1 | <span id="attachments_fields"> |
|
1 | <span id="attachments_fields"> | |
2 | <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil -%> |
|
2 | <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil -%> | |
3 | <%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %> |
|
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 | <em><%= l(:label_optional_description) %></em> |
|
4 | </label> | |
5 | </span> |
|
5 | </span> | |
6 | <br /> |
|
6 | <br /> | |
7 | <small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %> |
|
7 | <small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %> |
@@ -27,7 +27,7 | |||||
27 | </div> |
|
27 | </div> | |
28 |
|
28 | |||
29 | <% if @issue.new_record? %> |
|
29 | <% if @issue.new_record? %> | |
30 |
<p> |
|
30 | <p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> | |
31 | <% end %> |
|
31 | <% end %> | |
32 |
|
32 | |||
33 | <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> |
|
33 | <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> |
@@ -52,11 +52,17 function addFileField() { | |||||
52 | d.type = "text"; |
|
52 | d.type = "text"; | |
53 | d.name = "attachments[" + fileFieldCount + "][description]"; |
|
53 | d.name = "attachments[" + fileFieldCount + "][description]"; | |
54 | d.size = 60; |
|
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 | p = document.getElementById("attachments_fields"); |
|
60 | p = document.getElementById("attachments_fields"); | |
57 | p.appendChild(document.createElement("br")); |
|
61 | p.appendChild(document.createElement("br")); | |
58 | p.appendChild(f); |
|
62 | p.appendChild(f); | |
59 | p.appendChild(d); |
|
63 | p.appendChild(dLabel); | |
|
64 | dLabel.appendChild(d); | |||
|
65 | ||||
60 | } |
|
66 | } | |
61 |
|
67 | |||
62 | function showTab(name) { |
|
68 | function showTab(name) { |
@@ -404,6 +404,12 display: block; | |||||
404 | width: auto; |
|
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 | input#time_entry_comments { width: 90%;} |
|
413 | input#time_entry_comments { width: 90%;} | |
408 |
|
414 | |||
409 | #preview fieldset {margin-top: 1em; background: url(../images/draft.png)} |
|
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