Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
modify test and layout
  • Loading branch information
Herafia committed Nov 12, 2025
commit 77d031434a09f0a6aedac1fee1594a193c5da88b
8 changes: 8 additions & 0 deletions templates/components/itilobject/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

<div id="itil-object-container" class="mt-n1 {{ collapsed_cls }} {{ expanded_cls }}">

<!-- Main form opening for new item -->
{% if item.isNewItem() and not template_preview %}
{{ include('components/itilobject/mainform_open.html.twig') }}
{% endif %}
Expand Down Expand Up @@ -85,12 +86,19 @@
{% endif %}
</div>

<!-- Main form closing for new item -->
{% if item.isNewItem() and not template_preview %}
{{ include('components/itilobject/mainform_close.html.twig') }}
{% endif %}

{% if not template_preview %}
{% if not item.isNewItem() %}
<!-- Main form opening for action buttons display by footer -->
{{ include('components/itilobject/mainform_open.html.twig') }}
{% endif %}
{{ include('components/itilobject/footer.html.twig') }}
{% if not item.isNewItem() %}
<!-- Main form closing for action button display by footer -->
{{ include('components/itilobject/mainform_close.html.twig') }}
{% endif %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/TicketTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,7 @@ private function checkFormOutput(
// Check that the itil form exist
$matches = iterator_to_array($crawler->filter("#itil-form"));
$this->assertCount(
($itil_form === true ? 1 : 0),
($itil_form === true ? 2 : 1),
$matches,
($itil_form === true ? 'ITIL form' : 'ITIL form present') . ' ' . $caller
);
Expand Down
Loading