dashboard.html.twig 1.4 KB

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