[Rt-commit] rt branch 5.0/restore-ModifyFieldClasses-callback-to-EditCustomFields created. rt-5.0.3-78-gfe5770c981
BPS Git Server
git at git.bestpractical.com
Thu Aug 18 20:31:15 UTC 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/restore-ModifyFieldClasses-callback-to-EditCustomFields has been created
at fe5770c9814a70b02f094ca935c68f50deba80d7 (commit)
- Log -----------------------------------------------------------------
commit fe5770c9814a70b02f094ca935c68f50deba80d7
Author: Brian Conry <bconry at bestpractical.com>
Date: Thu Aug 18 15:11:56 2022 -0500
Restore ModifyFieldClasses to EditCustomFields
Change 8b58c4a15de mistakenly dropped this callback as part of the
prototype work preceeding the adoption of bootstrap.
This restores the callback for the new document structure.
diff --git a/share/html/Elements/EditCustomFields b/share/html/Elements/EditCustomFields
index 47d21f0d68..dce8c0b545 100644
--- a/share/html/Elements/EditCustomFields
+++ b/share/html/Elements/EditCustomFields
@@ -53,8 +53,14 @@
% }
% for my $CustomField ( @CustomFields ) {
% my $Type = $CustomField->Type || 'Unknown';
+% my @classes = (
+% 'edit-custom-field',
+% "cftype-$Type",
+% );
+% $m->callback( CallbackName => 'ModifyFieldClasses', CustomField => $CustomField,
+% Object => $Object, Classes => \@classes, Grouping => $Grouping );
- <div class="form-row edit-custom-field cftype-<% $Type %>">
+ <div class="<% join(' ', @classes) %>">
<div class="label col-<% $LabelCols %>">
<span class="<% $CustomField->EntryHint ? 'prev-icon-helper' : '' %>"><% $CustomField->Name %>:</span>\
% if ( $CustomField->EntryHint ) {
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list