Skip to content

Commit

Permalink
Issue #1060: Start to separate customer and agent templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Nov 8, 2021
1 parent 3c315f6 commit 6a07283
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Kernel/Modules/CustomerTicketProcess.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ sub _RenderDynamicField {

return {
Success => 1,
HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/DynamicField' ),
HTML => $LayoutObject->Output( TemplateFile => 'ProcessManagement/CustomerDynamicField' ),
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# --
# OTOBO is a web-based ticketing system for service organisations.
# --
# Copyright (C) 2001-2020 OTRS AG, https://otrs.com/
# Copyright (C) 2019-2021 Rother OSS GmbH, https://otobo.de/
# --
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# --

[% RenderBlockStart("rw:DynamicField") %]
<div class="Row Row_DynamicField_[% Data.Name %]">
<div class="Field">
[% Data.Content %]
</div>
[% RenderBlockStart("rw:DynamicField:DescriptionLong") %]
<div class="Tooltip">
<i class="ooofo ooofo-help"></i>
<p>[% Translate(Data.DescriptionLong) | html | html_line_break %]</p>
</div>
[% RenderBlockEnd("rw:DynamicField:DescriptionLong") %]
[% Data.Label %]
[% RenderBlockStart("rw:DynamicField:DescriptionShort") %]
<p class="FieldExplanation ooo12g">[% Translate(Data.DescriptionShort) | html %]</p>
[% RenderBlockEnd("rw:DynamicField:DescriptionShort") %]
<div class="Clear"></div>
</div>
[% RenderBlockEnd("rw:DynamicField") %]
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@

[% RenderBlockStart("rw:DynamicField") %]
<div class="Row Row_DynamicField_[% Data.Name %]">
<div class="Field">
[% Data.Content %]
</div>
[% RenderBlockStart("rw:DynamicField:DescriptionLong") %]
<div class="Tooltip">
<i class="ooofo ooofo-help"></i>
<p>[% Translate(Data.DescriptionLong) | html | html_line_break %]</p>
</div>
<span class="FieldHelpContainer">
<i class="fa fa-question-circle FieldHelpTrigger"></i>
<span>[% Translate(Data.DescriptionLong) | html %]</span>
</span>
[% RenderBlockEnd("rw:DynamicField:DescriptionLong") %]
[% Data.Label %]
<div class="Field">
[% Data.Content %]
[% RenderBlockStart("rw:DynamicField:DescriptionShort") %]
<p class="FieldExplanation ooo12g">[% Translate(Data.DescriptionShort) | html %]</p>
<div class="FieldExplanation">[% Translate(Data.DescriptionShort) | html %]</div>
[% RenderBlockEnd("rw:DynamicField:DescriptionShort") %]
</div>
<div class="Clear"></div>
</div>
[% RenderBlockEnd("rw:DynamicField") %]

0 comments on commit 6a07283

Please sign in to comment.