mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-17 10:40:55 +01:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# 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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user