Skip to content

Commit

Permalink
Merge branch 'release/1.0.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Jun 3, 2021
2 parents ee99992 + b34aa13 commit 03b2594
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.0.13
## 06/03/2021

1. [](#bugfix)
* Fixed expert mode for Flex Pages

# v1.0.12
## 06/02/2021

Expand Down
10 changes: 5 additions & 5 deletions admin/templates/flex-objects/types/pages/edit.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% extends 'flex-objects/types/default/edit.html.twig' %}

{# Avoid defining form and object twice: object should always come from the form! #}
{% if form is not defined %}
{% set form = object.form(user.authorize('admin.super') and admin.session.expert != '0' ? 'raw') %}
{% set form = object.form %}
{% set expert = user.authorize('admin.super') and admin.session.expert != '0' %}
{% if expert or form is not defined %}
{% set form = object.form(expert ? 'raw' : '') %}
{% set object = form.object %}
{% endif %}

Expand Down Expand Up @@ -170,9 +170,9 @@
{% set expertText = macro.spanToggle(expertText, maxLen) %}

<div class="switch-toggle switch-grav">
<input type="radio" value="normal" data-leave-url="{{ route.withGravParam('mode', 'normal').toString(true) }}" id="normal" name="mode-switch" class="highlight" {% if admin.session.expert == '0' %} checked="checked"{% endif %}>
<input type="radio" value="normal" data-leave-url="{{ route.withGravParam('mode', 'normal').toString(true) }}" id="normal" name="mode-switch" class="highlight" {% if expert == '0' %} checked="checked"{% endif %}>
<label for="normal">{{ normalText }}</label>
<input type="radio" value="expert" data-leave-url="{{ route.withGravParam('mode', 'expert').toString(true) }}" id="expert" name="mode-switch" class="highlight" {% if admin.session.expert == '1' %} checked="checked"{% endif %}>
<input type="radio" value="expert" data-leave-url="{{ route.withGravParam('mode', 'expert').toString(true) }}" id="expert" name="mode-switch" class="highlight" {% if expert == '1' %} checked="checked"{% endif %}>
<label for="expert">{{ expertText }}</label>
<a></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Flex Objects
slug: flex-objects
type: plugin
version: 1.0.12
version: 1.0.13
description: Flex Objects plugin allows you to manage Flex Objects in Grav Admin.
icon: list-alt
author:
Expand Down

0 comments on commit 03b2594

Please sign in to comment.