init III
This commit is contained in:
@@ -0,0 +1,243 @@
|
||||
# --
|
||||
# Copyright (C) 2001-2019 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.
|
||||
# --
|
||||
|
||||
[% RenderBlockStart("Overview") %]
|
||||
<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
|
||||
<h1 class="InvisibleText">[% Translate("Salutation Management") | html %]</h1>
|
||||
|
||||
[% BreadcrumbPath = [
|
||||
{
|
||||
Name => Translate('Salutation Management'),
|
||||
Link => Env("Action"),
|
||||
},
|
||||
]
|
||||
%]
|
||||
|
||||
[% SWITCH Data.Action %]
|
||||
[% CASE 'Add' %]
|
||||
[% BreadcrumbPath.push({ Name => Translate("Add Salutation"),}) %]
|
||||
[% CASE 'Change' %]
|
||||
[% USE EditTitle = String(Translate("Edit Salutation")) %]
|
||||
[% BreadcrumbPath.push({ Name => EditTitle.append( ': ', Data.Name ) }) %]
|
||||
[% END %]
|
||||
|
||||
[% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
|
||||
|
||||
<div class="SidebarColumn">
|
||||
[% RenderBlockStart("ActionList") %]
|
||||
<div class="WidgetSimple">
|
||||
<div class="Header">
|
||||
<h2>[% Translate("Actions") | html %]</h2>
|
||||
</div>
|
||||
<div class="Content">
|
||||
<ul class="ActionList">
|
||||
[% RenderBlockStart("ActionOverview") %]
|
||||
<li>
|
||||
<a href="[% Env("Baselink") %]Action=[% Env("Action") %]" class="CallForAction Fullsize Center"><span><i class="fa fa-caret-left"></i>[% Translate("Go to overview") | html %]</span></a>
|
||||
</li>
|
||||
[% RenderBlockEnd("ActionOverview") %]
|
||||
[% RenderBlockStart("ActionAdd") %]
|
||||
<li>
|
||||
<a class="CallForAction Fullsize Center" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Add">
|
||||
<span><i class="fa fa-plus-square"></i>[% Translate("Add Salutation") | html %]</span>
|
||||
</a>
|
||||
</li>
|
||||
[% RenderBlockEnd("ActionAdd") %]
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
[% RenderBlockEnd("ActionList") %]
|
||||
|
||||
[% RenderBlockStart("Filter") %]
|
||||
<div class="WidgetSimple">
|
||||
<div class="Header">
|
||||
<h2><label for="FilterSalutations">[% Translate("Filter for Salutations") | html %]</label></h2>
|
||||
</div>
|
||||
<div class="Content">
|
||||
<input type="text" id="FilterSalutations" class="FilterBox" placeholder="[% Translate("Just start typing to filter...") | html %]" name="FilterSalutations" value="" title="[% Translate("Filter for salutations") | html %]">
|
||||
</div>
|
||||
</div>
|
||||
[% RenderBlockEnd("Filter") %]
|
||||
|
||||
</div>
|
||||
<div class="ContentColumn">
|
||||
|
||||
[% RenderBlockStart("OverviewResult") %]
|
||||
<div class="WidgetSimple">
|
||||
<div class="Header">
|
||||
<h2>[% Translate("List") | html %]</h2>
|
||||
</div>
|
||||
<div class="Content">
|
||||
<table class="DataTable" id="Salutations">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>[% Translate("Name") | html %]</th>
|
||||
<th>[% Translate("Comment") | html %]</th>
|
||||
<th>[% Translate("Validity") | html %]</th>
|
||||
<th>[% Translate("Changed") | html %]</th>
|
||||
<th>[% Translate("Created") | html %]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% RenderBlockStart("NoDataFoundMsg") %]
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
[% Translate("No data found.") | html %]
|
||||
</td>
|
||||
</tr>
|
||||
[% RenderBlockEnd("NoDataFoundMsg") %]
|
||||
[% RenderBlockStart("OverviewResultRow") %]
|
||||
<tr [% IF Data.ValidID != 1 %]class="Invalid"[% END %]>
|
||||
<td>
|
||||
<a class="AsBlock" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Change;ID=[% Data.ID | uri %]">[% Data.Name | html %]</a>
|
||||
</td>
|
||||
<td title="[% Data.Comment | html %]">[% Data.Comment | truncate(20) | html %]</td>
|
||||
<td>[% Translate(Data.Valid) | html %]</td>
|
||||
<td>[% Data.ChangeTime | Localize("TimeShort") %]</td>
|
||||
<td>[% Data.CreateTime | Localize("TimeShort") %]</td>
|
||||
</tr>
|
||||
[% RenderBlockEnd("OverviewResultRow") %]
|
||||
<tr class="FilterMessage Hidden">
|
||||
<td colspan="5">[% Translate("No matches found.") | html %]</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
[% RenderBlockEnd("OverviewResult") %]
|
||||
[% RenderBlockStart("OverviewUpdate") %]
|
||||
|
||||
<div class="WidgetSimple">
|
||||
<div class="Header">
|
||||
|
||||
[% IF Data.Action == 'Add' %]
|
||||
<h2>[% Translate("Add Salutation") | html %]</h2>
|
||||
[% ELSE %]
|
||||
<h2>[% Translate("Edit Salutation") | html %]</h2>
|
||||
[% END %]
|
||||
|
||||
</div>
|
||||
<div class="Content">
|
||||
|
||||
<form action="[% Env("CGIHandle") %]" method="post" class="Validate PreventMultipleSubmits">
|
||||
<input type="hidden" name="Action" value="[% Env("Action") %]"/>
|
||||
<input type="hidden" name="Subaction" value="[% Data.Action | uri %]Action"/>
|
||||
<input type="hidden" name="ID" value="[% Data.ID | html %]"/>
|
||||
[% IF Data.Action == 'Change' %]
|
||||
<input type="hidden" name="ContinueAfterSave" id="ContinueAfterSave" value=""/>
|
||||
[% END %]
|
||||
<fieldset class="TableLike">
|
||||
<label class="Mandatory" for="Name"><span class="Marker">*</span> [% Translate("Name") | html %]:</label>
|
||||
<div class="Field">
|
||||
<input type="text" name="Name" id="Name" value="[% Data.Name | html %]" class="W50pc Validate_Required [% Data.NameInvalid | html %]" maxlength="200"/>
|
||||
<div id="NameError" class="TooltipErrorMessage">
|
||||
<p>[% Translate("This field is required.") | html %]</p>
|
||||
</div>
|
||||
<div id="NameServerError" class="TooltipErrorMessage">
|
||||
<p>[% Translate("This field is required.") | html %]</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Clear"></div>
|
||||
|
||||
<label for="RichText">[% Translate("Salutation") | html %]:</label>
|
||||
<div class="RichTextField">
|
||||
<textarea id="RichText" class="RichText" rows="10" cols="74" name="Text">[% Data.Text | html %]</textarea>
|
||||
</div>
|
||||
<div class="Clear"></div>
|
||||
|
||||
<label class="Mandatory" for="ValidID"><span class="Marker">*</span> [% Translate("Validity") | html %]:</label>
|
||||
<div class="Field">
|
||||
[% Data.ValidOption %]
|
||||
<div id="ValidIDError" class="TooltipErrorMessage">
|
||||
<p>[% Translate("This field is required.") | html %]</p>
|
||||
</div>
|
||||
<div id="ValidIDServerError" class="TooltipErrorMessage">
|
||||
<p>[% Translate("This field is required.") | html %]</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Clear"></div>
|
||||
|
||||
<label for="Comment">[% Translate("Comment") | html %]:</label>
|
||||
<div class="Field">
|
||||
<input type="text" name="Comment" id="Comment" value="[% Data.Comment | html %]" class="W50pc" maxlength="250"/>
|
||||
</div>
|
||||
<div class="Clear"></div>
|
||||
|
||||
<div class="Field">
|
||||
[% IF Data.Action == 'Change' %]
|
||||
<button class="CallForAction Primary" id="SubmitAndContinue" type="button" value="[% Translate("Save") | html %]"><span>[% Translate("Save") | html %]</span></button>
|
||||
[% Translate("or") | html %]
|
||||
<button class="CallForAction Primary" id="Submit" type="submit" value="[% Translate("Save") | html %]"><span>[% Translate("Save and finish") | html %]</span></button>
|
||||
[% ELSE %]
|
||||
<button class="CallForAction Primary" id="Submit" type="submit" value="[% Translate("Save") | html %]"><span>[% Translate("Save") | html %]</span></button>
|
||||
[% END %]
|
||||
[% Translate("or") | html %]
|
||||
<a href="[% Env("Baselink") %]Action=[% Env("Action") %]">[% Translate("Cancel") | html %]</a>
|
||||
</div>
|
||||
<div class="Clear"></div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="WidgetSimple SpacingTop">
|
||||
<div class="Header">
|
||||
<h2>[% Translate("Hint") | html %]</h2>
|
||||
</div>
|
||||
<div class="Content">
|
||||
|
||||
<p>[% Translate("You can use the following tags") | html %]:</p>
|
||||
<dl>
|
||||
<dt><code><OTRS_OWNER_*></code></dt>
|
||||
<dd>
|
||||
[% Translate("Ticket owner options") | html %] ([% Translate("e. g.") | html %]
|
||||
<code><OTRS_OWNER_UserFirstname></code>).
|
||||
</dd>
|
||||
|
||||
<dt><code><OTRS_RESPONSIBLE_*></code></dt>
|
||||
<dd>
|
||||
[% Translate("Ticket responsible options") | html %] ([% Translate("e. g.") | html %]
|
||||
<code><OTRS_RESPONSIBLE_UserFirstname></code>).
|
||||
</dd>
|
||||
<dt><code><OTRS_CURRENT_*></code></dt>
|
||||
<dd>
|
||||
[% Translate("Options of the current user who requested this action") | html %] ([% Translate("e. g.") | html %]
|
||||
<code><OTRS_CURRENT_UserFirstname></code>).
|
||||
</dd>
|
||||
|
||||
<dt><code><OTRS_TICKET_*></code></dt>
|
||||
<dd>
|
||||
[% Translate("Options of the ticket data") | html %] ([% Translate("e. g.") | html %]
|
||||
<code><OTRS_TICKET_TicketNumber>, <OTRS_TICKET_TicketID>, <OTRS_TICKET_Queue>, <OTRS_TICKET_State></code>).
|
||||
</dd>
|
||||
<dt><code><OTRS_CUSTOMER_DATA_*></code></dt>
|
||||
<dd>
|
||||
[% Translate("Options of the current customer user data") | html %] ([% Translate("e. g.") | html %]
|
||||
<code><OTRS_CUSTOMER_DATA_UserFirstname></code>).
|
||||
</dd>
|
||||
|
||||
<dt><code><OTRS_CONFIG_*></code></dt>
|
||||
<dd>
|
||||
[% Translate("Config options") | html %] ([% Translate("e. g.") | html %] <code><OTRS_CONFIG_HttpType></code>).
|
||||
</dd>
|
||||
</dl>
|
||||
<p class="SpacingTop">
|
||||
[% Translate("Example salutation") | html %]:
|
||||
</p>
|
||||
<textarea rows="5" cols="60" name="Response">
|
||||
Dear <OTRS_CUSTOMER_REALNAME>,
|
||||
|
||||
Thank you for your request.
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
[% RenderBlockEnd("OverviewUpdate") %]
|
||||
</div>
|
||||
<div class="Clear"></div>
|
||||
</div>
|
||||
[% RenderBlockEnd("Overview") %]
|
||||
Reference in New Issue
Block a user