1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 10:51:21 +02:00

feat(admin-plugin): update base layout #211

This commit is contained in:
Awilum
2020-02-05 16:21:41 +03:00
parent e2c00c8e67
commit 9df584971a

View File

@@ -182,15 +182,13 @@
onclick="event.preventDefault();
document.getElementById('{{ button.id }}').submit();"
class="js-save-form-submit navigation-top-secondary__item {% if link.active %}navigation-top-secondary__item--active{% endif %}">
<i class="{{ button.icon }} mr-1 text-xs"></i>
{{ button.title }}
</a>
<form id="{{ button.id }}" action="{{ button.link }}" method="POST" style="display: none;">
{{ csrf() }}
</form>
{% else %}
<a href="{{ button.link }}" {% if button.target %} target="{{ button.target }}" {% endif %} class="navigation-top-secondary__item {% if link.active %}navigation-top-secondary__item--active{% endif %}">
<i class="{{ button.icon }} mr-1"></i>
<a href="{{ button.link }}" {% if button.onclick %} onclick="{{ button.onclick }}" {% endif %} class="navigation-top-secondary__item {% if link.active %}navigation-top-secondary__item--active{% endif %}">
{{ button.title|raw }}</a>
{% endif %}
{% endfor %}