From 60110b03bbffb5348c66fb10b8026fc0f13cfd2e Mon Sep 17 00:00:00 2001 From: Ivo Valchev Date: Wed, 17 Jun 2020 13:29:18 +0200 Subject: [PATCH] Hide one of two groups of record action buttons on mobile --- templates/content/_buttons.html.twig | 3 +-- templates/content/edit.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/content/_buttons.html.twig b/templates/content/_buttons.html.twig index 8f69ca08..3b4e9a91 100644 --- a/templates/content/_buttons.html.twig +++ b/templates/content/_buttons.html.twig @@ -1,7 +1,6 @@ {% import '@bolt/_macro/_macro.html.twig' as macro %} -
- +
{{ macro.button('action.save', 'fa-save', 'success', {'type': 'submit', 'form': 'editcontent', 'data-patience': 'virtue'}) }} {% if record.id %} diff --git a/templates/content/edit.html.twig b/templates/content/edit.html.twig index e44e23b2..191e8299 100644 --- a/templates/content/edit.html.twig +++ b/templates/content/edit.html.twig @@ -57,7 +57,7 @@

- {% include '@bolt/content/_buttons.html.twig' %} + {% include '@bolt/content/_buttons.html.twig' with {'hide_on_mobile': true} %} @@ -73,7 +73,7 @@ {{ macro.icon('star') }} {{ 'title.primary_actions'|trans }}
- {% include '@bolt/content/_buttons.html.twig' with {'status': true} %} + {% include '@bolt/content/_buttons.html.twig' with {'status': true} %}