dashboard.twig 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 'Sonata/BaseApplicationBundle::standard_layout.twig' %}
  8. {% block title %}{% trans 'title_dashboard' from 'BaseApplicationBundle' %}{% endblock%}
  9. {% block content %}
  10. {% for code, group in groups %}
  11. <table class="sonata-ba-list">
  12. <thead>
  13. <tr>
  14. <th colspan="3">{{ code }}</td>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. {% for admin in group %}
  19. <tr>
  20. <td class="sonata-ba-list-label">{{ admin.label}}</td>
  21. <td><a href="{{ admin.generateUrl('create')}}"><img src="/bundles/baseapplication/famfamfam/add.png" /> {% trans 'link_add' from 'BaseApplicationBundle' %}</a></td>
  22. <td><a href="{{ admin.generateUrl('list')}}"><img src="/bundles/baseapplication/famfamfam/application_view_list.png" />{% trans 'link_list' from 'BaseApplicationBundle' %}</a></td>
  23. </tr>
  24. {% endfor %}
  25. </tbody>
  26. </table>
  27. {% endfor %}
  28. {% endblock %}