1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 05:43:10 +02:00

feat(admin-plugin): add ability to set individual icons #250

- for entries and entries collections
- for entries fieldsets
This commit is contained in:
Awilum
2019-10-10 18:01:51 +03:00
parent 72f96b2293
commit dca8ed273e
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
<tbody>
{% for entry in entries_list %}
<tr>
<td style="width: 50px; text-align:center;">
<td style="width: 50px; padding-right: 10px; text-align:center;">
{% if entry.fieldset %}
{% set fieldset_path = PATH_FIELDSETS ~ '/' ~ entry.fieldset ~ '.yaml' %}
{% if filesystem_has(fieldset_path) %}

View File

@@ -12,7 +12,7 @@
<tbody>
{% for id, title in fieldsets_list %}
<tr>
<td style="width: 50px; text-align:center;">
<td style="width: 50px; padding-right: 10px; text-align:center;">
{% set fieldset_path = PATH_FIELDSETS ~ '/' ~ id ~ '.yaml' %}
{% if filesystem_has(fieldset_path) %}
{% set fieldset = yaml_decode(filesystem_read(fieldset_path)) %}