Browse Source

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/SovBundle into develop

tags/0.1
Fab 3 years ago
parent
commit
f599dea5fa
2 changed files with 18 additions and 17 deletions
  1. +1
    -2
      Resources/config/services.yaml
  2. +17
    -15
      Resources/views/adminlte/crud/form_theme.html.twig

+ 1
- 2
Resources/config/services.yaml View File


services: services:
_defaults: _defaults:
autowire: true # Automatically injects dependencies in your services. autowire: true # Automatically injects dependencies in your services.


Lc\SovBundle\Form\Type\Crud\CrudFormType: Lc\SovBundle\Form\Type\Crud\CrudFormType:
decorates: EasyCorp\Bundle\EasyAdminBundle\Form\Type\CrudFormType decorates: EasyCorp\Bundle\EasyAdminBundle\Form\Type\CrudFormType
arguments: ['@form.type_guesser.doctrine', '@.inner']
arguments: [ '@form.type_guesser.doctrine', '@.inner' ]


Lc\SovBundle\Doctrine\EntityManager: Lc\SovBundle\Doctrine\EntityManager:
public: false public: false

+ 17
- 15
Resources/views/adminlte/crud/form_theme.html.twig View File



{{ parent() }} {{ parent() }}


<div class="card card-outline">
<div class="card-header p-0 border-bottom-0">
<ul id="nav-params" class="nav nav-pills" role="navigation">
{% for panel_name, panel_config in ea_crud_form.form_panels|filter(panel_config => not panel_config.form_tab or panel_config.form_tab == tab_name) %}
{% set panel_has_header = panel_config.label|default(false) or panel_config.icon|default(false) %}
<li class="nav-item">
<a href="#panel-{{ panel_name }} " class="nav-link {{ panel_name == 1 ? 'active' }}" data-toggle="tab" role="tab"
aria-controls="panel-{{ panel_name }}">
{{ panel_config.label|raw }}
<i class="fa fa-exclamation-circle invalid-form"></i>
</a>
</li>
{% endfor %}
</ul>
{% if ea_crud_form.form_panels is defined %}
<div class="card card-outline">
<div class="card-header p-0 border-bottom-0">
<ul id="nav-params" class="nav nav-pills" role="navigation">
{% for panel_name, panel_config in ea_crud_form.form_panels|filter(panel_config => not panel_config.form_tab or panel_config.form_tab == tab_name) %}
{% set panel_has_header = panel_config.label|default(false) or panel_config.icon|default(false) %}
<li class="nav-item">
<a href="#panel-{{ panel_name }} " class="nav-link {{ panel_name == 1 ? 'active' }}" data-toggle="tab" role="tab"
aria-controls="panel-{{ panel_name }}">
{{ panel_config.label|raw }}
<i class="fa fa-exclamation-circle invalid-form"></i>
</a>
</li>
{% endfor %}
</ul>
</div>
</div> </div>
</div>
{% endif %}
{% endblock form_start %} {% endblock form_start %}


{% block ea_crud_widget_panels %} {% block ea_crud_widget_panels %}

Loading…
Cancel
Save