mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-06 23:53:07 +01:00
added no sort option
This commit is contained in:
@@ -7,6 +7,8 @@ form:
|
||||
type: list
|
||||
label: Media Types
|
||||
key: extension
|
||||
sort: false
|
||||
|
||||
fields:
|
||||
.extension:
|
||||
type: key
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{% set name = scope ~ field.name %}
|
||||
{% set btnLabel = field.btnLabel is defined ? field.btnLabel : "PLUGIN_ADMIN.ADD_ITEM" %}
|
||||
|
||||
|
||||
<div class="form-field grid pure-g">
|
||||
<div class="form-label block size-1-4 pure-u-1-4">
|
||||
<label>
|
||||
@@ -15,7 +16,10 @@
|
||||
</div>
|
||||
<div class="form-data block size-3-4 pure-u-3-4">
|
||||
<div class="form-list-wrapper {{ field.size }}" data-type="collection">
|
||||
<ul data-collection-holder="{{ name }}">
|
||||
<ul data-collection-holder="{{ name }}"
|
||||
{% if field.sort is same as(false) %}
|
||||
data-collection-nosort
|
||||
{% endif %}>
|
||||
{% if field.fields %}
|
||||
{% for key, val in value %}
|
||||
{% set itemName = name ? name ~ '.' ~ key : key %}
|
||||
@@ -47,8 +51,10 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="item-actions">
|
||||
{% if field.sort is not same as(false) %}
|
||||
<i class="fa fa-bars"></i>
|
||||
<br />
|
||||
{% endif %}
|
||||
<i class="fa fa-trash-o" data-action="delete"></i>
|
||||
</div>
|
||||
</li>
|
||||
@@ -88,8 +94,10 @@
|
||||
{%- endif -%}
|
||||
{%- endfor %}
|
||||
<div class="item-actions">
|
||||
{% if field.sort is not same as(false) %}
|
||||
<i class="fa fa-bars"></i>
|
||||
<br />
|
||||
{% endif %}
|
||||
<i class="fa fa-trash-o" data-action="delete"></i>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user