Quellcode durchsuchen

[Backend] Produits : tableau d'édition avancée

feature/tableau_edition_avancee
Guillaume vor 4 Jahren
Ursprung
Commit
685b21ae3d
1 geänderte Dateien mit 6 neuen und 11 gelöschten Zeilen
  1. +6
    -11
      ShopBundle/Resources/views/backend/default/list-fields/field_toggle.html.twig

+ 6
- 11
ShopBundle/Resources/views/backend/default/list-fields/field_toggle.html.twig Datei anzeigen

@@ -1,14 +1,9 @@
{% trans_default_domain 'EasyAdminBundle' %}

<div class="custom-control custom-switch custom-switch-on-success custom-switch-off-danger" data-propertyname="{{ field_options.property }}">
<input type="checkbox" class="custom-control-input" id="customSwitch{{ item.id }}-{{ field_options.property }}" {{ value == true ? 'checked' }}>
<label class="custom-control-label" for="customSwitch{{ item.id }}-{{ field_options.property }}">{{ field_options.label }}</label>
</div>
{#
{% block toggle %}
<div class="custom-control custom-switch custom-switch-on-success custom-switch-off-danger" data-propertyname="{{ field_options.property }}">
<input type="checkbox" class="custom-control-input" id="customSwitch{{ item.id }}-{{ field_options.property }}" {{ value == true ? 'checked' }}>
<label class="custom-control-label" for="customSwitch{{ item.id }}-{{ field_options.property }}">{% block label %}{{ field_options.label }}{% endblock %}</label>
</div>
{% endblock %}

{% if value == true %}
<span class="badge badge-success">{{ 'label.true'|trans }}</span>
{% else %}
<span class="badge badge-danger">{{ 'label.false'|trans }}</span>
{% endif %}
#}

Laden…
Abbrechen
Speichern