Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Matias Griese
2021-02-08 17:27:19 +02:00
3 changed files with 13 additions and 5 deletions

View File

@@ -1,8 +1,10 @@
# v1.10.4 # v1.10.4
## dd/mm/2021 ## dd/mm/2021
1. [](#improved)
* List field: added new `placement` property to decide wether to add new items at the top, bottom or based on the *position* of the clicked button [#2055](https://github.com/getgrav/grav-plugin-admin/pull/2055)
1. [](#bugfix) 1. [](#bugfix)
* Fixed case-sensitive `accept` in `filepicker` field * Fixed case-sensitive `accept` in `filepicker` field
# v1.10.3 # v1.10.3
## 02/01/2021 ## 02/01/2021

View File

@@ -643,6 +643,8 @@ PLUGIN_ADMIN:
REDIS_PORT: "Redis port" REDIS_PORT: "Redis port"
REDIS_PORT_HELP: "The Redis server port" REDIS_PORT_HELP: "The Redis server port"
REDIS_PASSWORD: "Redis password/secret" REDIS_PASSWORD: "Redis password/secret"
REDIS_DATABASE: "Redis Database ID"
REDIS_DATABASE_HELP: "The Redis instance database ID"
ALL: "All" ALL: "All"
FROM: "from" FROM: "from"
TO: "to" TO: "to"

View File

@@ -56,8 +56,10 @@
<button class="button{{ not value|length ? ' hidden' : '' }}" type="button" data-action="sort" data-action-sort="{{ field.sortby }}" data-action-sort-dir="{{ field.sortby_dir|default('asc') }}" <button class="button{{ not value|length ? ' hidden' : '' }}" type="button" data-action="sort" data-action-sort="{{ field.sortby }}" data-action-sort-dir="{{ field.sortby_dir|default('asc') }}"
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}><i class="fa fa-sort-amount-{{ field.sortby_dir|default('asc') }}"></i> {{ btnSortLabel|e|tu }} '{{ field.sortby }}'</button> {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}><i class="fa fa-sort-amount-{{ field.sortby_dir|default('asc') }}"></i> {{ btnSortLabel|e|tu }} '{{ field.sortby }}'</button>
{% endif %} {% endif %}
<button class="button" type="button" data-action="add" data-action-add="bottom" <button class="button" type="button" data-action="add"
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}><i class="fa fa-plus"></i> {{ btnLabel|e|tu }}</button> data-action-add="{{ field.placement is same as('position') ? 'top' : field.placement|default('bottom') }}"
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
><i class="fa fa-plus"></i> {{ btnLabel|e|tu }}</button>
</div> </div>
{% endif %} {% endif %}
<ul {% if field.classes is defined %}class="{{ field.classes }}"{% endif %} data-collection-holder="{{ name }}" <ul {% if field.classes is defined %}class="{{ field.classes }}"{% endif %} data-collection-holder="{{ name }}"
@@ -131,8 +133,10 @@
<button class="button{{ not value|length ? ' hidden' : '' }}" type="button" data-action="sort" data-action-sort="{{ field.sortby }}" data-action-sort-dir="{{ field.sortby_dir|default('asc') }}" <button class="button{{ not value|length ? ' hidden' : '' }}" type="button" data-action="sort" data-action-sort="{{ field.sortby }}" data-action-sort-dir="{{ field.sortby_dir|default('asc') }}"
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}><i class="fa fa-sort-amount-{{ field.sortby_dir|default('asc') }}"></i> {{ btnSortLabel|e|tu }} '{{ field.sortby }}'</button> {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}><i class="fa fa-sort-amount-{{ field.sortby_dir|default('asc') }}"></i> {{ btnSortLabel|e|tu }} '{{ field.sortby }}'</button>
{% endif %} {% endif %}
<button class="button" type="button" data-action="add" data-action-add="bottom" <button class="button" type="button" data-action="add"
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}><i class="fa fa-plus"></i> {{ btnLabel|e|tu }}</button> data-action-add="{{ field.placement is same as('position') ? 'bottom' : field.placement|default('bottom') }}"
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
><i class="fa fa-plus"></i> {{ btnLabel|e|tu }}</button>
</div> </div>
{% endif %} {% endif %}