Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sector Nord AG: Bugfix: Hide empty dynamic info/dynamic field box #550

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@
[% END %]

[% RenderBlockStart("TicketTypeDynamicFields") %]
[% IF !TicketFrontendConfig.DynamicField.empty %]
<div class="dynamic-field-col card-item col-wide-100 col-desktop-100 col-tablet-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("TicketTypeDynamicField") %]
Expand All @@ -289,7 +288,6 @@
</div>
[% RenderBlockEnd("TicketTypeDynamicField") %]
</div>
[% END %]
[% RenderBlockEnd("TicketTypeDynamicFields") %]

# Example of how to use fixed dynamic field blocks for customizations. Block below is for fields of type 'Ticket'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</div>
</div>
</div>
[% IF !TicketFrontendConfig.DynamicField.empty %]
[% IF Data.DynamicFieldHTML && Data.DynamicFieldHTML.list.size > 0 %]
<div class="card-item col-desktop-100 col-wide-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("DynamicField") %]
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Output/HTML/Templates/Standard/AgentTicketEmail.tt
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
</div>
</div>
</div>
[% IF !Data.DynamicFieldHTML.empty %]
[% IF Data.DynamicFieldHTML && Data.DynamicFieldHTML.list.size > 0 %]
<div class="dynamic-field-col card-item col-wide-66 col-desktop-100 col-tablet-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("DynamicField") %]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
</div>
</div>

[% IF !TicketFrontendConfig.DynamicField.empty %]
[% IF Data.DynamicFieldHTML && Data.DynamicFieldHTML.list.size > 0 %]
<div class="dynamic-field-col card-item col-wide-100 col-desktop-100 col-tablet-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("DynamicField") %]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</div>
</div>
</div>
[% IF !TicketFrontendConfig.DynamicField.empty %]
[% IF Data.DynamicFieldHTML && Data.DynamicFieldHTML.list.size > 0 %]
<div class="card-item col-desktop-100 col-wide-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("DynamicField") %]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@
[% END %]

[% RenderBlockStart("TicketTypeDynamicFields") %]
[% IF !TicketFrontendConfig.DynamicField.empty %]
<div class="dynamic-field-col card-item col-wide-100 col-desktop-100 col-tablet-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("TicketTypeDynamicField") %]
Expand All @@ -286,7 +285,6 @@
</div>
[% RenderBlockEnd("TicketTypeDynamicField") %]
</div>
[% END %]
[% RenderBlockEnd("TicketTypeDynamicFields") %]


Expand Down
2 changes: 1 addition & 1 deletion Kernel/Output/HTML/Templates/Standard/AgentTicketPhone.tt
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
</div>
</div>

[% IF !TicketFrontendConfig.DynamicField.empty %]
[% IF Data.DynamicFieldHTML && Data.DynamicFieldHTML.list.size > 0 %]
<div class="dynamic-field-col card-item col-wide-66 col-desktop-100 col-tablet-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("DynamicField") %]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</div>
[% END %]

[% IF !TicketFrontendConfig.DynamicField.empty %]
[% IF Data.DynamicFieldHTML && Data.DynamicFieldHTML.list.size > 0 %]
<div class="dynamic-field-col card-item col-wide-100 col-desktop-100 col-tablet-100">
<h2 class="card-title">[% Translate("Dynamic Info") | html %]</h2>
[% RenderBlockStart("DynamicField") %]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
</div>
</div>
[% END %]
[% IF !TicketFrontendConfig.DynamicField.empty %]
[% IF Data.DynamicFieldHTML && Data.DynamicFieldHTML.list.size > 0 %]
<div class="card-item col-wide-100 col-desktop-100 col-tablet-100">
<h2 class="card-title">[% Translate("Dymanic Info") | html %]</h2>
<div class="active-inner-cols">
Expand Down
Loading