SM2Gen/Targets/Mailsorting/_ms_TABLE.html.ep

88 lines
4.2 KiB
Plaintext
Raw Normal View History

%#
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-05-04 12:59:05
%#
<div id="Mailsorting-TABLE" class="partial Mailsorting-TABLE">
<script>
window.onload = function() {
SelectInput();
};
</script>
% if (config->{debug} == 1) {
<pre>
%= dumper $ms_data
</pre>
% }
% my $btn = l('ms_APPLY');
%= form_for "mailsortingu" => (method => 'POST') => begin
% param 'trt' => $ms_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $ms_data->{trt}
%# Inputs etc in here.
<h1 class='head'><%=l('ms_Mail_sorting_rules')%></h1>
<p class='paragraph para1'>
%=l('ms_Rules_are_executed_as_email')
</p>
<p><span class=label>
%=l('ms_Account')
</span><span class=data>
% param 'account' => $ms_data->{account} unless param 'account';
%= text_field 'account', size => '50', class => 'textinput account' , pattern=>'.*' , placeholder=>'account', title =>'Pattern regex mismatch', id => 'account_text'
<br></span></p>
<p><span class=label>
%=l('ms_User_Name')
</span><span class=data>
% param 'username' => $ms_data->{username} unless param 'username';
%= text_field 'username', size => '50', class => 'textinput username' , pattern=>'.*' , placeholder=>'username', title =>'Pattern regex mismatch', id => 'username_text'
<br></span></p>
<a href='mailsortingdd?trt=RULES' class='link link1'>
%= l('ms_Add_new_rule')
</a>
%#= link_to l('ms_Add_new_rule'), 'mailsortingdd?trt=RULES' , class=>'link link1'
<h2 class='subh'><%=l('ms_Current_rules')%></h2>
<br /><table class="sme-border TableSort sme-table tabl1 ">
<thead class='tabl1'>
<tr table-head-row>
<th class='sme-border table-head-col table-head-col-Match Against '><%=l('ms_Match_Against')%></th>
<th class='sme-border table-head-col table-head-col-The Rule '><%=l('ms_The_Rule')%></th>
<th class='sme-border table-head-col table-head-col-2nd Match '><%=l('ms_2nd_Match')%></th>
<th class='sme-border table-head-col table-head-col-2nd Rule '><%=l('ms_2nd_Rule')%></th>
<th class='sme-border table-head-col table-head-col-Action '><%=l('ms_Action')%></th>
<th class='sme-border table-head-col table-head-col-Destination '><%=l('ms_Destination')%></th>
<th class='sme-border table-head-col table-head-col-Copy '><%=l('ms_Copy')%></th>
<th class='sme-border table-head-col table-head-col-Destination '><%=l('ms_Destination')%></th>
<th class='sme-border table-head-col table-head-col-Serial Number '><%=l('ms_Serial_Number')%></th>
<th class='sme-border table-head-col table-head-col-Modify '><%=l('ms_Modify')%></th>
<th class='sme-border table-head-col table-head-col-Remove '><%=l('ms_Remove')%></th>
</tr>
</thead>
<tbody class='tabl1'>
% my $control_data = $c->stash('getAllRules');
% foreach my $row (@$control_data) {
<tr class='table-row'>
<td class='sme-border table-col table-col-MatchAgainst'><%=$c->render_to_string(inline=>$row->{'MatchAgainst'})%></td>
<td class='sme-border table-col table-col-TheRule'><%=$c->render_to_string(inline=>$row->{'TheRule'})%></td>
<td class='sme-border table-col table-col-c2ndMatch'><%=$c->render_to_string(inline=>$row->{'c2ndMatch'})%></td>
<td class='sme-border table-col table-col-c2ndRule'><%=$c->render_to_string(inline=>$row->{'c2ndRule'})%></td>
<td class='sme-border table-col table-col-Action'><%=$c->render_to_string(inline=>$row->{'Action'})%></td>
<td class='sme-border table-col table-col-Destination'><%=$c->render_to_string(inline=>$row->{'Destination'})%></td>
<td class='sme-border table-col table-col-Copy'><%=$c->render_to_string(inline=>$row->{'Copy'})%></td>
<td class='sme-border table-col table-col-Destination'><%=$c->render_to_string(inline=>$row->{'Destination'})%></td>
<td class='sme-border table-col table-col-Serial Number'><%=$c->render_to_string(inline=>$row->{'Serial Number'})%></td>
<td class='sme-border table-col table-col-Modify'><%=$c->render_to_string(inline=>$row->{'Modify'})%></td>
<td class='sme-border table-col table-col-Remove'><%=$c->render_to_string(inline=>$row->{'Remove'})%></td>
</tr>
%}
</tbody>
</table>
%# Probably finally by a submit.
%end
</div>