247 lines
13 KiB
Plaintext
247 lines
13 KiB
Plaintext
# --
|
|
# Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
|
|
# --
|
|
# $origin: otrs - b9cf29ede488bbc3bf5bd0d49f422ecc65668a0c - Kernel/Output/HTML/Templates/Standard/AdminService.tt
|
|
# --
|
|
# 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("Service Management") | html %]</h1>
|
|
|
|
[% BreadcrumbPath = [
|
|
{
|
|
Name => Translate('Service Management'),
|
|
Link => Env("Action"),
|
|
},
|
|
]
|
|
%]
|
|
|
|
[% IF Data.ServiceID == "NEW" %]
|
|
[% BreadcrumbPath.push({ Name => Translate("Add Service"),}) %]
|
|
[% ELSIF Data.ServiceID %]
|
|
[% USE EditTitle = String(Translate("Edit Service")) %]
|
|
[% BreadcrumbPath.push({ Name => EditTitle.append( ': ', Data.ServiceName ) }) %]
|
|
[% END %]
|
|
|
|
[% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
|
|
|
|
<div class="Clear"></div>
|
|
<div class="SidebarColumn">
|
|
<div class="WidgetSimple">
|
|
[% RenderBlockStart("ActionList") %]
|
|
<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 href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=ServiceEdit;ServiceID=NEW" class="CallForAction Fullsize Center"><span><i class="fa fa-plus-square"></i>[% Translate("Add Service") | html %]</span></a>
|
|
</li>
|
|
[% RenderBlockEnd("ActionAdd") %]
|
|
</ul>
|
|
</div>
|
|
[% RenderBlockEnd("ActionList") %]
|
|
</div>
|
|
|
|
[% RenderBlockStart("Filter") %]
|
|
<div class="WidgetSimple">
|
|
<div class="Header">
|
|
<h2><label for="FilterServices">[% Translate("Filter for Services") | html %]</label></h2>
|
|
</div>
|
|
<div class="Content">
|
|
<input type="text" id="FilterServices" class="FilterBox" placeholder="[% Translate("Just start typing to filter...") | html %]" name="FilterServices" value="" title="[% Translate("Filter for services") | html %]">
|
|
</div>
|
|
</div>
|
|
[% RenderBlockEnd("Filter") %]
|
|
</div>
|
|
|
|
<div class="ContentColumn">
|
|
<div class="WidgetSimple">
|
|
[% RenderBlockStart("OverviewList") %]
|
|
<div class="Header">
|
|
<h2>[% Translate("List") | html %]</h2>
|
|
</div>
|
|
<div class="Content">
|
|
|
|
<table class="DataTable" id="Services">
|
|
<thead>
|
|
<tr>
|
|
<th>[% Translate("Service") | 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("OverviewListRow") %]
|
|
<tr [% IF Data.ValidID != 1%]class="Invalid"[% END %]>
|
|
<td title="[% Data.Name | html %]">[% Data.LevelSpace | html %]<a class="AsBlock" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=ServiceEdit;ServiceID=[% Data.ServiceID | uri %]">[% Data.Name | truncate(80) | 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("OverviewListRow") %]
|
|
<tr class="FilterMessage Hidden">
|
|
<td colspan="5">[% Translate("No matches found.") | html %]</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
[% RenderBlockEnd("OverviewList") %]
|
|
|
|
[% RenderBlockStart("ServiceEdit") %]
|
|
<div class="Header">
|
|
[% IF Data.ServiceID == 'NEW' %]
|
|
<h2>[% Translate("Add Service") | html %]</h2>
|
|
[% ELSE %]
|
|
<h2>[% Translate("Edit Service") | 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="ServiceSave"/>
|
|
<input type="hidden" name="ServiceID" value="[% Data.ServiceID | html %]"/>
|
|
[% IF Data.ServiceID != 'NEW' %]
|
|
<input type="hidden" name="ContinueAfterSave" id="ContinueAfterSave" value=""/>
|
|
[% END %]
|
|
|
|
<fieldset class="TableLike">
|
|
|
|
<label class="Mandatory" for="Name"><span class="Marker">*</span> [% Translate("Service") | html %]:</label>
|
|
<div class="Field">
|
|
<input type="text" name="Name" id="Name" value="[% Data.NameShort | html %]" class="W50pc Validate_Required [% Data.NameInvalid | html %]" maxlength="200"/>
|
|
<div id="NameError" class="TooltipErrorMessage" ><p>[% Translate("This field is required.") | html %]</p></div>
|
|
[% IF Data.LongName %]
|
|
<div id="NameServerError" class="TooltipErrorMessage" ><p>[% Translate("Service name maximum length is 200 characters (with Sub-service).") | html %]</p></div>
|
|
[% ELSE %]
|
|
<div id="NameServerError" class="TooltipErrorMessage" ><p>[% Translate("This field is required.") | html %]</p></div>
|
|
[% END %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
|
|
<label for="ParentID">[% Translate("Sub-service of") | html %]: </label>
|
|
<div class="Field">
|
|
[% Data.ParentOptionStrg %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
# ---
|
|
# ITSMCore
|
|
# ---
|
|
<label for="TypeID">[% Translate("Type") | html %]: </label>
|
|
<div class="Field">
|
|
[% Data.TypeOptionStrg %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
|
|
<label for="Criticality">[% Translate("Criticality") | html %]: </label>
|
|
<div class="Field">
|
|
[% Data.CriticalityOptionStrg %]
|
|
</div>
|
|
<div class="Clear"></div>
|
|
# ---
|
|
|
|
<label class="Mandatory" for="ValidID"><span class="Marker">*</span> [% Translate("Validity") | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.ValidOptionStrg %]
|
|
</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>
|
|
|
|
[% RenderBlockStart("Item") %]
|
|
[% RenderBlockStart("InputKey") %]
|
|
<label for="[% Data.Name | html %]">[% Translate(Data.Label) | html %] [% Translate(Data.Key) | html %]: </label>
|
|
<div class="Field">
|
|
<input type="text" name="[% Data.Name | html %]" id="[% Data.Name | html %]" value="[% Data.SelectedID | html %]" class="W25pc"/>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("InputKey") %]
|
|
[% RenderBlockStart("Input") %]
|
|
<label for="[% Data.Name | html %]">[% Translate(Data.Label) | html %]: </label>
|
|
<div class="Field">
|
|
<input type="text" name="[% Data.Name | html %]" id="[% Data.Name | html %]" value="[% Data.SelectedID | html %]" class="W25pc"/>
|
|
<p class="FieldExplanation">[% Translate(Data.Desc) | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("Input") %]
|
|
[% RenderBlockStart("TextArea") %]
|
|
<label for="[% Data.Name | html %]">[% Translate(Data.Label) | html %]: </label>
|
|
<div class="Field">
|
|
<textarea name="[% Data.Name | html %]" id="[% Data.Name | html %]" rows="[% Data.Rows | html %]" cols="[% Data.Cols | html %]">[% Data.SelectedID | html %]</textarea>
|
|
<p class="FieldExplanation">[% Translate(Data.Desc) | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("TextArea") %]
|
|
[% RenderBlockStart("Option") %]
|
|
<label for="[% Data.Name | html %]">[% Translate(Data.Label) | html %] [% Translate(Data.Key) | html %]:</label>
|
|
<div class="Field">
|
|
[% Data.Option %]
|
|
<p class="FieldExplanation">[% Translate(Data.Desc) | html %]</p>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("Option") %]
|
|
[% RenderBlockStart("Upload") %]
|
|
<label for="[% Data.Name | html %]">[% Translate(Data.Label) | html %] [% Translate(Data.Key) | html %]</label>
|
|
<div class="Field">
|
|
<input name="[% Data.Name | html %]" id="[% Data.Name | html %]" type="file" size="30" class="fixed"/><br/>
|
|
<a href="">[% Data.Filename | html %]</a>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("Upload") %]
|
|
[% RenderBlockStart("Password") %]
|
|
<label for="[% Data.Name | html %]">[% Translate(Data.Label) | html %] [% Translate(Data.Key) | html %]: </label>
|
|
<div class="Field">
|
|
<input type="password" class="W25pc" name="[% Data.Name | html %]" id="[% Data.Name | html %]" value="" />
|
|
</div>
|
|
<div class="Clear"></div>
|
|
[% RenderBlockEnd("Password") %]
|
|
[% RenderBlockEnd("Item") %]
|
|
<div class="Field SpacingTop">
|
|
[% IF Data.ServiceID != 'NEW' %]
|
|
<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>
|
|
[% RenderBlockEnd("ServiceEdit") %]
|
|
</div>
|
|
</div>
|
|
<div class="Clear"></div>
|
|
</div>
|
|
[% RenderBlockEnd("Overview") %]
|