Hide one of two groups of record action buttons on mobile

This commit is contained in:
Ivo Valchev
2020-06-17 13:29:18 +02:00
parent b888b739b0
commit 60110b03bb
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
{% import '@bolt/_macro/_macro.html.twig' as macro %}
<div class="record-actions">
<div class="record-actions {% if hide_on_mobile|default(false) %}d-lg-none d-xl-block{% endif %}">
{{ macro.button('action.save', 'fa-save', 'success', {'type': 'submit', 'form': 'editcontent', 'data-patience': 'virtue'}) }}
{% if record.id %}
+2 -2
View File
@@ -57,7 +57,7 @@
</div>
<hr>
{% include '@bolt/content/_buttons.html.twig' %}
{% include '@bolt/content/_buttons.html.twig' with {'hide_on_mobile': true} %}
</form>
@@ -73,7 +73,7 @@
{{ macro.icon('star') }} {{ 'title.primary_actions'|trans }}
</div>
<div class="card-body">
{% include '@bolt/content/_buttons.html.twig' with {'status': true} %}
{% include '@bolt/content/_buttons.html.twig' with {'status': true} %}
</div>
</div>