Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcraig kaiser <craig@bestpractical.com>2021-02-17 01:48:04 +0300
committercraig kaiser <craig@bestpractical.com>2021-02-17 01:50:02 +0300
commitdd6935a66e3a128d9a1eae701b64575a1a0a5d60 (patch)
tree1d1de866c7d0e41f2d073c956abb49719f1512ec
parentb0fc27d0905ccd932d806d21ba1d8331c1f69660 (diff)
Only use col-2/10 layout for transaction custom fields5.0/increase-custom-field-label-cols
-rw-r--r--share/html/Elements/ShowCustomFields10
1 files changed, 8 insertions, 2 deletions
diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index d1d5fb1fec..5d0e01bb14 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -66,10 +66,16 @@ my @classes = (
push @classes, 'unset-field' if not $count;
$m->callback( CallbackName => 'ModifyFieldClasses', CustomField => $CustomField,
Object => $Object, Classes => \@classes, Grouping => $Grouping );
+
+my ($labelCols, $valueCols) = (3, 9);
+# If we a have transaction custom field we want smaller label section:
+if ( $CustomField->LookupType eq 'RT::Queue-RT::Ticket-RT::Transaction' ) {
+ ($labelCols, $valueCols) = (2, 10);
+}
</%perl>
<div class="form-row <% join(' ', @classes) %>" id="CF-<%$CustomField->id%>-ShowRow">
- <div class="label col-2"><% $CustomField->Name %>:</div>
- <div class="value col-10 <% $count ? '' : ' no-value' %>">
+ <div class="label col-<% $labelCols %>"><% $CustomField->Name %>:</div>
+ <div class="value col-<% $valueCols %> <% $count ? '' : ' no-value' %>">
<span class="current-value">
% unless ( $count ) {
<&|/l&>(no value)</&>