Merge pull request #1501 from bolt/bugfix/hide-record-buttons-on-mobile

Hide one of two groups of record action buttons on mobile
This commit is contained in:
Bob den Otter
2020-06-17 15:16:04 +02:00
committed by GitHub
2 changed files with 3 additions and 4 deletions

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 %}

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>