@@ -77,11 +77,16 module CustomFieldsHelper | |||||
77 | :class => "#{custom_value.custom_field.field_format}_cf" |
|
77 | :class => "#{custom_value.custom_field.field_format}_cf" | |
78 | end |
|
78 | end | |
79 |
|
79 | |||
|
80 | # Return custom field name tag | |||
|
81 | def custom_field_name_tag(custom_field) | |||
|
82 | title = custom_field.description.presence | |||
|
83 | content_tag 'span', custom_field.name, :title => title | |||
|
84 | end | |||
|
85 | ||||
80 | # Return custom field label tag |
|
86 | # Return custom field label tag | |
81 | def custom_field_label_tag(name, custom_value, options={}) |
|
87 | def custom_field_label_tag(name, custom_value, options={}) | |
82 | required = options[:required] || custom_value.custom_field.is_required? |
|
88 | required = options[:required] || custom_value.custom_field.is_required? | |
83 | title = custom_value.custom_field.description.presence |
|
89 | content = custom_field_name_tag custom_value.custom_field | |
84 | content = content_tag 'span', custom_value.custom_field.name, :title => title |
|
|||
85 |
|
90 | |||
86 | content_tag "label", content + |
|
91 | content_tag "label", content + | |
87 | (required ? " <span class=\"required\">*</span>".html_safe : ""), |
|
92 | (required ? " <span class=\"required\">*</span>".html_safe : ""), |
@@ -192,7 +192,7 module IssuesHelper | |||||
192 | ordered_values.compact.each do |value| |
|
192 | ordered_values.compact.each do |value| | |
193 | css = "cf_#{value.custom_field.id}" |
|
193 | css = "cf_#{value.custom_field.id}" | |
194 | s << "</tr>\n<tr>\n" if n > 0 && (n % 2) == 0 |
|
194 | s << "</tr>\n<tr>\n" if n > 0 && (n % 2) == 0 | |
195 |
s << "\t<th class=\"#{css}\">#{ |
|
195 | s << "\t<th class=\"#{css}\">#{ custom_field_name_tag(value.custom_field) }:</th><td class=\"#{css}\">#{ h(show_value(value)) }</td>\n" | |
196 | n += 1 |
|
196 | n += 1 | |
197 | end |
|
197 | end | |
198 | s << "</tr>\n" |
|
198 | s << "</tr>\n" |
@@ -60,7 +60,7 | |||||
60 | <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field), |
|
60 | <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field), | |
61 | :disabled => (custom_field.is_for_all? ? "disabled" : nil), |
|
61 | :disabled => (custom_field.is_for_all? ? "disabled" : nil), | |
62 | :id => nil %> |
|
62 | :id => nil %> | |
63 |
<%= custom_field |
|
63 | <%= custom_field_name_tag(custom_field) %> | |
64 | </label> |
|
64 | </label> | |
65 | <% end %> |
|
65 | <% end %> | |
66 | <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %> |
|
66 | <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %> |
@@ -327,7 +327,7 legend {color: #484848;} | |||||
327 | hr { width: 100%; height: 1px; background: #ccc; border: 0;} |
|
327 | hr { width: 100%; height: 1px; background: #ccc; border: 0;} | |
328 | blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;} |
|
328 | blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;} | |
329 | blockquote blockquote { margin-left: 0;} |
|
329 | blockquote blockquote { margin-left: 0;} | |
330 | abbr { border-bottom: 1px dotted; cursor: help; } |
|
330 | abbr, span[title] { border-bottom: 1px dotted #aaa; cursor: help; } | |
331 | textarea.wiki-edit {width:99%; resize:vertical;} |
|
331 | textarea.wiki-edit {width:99%; resize:vertical;} | |
332 | li p {margin-top: 0;} |
|
332 | li p {margin-top: 0;} | |
333 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} |
|
333 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} | |
@@ -491,7 +491,6 html>body .tabular p {overflow:hidden;} | |||||
491 |
|
491 | |||
492 | .tabular input, .tabular select {max-width:95%} |
|
492 | .tabular input, .tabular select {max-width:95%} | |
493 | .tabular textarea {width:95%; resize:vertical;} |
|
493 | .tabular textarea {width:95%; resize:vertical;} | |
494 | .tabular span[title] {border-bottom:1px dotted #aaa;} |
|
|||
495 |
|
494 | |||
496 | .tabular label{ |
|
495 | .tabular label{ | |
497 | font-weight: bold; |
|
496 | font-weight: bold; |
General Comments 0
You need to be logged in to leave comments.
Login now