Skip to content

Commit

Permalink
Merge pull request #1501 from bolt/bugfix/hide-record-buttons-on-mobile
Browse files Browse the repository at this point in the history
Hide one of two groups of record action buttons on mobile
  • Loading branch information
bobdenotter authored Jun 17, 2020
2 parents b888b73 + 60110b0 commit 4de73de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions templates/content/_buttons.html.twig
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions templates/content/edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</div>

<hr>
{% include '@bolt/content/_buttons.html.twig' %}
{% include '@bolt/content/_buttons.html.twig' with {'hide_on_mobile': true} %}

</form>

Expand All @@ -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>

Expand Down

0 comments on commit 4de73de

Please sign in to comment.