& /Admin/Elements/Header, Title => $title &> <& /Elements/Tabs &> <& /Elements/ListActions, actions => \@results &>
<% loc('Place here') %>
% if ( $item->{type} eq 'raw_html' ) { <% uc($item->{wrapper} || 'HTML') %> % } elsif ( ( $item->{comp_name} // '' ) eq 'ShowBanner' ) { <% loc('Component') %> % } elsif ( ( $item->{comp_name} // '' ) eq 'ShowChoices' ) { <% loc('Component') %> % } elsif ( $item->{type} eq 'hidden' ) { <% loc('Hidden') %> % } elsif ( RT::Extension::FormTools::is_core_field($item->{arguments}{name}) ) { <% loc('Core Field') %> % } else { <% loc('Custom Field') %> % } % if ( $item->{type} eq 'raw_html' ) { % if ( $item->{wrapper} ) { <% length( $item->{content} // '' ) > 40 ? substr($item->{content}, 0, 40) . '...' : ( $item->{content} // '' ) %> % } else { <% length $item->{html} > 40 ? substr($item->{html}, 0, 40) . '...' : $item->{html} %> % } % } elsif ( $item->{type} eq 'hidden' ) { <% $item->{'input-name'} %>: <% $item->{'input-value'} %> % } elsif ( $item->{type} eq 'component' && $item->{comp_name} eq 'Field' ) { <% ( RT::Extension::FormTools::is_core_field( $item->{arguments}{name} ) ? loc( $item->{arguments}{name} ) : $item->{arguments}{name} ) || $item->{comp_name} %> <% $item->{arguments}{label} ? "($item->{arguments}{label})" : '' %> % } else { <% $item->{comp_name} %> % } % if ( ( $item->{type} eq 'raw_html' && ( ( $item->{wrapper} // '' ) ne 'hr' || %dependent_custom_fields ) ) || ( $item->{type} eq 'component' && ( $item->{comp_name} eq 'Field' || ( $item->{comp_name} =~ /ShowChoices|ShowBanner/ && %dependent_custom_fields ) ) ) || $item->{type} eq 'hidden' ) { % }
<% loc('Place here') %>
Your request has been submitted.
", "type" => "raw_html", "wrapper" => "p" }, ], }, }; my @form_pages = sort { ( $form->{'formtools-pages'}{$a}{sort_order} || 0 ) <=> ( $form->{'formtools-pages'}{$b}{sort_order} || 0 ) } keys %{ $form->{'formtools-pages'} }; my %form_page_id = map { $_ => CSSClass($_) } @form_pages; my $active_context = { tab => $ActiveTab || $form_page_id{$form_pages[0]} }; %INIT> <%ARGS> $id => undef $ActiveTab => '' $Update => undef $AddPage => undef %ARGS> <%METHOD ShowCondition> <&| /Elements/LabeledValue, Label => '' &>