Skip to content

Commit

Permalink
EZP-31977: Removed close button form COTF create template (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti authored Oct 5, 2020
1 parent 26b6b58 commit 9a7d1ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{% block close_button %}
<a
class="ez-content-edit-container__close"
href="{{ path('_ez_content_view', { 'contentId': parent_location.contentId, 'locationId': parent_location.id}) }}"
title="{{ 'tooltip.exit_label'|trans({}, 'content')|desc('Exit') }}"
>
<svg class="ez-icon ez-icon--small-medium ez-icon--primary">
<use xlink:href="/bundles/ezplatformadminui/img/ez-icons.svg#discard"></use>
</svg>
</a>
{% if without_close_button is not defined or without_close_button != true %}
<a
class="ez-content-edit-container__close"
href="{{ path('_ez_content_view', { 'contentId': parent_location.contentId, 'locationId': parent_location.id}) }}"
title="{{ 'tooltip.exit_label'|trans({}, 'content')|desc('Exit') }}"
>
<svg class="ez-icon ez-icon--small-medium ez-icon--primary">
<use xlink:href="/bundles/ezplatformadminui/img/ez-icons.svg#discard"></use>
</svg>
</a>
{% endif %}
{% endblock %}

{% if title is defined %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
class: 'ez-content-edit-page-title--increased-left-margin',
action_name: 'creating'|trans|desc('Creating'),
title: 'new_content_item'|trans({'%contentType%': content_type.name})|desc('New %contentType%'),
description: content_type.description
description: content_type.description,
without_close_button: true
} %}
{% endblock %}

Expand Down

0 comments on commit 9a7d1ec

Please # to comment.