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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
# --
# 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.
# --
[% IF Data.ShowSearchDialog %]
<div class="MainBox ARIARoleMain CustomerUserAdressBookSearch">
<h1>[% Translate("Customer User Address Book") | html %]</h1>
<div class="FieldExplanation">[% Translate("Search for recipients and add the results as '%s'.", Data.RecipientFieldLabel) | html %]</div>
<div class="ContentColumn">
<form action="[% Env("CGIHandle") %]" method="post" id="SearchForm" class="CustomerUserAddressBookForm">
<input type="hidden" name="Action" value="[% Env("Action") %]" id="SearchAction"/>
<input type="hidden" name="Subaction" value="Search"/>
<input type="hidden" name="EmptySearch" value="[% Data.EmptySearch | html %]" id="EmptySearch"/>
<input type="hidden" name="ShownAttributes" value="" id="ShownAttributes">
<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="ExcludeUserLoginsJSON" value="" id="ExcludeUserLogins">
<fieldset class="TableLike SpacingTop">
<legend><span>[% Translate("Templates") | html %]</span></legend>
<label>[% Translate("Search template") | html %]:</label>
<div class="Field">
[% Data.ProfilesStrg %]
<div id="SearchProfileAddBlock" class="SpacingTopSmall">
<input type="text" name="Name" id="SearchProfileAddName"/>
<button type="button" title="[% Translate("Create Template") | html %]" id="SearchProfileAddAction" class="CallForAction Inline"><span>[% Translate("Add") | html %]</span></button>
</div>
</div>
<div class="Field">
<button id="SearchProfileNew" value="[% Translate("Create New") | html %]" class="CallForAction Inline"><span>[% Translate("Create New") | html %]</span></button>
<button id="SearchProfileDelete" class="CallForAction Inline Hidden" value="[% Translate("Delete") | html %]"><span>[% Translate("Delete") | html %]</span></button>
</div>
<div class="Clear"></div>
<label>[% Translate("Save changes in template") | html %]:</label>
<div class="Field">
<input type="checkbox" name="SaveProfile" id="SaveProfile" value="1"/>
</div>
</fieldset>
<fieldset class="TableLike SpacingTop" id="SearchInsert">
<legend><span>[% Translate("Filters in use") | html %]</span></legend>
</fieldset>
<fieldset class="TableLike SpacingTop">
<legend><span>[% Translate("Additional filters") | html %]</span></legend>
<label>[% Translate("Add another attribute") | html %]:</label>
<div class="Field">
[% Data.AttributesStrg %]
<div class="FieldExplanation">[% Translate("The attributes with the identifier '(Customer)' are from the customer company.") | html %]</div>
</div>
<div class="Clear"></div>
</fieldset>
</form>
<fieldset class="TableLike Hidden" id="SearchAttributesHidden">
[% FOR SearchField IN Data.OutputSearchFields %]
<div class="Clear"></div>
<label for="[% SearchField.Name | html %]" id="Label[% SearchField.Name | html %]">[% Translate(SearchField.Label) | html %]:</label>
<div class="Field">
[% IF SearchField.SelectionString %]
[% SearchField.SelectionString %]
[% ELSE %]
<input type="text" name="[% SearchField.Name | html %]" placeholder="[% Translate("(e. g. Term* or *Term*)") | html %]" value="[% SearchField.Value | html %]" class="W50pc"/>
[% END %]
<a class="RemoveButton" href="#" title="[% Translate("Remove this entry") | html %]"><i class="fa fa-minus-square-o"></i><span class="InvisibleText">[% Translate("Remove") | html %]</span></a>
</div>
[% END %]
[% RenderBlockStart("DynamicField") %]
<div class="Clear"></div>
[% Data.Label %]
<div class="Field">
[% Data.Field %]
<a class="RemoveButton" href="#" title="[% Translate("Remove this entry") | html %]"><i class="fa fa-minus-square-o"></i><span class="InvisibleText">[% Translate("Remove") | html %]</span></a>
</div>
[% RenderBlockEnd("DynamicField") %]
<div class="Clear"></div>
[% Data.AttributesOrigStrg %]
</fieldset>
</div>
<div class="SearchFormButton Hidden">
<button id="SearchFormSubmit" class="Primary CallForAction" value="Run search"><span><i class="fa fa-search"></i> [% Translate("Run search") | html %]</span></button>
<button id="FormCancel" class="CallForAction"><span>[% Translate("Cancel") | html %]</span></button>
</div>
</div>
[% END %]
|