1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
# --
# Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
# --
<div id="OverviewBody" class="Overview TicketList CustomerUserAdressBookList">
<form action="[% Env("CGIHandle") %]" method="post" enctype="multipart/form-data" name="matrix" class="CustomerUserAddressBookForm">
<input type="hidden" name="Action" value="[% Env("Action") %]" />
<input type="hidden" name="RecipientType" value="[% Data.RecipientType | html %]" id="RecipientType" />
<input type="hidden" name="RecipientField" value="[% Data.RecipientField | html %]" id="RecipientField" />
<input type="hidden" name="RecipientFieldLabel" value="[% Data.RecipientFieldLabel | html %]" id="RecipientFieldLabel" />
<input type="hidden" name="RecipientsJSON" value="[% Data.RecipientsJSON | html %]" id="RecipientSelectedJSON" />
<table class="TableSmall" summary="A generic customer user table">
<thead>
<tr>
<th class="Checkbox">
<input class="Checkbox" type="checkbox" title="[% Translate("Select all") | html %]" id="SelectAllCustomerUser" autocomplete="off" />
</th>
[% FOR Column IN Data.RecordHeaderColumns %]
<th class="[% Column.Name | html %] [% Column.CSS | html %]">
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];[% Data.LinkSort %];SortBy=[% Column.Name | uri %];OrderBy=[% Column.OrderBy | uri %]">[% Translate(Column.Label) | html %]</a>
</th>
[% END %]
</tr>
</thead>
<tbody>
[% IF Data.RecordDataColumns.size %]
[% FOR Entry IN Data.RecordDataColumns %]
<tr class="MasterAction[% IF Entry.Disabled %] Disabled[% END %]"[% IF Entry.Disabled %] title="[% Translate("The customer user is already selected in the ticket mask.") | html %]"[% END %]>
<td class="Checkbox NonTextContent">
<input class="Checkbox" type="checkbox" [% IF !Entry.Disabled %]name="RecipientUserLogin"[% END %] title="[% Translate("Select this customer user") | html %]" value="[% Entry.UserLogin | html %]" data-customer-ticket-text="[% Entry.${Data.CustomerTicketTextField} | html %]" autocomplete="off"[% IF Data.Recipients.item(Entry.UserLogin) || Entry.AlreadySelected %] checked="checked"[% END %][% IF Entry.Disabled %] disabled="disabled"[% END %]/>
</td>
[% FOR Column IN Data.ShowColumns %]
<td>
<span title="[% Entry.item(Column) | html %]">[% Entry.item(Column) | truncate(24) | html %]</span>
</td>
[% END %]
</tr>
[% END %]
[% ELSE %]
<tr>
<td colspan="[% Data.ColumnCount | html %]">
[% Translate("No data found.") | html %]
</td>
</tr>
[% END %]
</tbody>
</table>
</form>
</div>
<div class="RecipientButton Hidden">
<button id="RecipientSelect" class="Primary CallForAction" value="Confirm Selection"><span>[% Translate("Add selected customer user to") | html %]</span></button>
<button id="FormCancel" class="CallForAction"><span>[% Translate("Cancel") | html %]</span></button>
</div>
|