mirror of
https://github.com/jbcr/core.git
synced 2026-03-31 21:32:09 +02:00
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:
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user