diff options
author | Brian Conry <bconry@bestpractical.com> | 2022-08-18 23:11:56 +0300 |
---|---|---|
committer | Jim Brandt <jbrandt@bestpractical.com> | 2022-09-02 17:39:32 +0300 |
commit | 25b5dc7e33b57c8791a636aa24f9eed9c7006dc1 (patch) | |
tree | 38e22bd657ef9fefd6ed48a550b64ee6b4864ca1 | |
parent | acb0d17a139a258892a14acf3087de3efa5091a0 (diff) |
Restore ModifyFieldClasses callback to EditCustomFields
Commit 8b58c4a15d dropped this callback, possibly thinking
that class customizations for tables would not apply to
the new div structure. Some styles can apply for both,
so restore the callback for existing extensions that use it.
-rw-r--r-- | share/html/Elements/EditCustomFields | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/share/html/Elements/EditCustomFields b/share/html/Elements/EditCustomFields index 47d21f0d68..02a8949418 100644 --- a/share/html/Elements/EditCustomFields +++ b/share/html/Elements/EditCustomFields @@ -53,8 +53,15 @@ % } % for my $CustomField ( @CustomFields ) { % my $Type = $CustomField->Type || 'Unknown'; +% my @classes = ( +% 'form-row', +% '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 ) { |