1234567891011121314151617181920212223242526272829 |
- {#
- This file is part of the Sonata package.
- (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- For the full copyright and license information, please view the LICENSE
- file that was distributed with this source code.
- #}
- {% extends admin.getTemplate('base_list_field') %}
- {% block field_span_attributes %}
- {% spaceless %}
- {{ parent() }}
- data-source="[{value: 0, text: '{%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}'},{value: 1, text: '{%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}'}]"
- {% endspaceless %}
- {% endblock %}
- {% block field %}
- {% spaceless %}
- {% if value %}
- <span class="label label-success">{%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}</span>
- {% else %}
- <span class="label label-important">{%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}</span>
- {% endif %}
- {% endspaceless %}
- {% endblock %}
|