form_admin_fields.html.twig 582 B

123456789101112131415161718
  1. {% block sonata_security_roles_widget %}
  2. {% spaceless %}
  3. <div class="editable">
  4. <h4>{{ 'field.label_roles_editable'|trans({}, "SonataUserBundle") }}</h4>
  5. {{ block('choice_widget') }}
  6. </div>
  7. {% if read_only_choices|length > 0 %}
  8. <div class="readonly">
  9. <h4>{{ 'field.label_roles_readonly'|trans({}, "SonataUserBundle") }}</h4>
  10. <ul>
  11. {% for choice in read_only_choices %}
  12. <li>{{ choice }}</li>
  13. {% endfor %}
  14. </ul>
  15. </div>
  16. {% endif %}
  17. {% endspaceless %}
  18. {% endblock sonata_security_roles_widget %}