Maintenances.tt
3.27 KB
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
# --
# Kernel/Output/HTML/Standard/Maintenances.tt - template for maintenances module index
#
# Copyright (C) 2014-2018 - SeTIC - UFSC - http://setic.ufsc.br/
# Version 2015-08-01 - Adjustments for OTRS 4
# Version 2018-01-05 - Adjustments for OTRS 6
#
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
<div class="MainBox ARIARoleMain">
<h1>[% Translate("Maintenances") | html %]</h1>
[% BreadcrumbPath = [
{
Name => Translate('Maintenances'),
Link => Env("Action"),
},
]
%]
[% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
<div class="OverviewBox ARIARoleMain Preview" role="main">
<div class="WidgetSimple QueueOverview">
<div class="Content">
<ul class="QueueOverviewList Level_0">
<li><a [% IF Data.Type == "current" %] class="Active"[% END %] HREF="[% Env("CGIHandle") %]?Action=[% Env("Action") %];Type=current">[% Translate("Current") | html %]</a>
</li>
<li><a [% IF Data.Type == "scheduled" %] class="Active"[% END %] HREF="[% Env("CGIHandle") %]?Action=[% Env("Action") %];Type=scheduled">[% Translate("Scheduled") | html %]</a>
</li>
<li><a [% IF Data.Type == "current_scheduled" %] class="Active"[% END %] HREF="[% Env("CGIHandle") %]?Action=[% Env("Action") %];Type=current_scheduled">[% Translate("Current and scheduled") | html %]</a>
</li>
<li><a [% IF Data.Type == "all" %] class="Active"[% END %] HREF="[% Env("CGIHandle") %]?Action=[% Env("Action") %];Type=all">[% Translate("All") | html %]</a>
</li>
</ul>
</div>
</div>
</div>
<table class="DataTable VariableWidth SpacingTop" style="border-collapse: collapse" id="Table">
<thead>
<tr>
<th><center>[% Translate("Status/Actions") | html %]</center></th>
<th width="40%"><center>[% Translate("Description") | html %]</center></th>
<th><center>[% Translate("Start time") | html %]</center></th>
<th><center>[% Translate("Scheduled end date") | html %]</center></th>
<th><center>[% Translate("End date") | html %]</center></th>
</tr>
</thead>
<tbody>
[% RenderBlockStart("Maintenance") %]
<tr>
[% IF Data.Status == 2 %]
<td>[% Translate("Cancelled") | html %]</td>
[% ELSIF Data.Status == 1 %]
<td>[% Translate("Finished") | html %]</td>
[% ELSIF Data.Active %]
<td>[% Translate("Active") | html %] (<A HREF="[% Env("CGIHandle") %]?Action=[% Env("Action") %];Subaction=EndMaintenance;ID=[% Data.ID %]">[% Translate("End") %]</A>)</td>
[% ELSE %]
<td>[% Translate("Scheduled ") | html %] (<A HREF="[% Env("CGIHandle") %]?Action=[% Env("Action") %];Subaction=CancelMaintenance;ID=[% Data.ID %]">[% Translate("Cancel") %]</A>)</td>
[% END %]
<td><center>[% Data.Description %]</center></td>
<td><center><div>[% Data.StartDate | Localize("TimeShort") %]</div></center></td>
<td><center><div>[% Data.ScheduledEndDate | Localize("TimeShort") %]</div></center></td>
<td><center><div>[% Data.EndDate | Localize("TimeShort") %]</div></center></td>
</tr>
[% RenderBlockEnd("Maintenance") %]
</tbody>
</table>
</div>