edit_many_to_many.twig.html 1.1 KB

123456789101112131415161718192021222324252627282930
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% extends base_template %}
  8. {% block field %}
  9. <div id="field_container_{{ admin.code }}_{{ field_element.id}}">
  10. <span id="field_widget_{{ admin.code }}_{{ field_element.id}}" >
  11. {{ form_field(field_element) }}
  12. </span>
  13. <span id="field_actions_{{ admin.code }}_{{ field_element.id}}" >
  14. <a href="{{ field_description.associationadmin.generateUrl('create') }}" onclick="start_field_dialog_form_add_{{ admin.code }}_{{ field_element.id }}(event)" class="action"><img src="{{ asset('bundles/sonatabaseapplication/famfamfam/add.png') }}" alt="{% trans 'btn_add' from 'BaseApplicationBundle' %}" /></a>
  15. </span>
  16. <div style="display: hidden" id="field_dialog_{{ admin.code }}_{{ field_element.id }}">
  17. </div>
  18. </div>
  19. {% include 'SonataBaseApplicationBundle:CRUD:edit_many_association_script.twig.html' %}
  20. {% endblock %}