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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
|
# --
# 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 class="MainBox ARIARoleMain LayoutFixedSidebar SidebarFirst">
<h1 class="InvisibleText">[% Translate("Communication Log") | html %] - [% Translate(Data.Action) | html %]</h1>
[% BreadcrumbPath = [
{
Name => Translate('Communication Log'),
},
]
%]
[% INCLUDE "Breadcrumb.tt" Path = BreadcrumbPath %]
<div class="Clear"></div>
<div class="SidebarColumn">
[% RenderBlockStart("TimeRange") %]
<div class="WidgetSimple">
<div class="Header">
<h2>[% Translate("Time Range") | html %]</h2>
</div>
<div class="Content">
[% Data.TimeRange %]
<p class="FieldExplanation">
[% Translate("Show only communication logs created in specific time range.") | html %]
</p>
</div>
</div>
[% RenderBlockEnd("TimeRange") %]
<div class="WidgetSimple">
<div class="Header">
<h2><label for="FilterCommunications">[% Translate("Filter for Communications") | html %]</label></h2>
</div>
<div class="Content">
<input type="text" id="FilterCommunications" class="FilterBox" placeholder="[% Translate("Just start typing to filter...") | html %]" name="FilterCommunications" value="" title="[% Translate("Filter for communications") | html %]">
</div>
</div>
<div class="WidgetSimple">
<div class="Header">
<h2>[% Translate("Hint") | html %]</h2>
</div>
<div class="Content">
<div class="FieldExplanation">
<p>
[% Translate("In this screen you can see an overview about incoming and outgoing communications.") | html %]
</p>
</div>
<div class="FieldExplanation">
<p>
[% Translate("You can change the sort and order of the columns by clicking on the column header.") | html %]
[% Translate("If you click on the different entries, you will get redirected to a detailed screen about the message.") | html %]
</p>
</div>
</div>
</div>
</div>
<div class="ContentColumn">
[% RenderBlockStart("StatusOverview") %]
<div class="WidgetSimple">
<div class="Header">
<h2><label>[% Translate("Status for: %s", Data.TimeRange) | html %]</label></h2>
</div>
<div class="Content">
<div class="GridView">
<ul class="ItemListGrid WithIcons">
<li class="[% IF Data.AccountsStatus && Data.AccountsOverview.Failed %]Failed[% ELSIF Data.AccountsStatus && Data.AccountsOverview.Warning %]Warning[% ELSIF Data.AccountsStatus %]Successful[% END %]">
<a class="AsBlock" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Accounts;StartTime=[% Data.StartTime | uri %]">
<span class="Icons">
[% IF Data.AccountsStatus && Data.AccountsOverview.Failed %]
<i class="Icon fa fa-times"></i>
[% ELSIF Data.AccountsStatus && Data.AccountsOverview.Warning %]
<i class="Icon fa fa-exclamation"></i>
[% ELSIF Data.AccountsStatus %]
<i class="Icon fa fa-check"></i>
[% ELSE %]
<i class="Icon fa fa-question"></i>
[% END %]
</span>
<span class="Title">
[% IF Data.AccountsStatus && Data.AccountsOverview.Failed %]
[% Translate("Failing accounts") | html %]
[% ELSIF Data.AccountsStatus && Data.AccountsOverview.Warning %]
[% Translate("Some account problems") | html %]
[% ELSIF Data.AccountsStatus %]
[% Translate("No account problems") | html %]
[% ELSE %]
[% Translate("No account activity") | html %]
[% END %]
</span>
<span class="Description">
[% IF Data.AccountsStatus && Data.AccountsOverview.Failed %]
[% Translate("Number of accounts with problems: %s", Data.AccountsOverview.Failed + Data.AccountsOverview.Warning) | html %]
[% ELSIF Data.AccountsStatus && Data.AccountsOverview.Warning %]
[% Translate("Number of accounts with warnings: %s", Data.AccountsOverview.Warning) | html %]
[% END %]
</span>
</a>
</li>
<li class="[% IF Data.Failed %]Failed[% ELSIF Data.Successful || Data.Processing %]Successful[% END %]">
<a class="AsBlock" href="[% Env("Baselink") %]Action=[% Env("Action") %];Filter=[% Data.StatusFilter | uri %];StartTime=[% Data.StartTime | uri %];Expand=1;">
<span class="Icons">
[% IF Data.Failed %]
<i class="Icon fa fa-times"></i>
[% ELSIF Data.Successful || Data.Processing %]
<i class="Icon fa fa-check"></i>
[% ELSE %]
<i class="Icon fa fa-question"></i>
[% END %]
</span>
<span class="Title">
[% IF Data.Failed %]
[% Translate("Failing communications") | html %]
[% ELSIF Data.Successful || Data.Processing %]
[% Translate("No communication problems") | html %]
[% ELSE %]
[% Translate("No communication logs") | html %]
[% END %]
</span>
<span class="Description">
[% IF Data.Failed %]
[% Translate("Number of reported problems: %s", Data.Failed) | html %]
[% END %]
</span>
</a>
</li>
<li>
<a class="AsBlock" href="[% Env("Baselink") %]Action=[% Env("Action") %];Filter=Processing;StartTime=[% Data.StartTime | uri %];Expand=1;">
<span class="Icons">
<i class="fa fa-exchange"></i>
</span>
<span class="Title">
[% IF Data.Processing %]
[% Translate("Open communications") | html %]
[% ELSE %]
[% Translate("No active communications") | html %]
[% END %]
</span>
<span class="Description">
[% IF Data.Processing %]
[% Translate("Number of open communications: %s", Data.Processing) | html %]
[% END %]
</span>
</a>
</li>
<li>
<a class="AsBlock" href="[% Env("Baselink") %]Action=[% Env("Action") %];Filter=All;StartTime=[% Data.StartTime | uri %];Expand=1;">
<span class="Icons">
<i class="fa fa-clock-o"></i>
</span>
<span class="Title">
[% Translate("Average processing time") | html %]
</span>
<span class="Description">
[% Data.AverageString | html %]
</span>
</a>
</li>
</ul>
</div>
</div>
</div>
[% RenderBlockEnd("StatusOverview") %]
<div id="CommunicationList" class="WidgetSimple [% IF !Data.Expand %]Collapsed[% END %]">
<div class="Header">
<div class="WidgetAction Toggle">
<a href="#" title="[% Translate("Show or hide the content") | html %]"><i class="fa fa-caret-right"></i><i class="fa fa-caret-down"></i></a>
</div>
<h2>[% Translate("List of communications (%s)", Data.CommunicationCount) | html %]</h2>
[% RenderBlockStart("ContextSettings") %]
<div class="ActionMenu">
<div class="WidgetAction Settings">
<a href="#" id="ShowContextSettingsDialog" title="[% Translate("Settings") | html %]">
<i class="fa fa-cog"></i>
</a>
</div>
</div>
<div id="ContextSettingsDialogContainer" class="Hidden">
<form action="[% Env("CGIHandle") %]" method="post" id="ContextSettingsDialog">
<input type="hidden" name="Action" value="AgentPreferences"/>
<input type="hidden" name="Subaction" value="Update"/>
<input type="hidden" name="Group" value="[% Data.Group | html %]"/>
<input type="hidden" name="RedirectURL" value="[% Data.RequestedURL | html %]"/>
<fieldset class="TableLike">
<label for="[% Data.PreferencesKey | html %]">[% Translate("Entries per page") | html %]:</label>
<div class="Field">
[% Data.PageShownString %]
</div>
<div class="Clear"></div>
</fieldset>
</form>
</div>
[% RenderBlockEnd("ContextSettings") %]
</div>
<div class="Content Overview">
<div class="ControlRow">
[% RenderBlockStart("CommunicationNavBarFilter") %]
<ul class="Tabs">
[% RenderBlockStart("CommunicationNavBarFilterItem") %]
<li [% IF Data.Selected %] class="Active" [% END %]>
<a name="OverviewControl" href="[% Env("Baselink") %]Action=[% Env("Action") %];Filter=[% Data.Filter | uri %];SortBy=[% Data.SortBy %];OrderBy=[% Data.OrderBy %];StartHit=1;Expand=1;StartTime=[% Data.StartTime | uri %]">[% Translate(Data.Name) | html %] ([% Data.Count %])</a>
</li>
[% RenderBlockEnd("CommunicationNavBarFilterItem") %]
</ul>
[% RenderBlockEnd("CommunicationNavBarFilter") %]
</div>
<div class="CommunicationPagination">
<span class="Pagination">
[% RenderBlockStart("OverviewNavBarPageNavBar") %]
[% Data.ResultLong %]
[% Data.SiteNavBarLong %]
[% RenderBlockEnd("OverviewNavBarPageNavBar") %]
</span>
</div>
<table class="DataTable" id="CommunicationsTable">
<thead>
<tr>
[% RenderBlockStart("TableHeader") %]
<th class="DashboardHeader OverviewHeader [% Data.CSS | html %]" title="[% Translate(Data.Title) | html %]">
<a name="OverviewControl" href="[% Env("Baselink") %]Action=[% Env("Action") %];[% Data.HeaderLink %];SortBy=[% Data.SortByName | uri %];OrderBy=[% Data.OrderBy | uri %]" title="[% Translate(Data.Title) | html %]">
[% IF Data.HeaderName == 'Direction' %]
<i class="fa fa-exchange"></i>
[% ELSE %]
[% Translate(Data.HeaderName) | html %]
[% END %]
</a>
</th>
[% RenderBlockEnd("TableHeader") %]
</tr>
</thead>
<tbody>
[% RenderBlockStart("NoCommunicationsFound") %]
<tr>
<td colspan="7">
[% Translate("No communications found.") | html %]
</td>
</tr>
[% RenderBlockEnd("NoCommunicationsFound") %]
[% RenderBlockStart("CommunicationRow") %]
<tr class="MasterAction [% IF Data.Status == 'Failed' %]Error[% END %]">
<td class="Status Center" title="[% Translate(Data.Status) | html %]">
<a class="MasterActionLink" href="[% Env("Baselink") %]Action=AdminCommunicationLog;Subaction=Zoom;CommunicationID=[% Data.CommunicationID | uri %]" title="[% Data.Name | html %]">
[% IF Data.Status == 'Successful' %]
<i class="fa fa-check Confirmation" aria-hidden="true"></i>
[% ELSIF Data.Status == 'Failed' %]
<i class="fa fa-times Error" aria-hidden="true"></i>
[% ELSIF Data.Status == 'Warning' %]
<i class="fa fa-exclamation Warning" aria-hidden="true"></i>
[% ELSIF Data.Status == 'Processing' %]
<i class="fa fa-circle-o-notch fa-spin Warning" aria-hidden="true"></i>
[% END %]
</a>
</td>
<td class="Transport">
[% Data.Transport | html %]
</td>
<td class="Direction Center">
[% IF Data.Direction == 'Incoming' %]
<span class=" Direction Incoming" title="[% Data.Direction | html %]">
<i class="fa fa-long-arrow-left"></i>
</span>
[% ELSE %]
<span class=" Direction Outgoing" title="[% Data.Direction | html %]">
<i class="fa fa-long-arrow-right"></i>
</span>
[% END %]
</td>
<td class="Account">
[% Data.DisplayAccount | html %]
</td>
<td class="StartTime">
[% Data.StartTime | Localize("TimeLong") %]
</td>
<td class="EndTime">
[% IF Data.EndTime %]
[% Data.EndTime | Localize("TimeLong") %]
[% ELSE %]
-
[% END %]
</td>
<td class="Duration">
[% IF Data.Duration.defined %]
[% Translate("%s s", Data.Duration) | html %]
[% ELSE %]
-
[% END %]
</td>
</tr>
[% RenderBlockEnd("CommunicationRow") %]
<tr class="FilterMessage Hidden">
<td colspan="7">[% Translate("No matches found.") | html %]</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="Clear"></div>
</div>
</div>
|