|
123456789101112131415161718 |
- {% trans_default_domain 'EasyAdminBundle' %}
- <div class="custom-control custom-switch">
- <input type="checkbox" class="custom-control-input" id="customSwitch1">
- <label class="custom-control-label" for="customSwitch1">Toggle this custom switch element</label>
- </div>
- {% if view == 'show' or ('edit' in backend_config.disabled_actions) %}
- {% if value == true %}
- <span class="badge badge-success">{{ 'label.true'|trans }}</span>
- {% else %}
- <span class="badge badge-danger">{{ 'label.false'|trans }}</span>
- {% endif %}
- {% else %}
- <div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success" data-propertyname="{{ field_options.property }}">
- <input class="custom-control-input" type="checkbox" {{ value == true ? 'checked' }}>
- <label class="custom-control-label" ></label>
-
- </div>
- {% endif %}
|