Skip to content

Commit

Permalink
[EZP-32397] Removed logic from ezdate.html.twig (#1729)
Browse files Browse the repository at this point in the history
* Added condition for content.translate in edit/ezdate.html.twig

* Changes after CR#1

* Dropped merging attr

* Revert removing attrbiutes mergin from the view
  • Loading branch information
mateuszbieniek authored Apr 14, 2021
1 parent 9e79a93 commit 1bfa43c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</svg>
</button>
</div>
{% set action_type = app.request.attributes.get('_route') is same as('ez_content_draft_edit') ? 'edit' : 'create' %}
{% set action_type = isEditView ? 'edit' : 'create' %}
{% set attr = attr|merge({'class': 'ez-data-source__input', 'hidden': 'hidden', 'data-action-type': action_type}) %}
{{ block('form_widget') }}
{% endblock %}

0 comments on commit 1bfa43c

Please sign in to comment.