Przeglądaj źródła

Merge branch 'develop'

tags/0.1
Fab 3 lat temu
rodzic
commit
e8a037fadc
2 zmienionych plików z 6 dodań i 2 usunięć
  1. +2
    -0
      Field/GalleryManagerField.php
  2. +4
    -2
      Resources/views/adminlte/crud/form_theme.html.twig

+ 2
- 0
Field/GalleryManagerField.php Wyświetl plik

@@ -34,6 +34,8 @@ class GalleryManagerField implements FieldInterface
->setFormTypeOption('entry_type', FileManagerType::class)
->setFormTypeOption('attr', array('class'=> 'field-collection-group'))
->setFormTypeOption('row_attr', array('data-sortable'=> true))
->setCustomOption('managerDir', 'image')
->setCustomOption('type', 'image')
->hideOnIndex();

//->setEntryType(FileManagerType::class);

+ 4
- 2
Resources/views/adminlte/crud/form_theme.html.twig Wyświetl plik

@@ -147,11 +147,13 @@


{% block file_manager_widget %}

{% if form.vars.ea_crud_form.ea_field is not null %}

{% set managerDir = form.vars.ea_crud_form.ea_field.customOptions.get('managerDir') %}
{% set type = form.vars.ea_crud_form.ea_field.customOptions.get('type') %}
{% else %}
{% set managerDir = form.parent.vars.ea_crud_form.ea_field.customOptions.get('managerDir') %}
{% set type = form.parent.vars.ea_crud_form.ea_field.customOptions.get('type') %}
{% endif %}

<div class="lc-filemanager row">
{% if type == 'image' %}

Ładowanie…
Anuluj
Zapisz