Files
scripts/Perl OTRS/Kernel/Output/HTML/Templates/Standard/CustomerFAQSearchResultShort.tt
2024-10-14 00:08:40 +02:00

121 lines
6.9 KiB
Plaintext

# --
# 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.
# --
<div id="MainBox" class="TicketView ARIARoleMain SearchResults [% Config("Ticket::Frontend::CustomerTicketOverviewSortable") %] Sortable">
<div class="ActionRow">
<ul class="Tabs">
<li>
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=LoadProfile;[% Data.Link | html %]">
&larr; [% Translate("Change search options") | html %]
</a>
</li>
</ul>
[% RenderBlockStart("Pagination") %]
<div class="Tabs Pagination">
<strong>[% Data.Result | html %]</strong> [% Translate("of") | html %] <strong>[% Data.TotalHits | html %]</strong> - [% Translate("Page") | html %]: [% Data.SiteNavBar %]
</div>
[% RenderBlockEnd("Pagination") %]
<div class="Clear"></div>
<div class="SearchTerms">
<h2>[% Translate("Search Results for") | html %]:</h2>
[% RenderBlockStart("SearchTerms") %]
<span>
[% Data.Attribute | html %]: [% Data.Value | html %]
# hide remove link, functionality is not yet implemented
# <a title="[% Translate("Remove this Search Term.") | html %]" href="[% Data.SearchValue %]">&times;</a>
</span>
[% RenderBlockEnd("SearchTerms") %]
</div>
</div>
<div class="Content">
<table class="Overview">
<thead>
<tr>
<th class="FAQNumber [% Data.FAQIDSort %]">
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Search;SortBy=FAQID;Order=[% Data.Order | uri %];Profile=[% Data.Profile | uri %];TakeLastSearch=1;Filter=[% Data.Filter | uri %];Limit=[% Data.Limit | uri %];Type=[% Data.Type | uri %]">
[% Config("FAQ::FAQHook") %]
</a>
</th>
<th class="Title [% Data.TitleSort %]">
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Search;SortBy=Title;Order=[% Data.Order | uri %];Profile=[% Data.Profile | uri %];TakeLastSearch=1;Filter=[% Data.Filter | uri %];Limit=[% Data.Limit | uri %];Type=[% Data.Type | uri %]">
[% Translate("Title") | html %]
</a>
</th>
<th class="Category [% Data.CategorySort %]">
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Search;SortBy=Category;Order=[% Data.Order | uri %];Profile=[% Data.Profile | uri %];TakeLastSearch=1;Filter=[% Data.Filter | uri %];Limit=[% Data.Limit | uri %];Type=[% Data.Type | uri %]">
[% Translate("Category") | html %]
</a>
</th>
[% RenderBlockStart("HeaderLanguage") %]
<th class="Language [% Data.LanguageSort %]">
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Search;SortBy=Language;Order=[% Data.Order | uri %];Profile=[% Data.Profile | uri %];TakeLastSearch=1;Filter=[% Data.Filter | uri %];Limit=[% Data.Limit | uri %];Type=[% Data.Type | uri %]">
[% Translate("Language") | html %]
</a>
</th>
[% RenderBlockEnd("HeaderLanguage") %]
<th class="Changed [% Data.ChangedSort %]">
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Search;SortBy=Changed;Order=[% Data.Order | uri %];Profile=[% Data.Profile | uri %];TakeLastSearch=1;Filter=[% Data.Filter | uri %];Limit=[% Data.Limit | uri %];Type=[% Data.Type | uri %]">
[% Translate("Changed") | html %]
</a>
</th>
[% RenderBlockStart("HeaderDynamicField") %]
<th class="DynamicField [% Data.CSS %]">
[% RenderBlockStart("HeaderDynamicFieldSortable") %]
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=Search;SortBy=DynamicField_[% Data.DynamicFieldName | uri %];Order=[% Data.Order | uri %];Filter=[% Data.Filter | uri %];Limit=[% Data.Limit | uri %];ShowClosedTickets=[% Data.ShowClosed | uri %];Type=[% Data.Type | uri %];Profile=[% Data.Profile | uri %];TakeLastSearch=1">
[% Translate(Data.Label) | html %]
</a>
[% RenderBlockEnd("HeaderDynamicFieldSortable") %]
[% RenderBlockStart("HeaderDynamicFieldNotSortable") %]
<span>[% Translate(Data.Label) | html %]</span>
[% RenderBlockEnd("HeaderDynamicFieldNotSortable") %]
</th>
[% RenderBlockEnd("HeaderDynamicField") %]
</tr>
</thead>
<tbody>
[% RenderBlockStart("NoDataFoundMsg") %]
<tr id="EmptyMessage">
<td colspan="6">
<a href="#">[% Translate("No FAQ data found.") | html %]</a>
</td>
</tr>
[% RenderBlockEnd("NoDataFoundMsg") %]
[% RenderBlockStart("Record") %]
<tr class="MasterAction" title="[% Data.Number | html %]">
<td class="FAQNumber"><a href="[% Env("Baselink") %]Action=CustomerFAQZoom;ItemID=[% Data.FAQID | uri %]" class="MasterActionLink">[% Data.Number | html %]</a></td>
<td class="Title" title="[% Data.Ttitle %]">[% Data.CleanTitle| html %]</td>
<td class="Category">[% Data.CategoryName | truncate(60) | html %]</td>
[% RenderBlockStart("RecordLanguage") %]
<td class="Language">[% Data.Language | truncate(5) | html %]</td>
[% RenderBlockEnd("RecordLanguage") %]
<td class="Changed">[% Data.Changed | Localize("TimeShort") %]</td>
[% RenderBlockStart("RecordDynamicField") %]
<td class="DynamicField" title="[% Data.Title | html %]">[% Data.Value %]</td>
[% RenderBlockEnd("RecordDynamicField") %]
</tr>
[% RenderBlockEnd("Record") %]
</tbody>
</table>
</div>
[% RenderBlockStart("BottomSubNavigation") %]
<div id="BottomActionRow" class="ActionRow BigButtons">
<ul class="Tabs">
<li>
<a href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=LoadProfile;[% Data.Link | uri %]">
&larr; [% Translate("Change search options") | html %]
</a>
</li>
</ul>
<div class="Tabs Pagination">
<strong>[% Data.Result | html %]</strong> [% Translate("of") | html %] <strong>[% Data.TotalHits | html %]</strong> - [% Translate("Page") | html %]: [% Data.SiteNavBar %]
</div>
<div class="Clear"></div>
</div>
[% RenderBlockEnd("BottomSubNavigation") %]
</div>