[Rt-commit] rt branch, 4.4/gray-out-no-value, created. rt-4.2.11-135-g76989cc
Dustin Graves
dustin at bestpractical.com
Tue Aug 11 17:46:24 EDT 2015
The branch, 4.4/gray-out-no-value has been created
at 76989ccd8f387f51473005b4da1a7a6af2454248 (commit)
- Log -----------------------------------------------------------------
commit 76989ccd8f387f51473005b4da1a7a6af2454248
Author: Dustin Graves <dustin at bestpractical.com>
Date: Mon Aug 10 15:52:23 2015 +0000
Gray out custom fields with "(no value)"
Add class 'no-value' to fields without value with grey color in css
Fixes: I#31130
diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index 7f90fbf..24d4639 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -56,9 +56,9 @@
% next if $HideEmpty and not $count;
<tr id="CF-<%$CustomField->id%>-ShowRow">
<td class="label"><% $CustomField->Name %>:</td>
- <td class="value">
+ <td class="value<% $count ? '' : ' no-value' %>">
% unless ( $count ) {
-<i><&|/l&>(no value)</&></i>
+<&|/l&>(no value)</&>
% } elsif ( $count == 1 ) {
% $print_value->( $CustomField, $Values->First );
% } else {
diff --git a/share/static/css/base/forms.css b/share/static/css/base/forms.css
index 5e2c565..9f57331 100644
--- a/share/static/css/base/forms.css
+++ b/share/static/css/base/forms.css
@@ -24,6 +24,11 @@ form {
}
+.value.no-value {
+ color: #666;
+ font-style: italic;
+}
+
div.button-row {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list