Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.8 KiB

5 years ago
  1. {% if admin.list.elements|length > 0 %}
  2. <table class="table table-bordered table-striped table-hover sonata-ba-list">
  3. {% block table_header %}
  4. <thead>
  5. <tr class="sonata-ba-list-field-header">
  6. {% for field_description in admin.list.elements %}
  7. {% set sortable = false %}
  8. {% apply spaceless %}
  9. <th class="sonata-ba-list-field-header-{{ field_description.type}} {% if sortable %} sonata-ba-list-field-header-order-{{ sort_by|lower }} {{ sort_active_class }}{% endif %}{% if field_description.options.header_class is defined %} {{ field_description.options.header_class }}{% endif %}"{% if field_description.options.header_style is defined %} style="{{ field_description.options.header_style }}"{% endif %}>
  10. {% if sortable %}<a href="{{ admin.generateUrl('list', sort_parameters|merge({_list_mode: admin.getListMode()})) }}">{% endif %}
  11. {% if field_description.getOption('label_icon') %}
  12. <i class="sonata-ba-list-field-header-label-icon {{ field_description.getOption('label_icon') }}" aria-hidden="true"></i>
  13. {% endif %}
  14. {{ field_description.label|trans({}, field_description.translationDomain) }}
  15. {% if sortable %}</a>{% endif %}
  16. </th>
  17. {% endapply %}
  18. {% endfor %}
  19. </tr>
  20. </thead>
  21. {% endblock %}
  22. {% block table_body %}
  23. <tbody>
  24. {% include get_admin_template('outer_list_rows_' ~ admin.getListMode(), admin.code) %}
  25. </tbody>
  26. {% endblock %}
  27. {% block table_footer %}
  28. {% endblock %}
  29. </table>
  30. {% else %}
  31. {% block no_result_content %}
  32. <div class="info-box">
  33. <span class="info-box-icon bg-aqua"><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></span>
  34. <div class="info-box-content">
  35. <span class="info-box-text">{{ 'no_result'|trans({}, 'SonataAdminBundle') }}</span>
  36. <div class="progress">
  37. <div class="progress-bar" style="width: 0%"></div>
  38. </div>
  39. <span class="progress-description">
  40. {% if not app.request.xmlHttpRequest %}
  41. <ul class="list-unstyled">
  42. {% include get_admin_template('button_create', admin.code) %}
  43. </ul>
  44. {% endif %}
  45. </span>
  46. </div><!-- /.info-box-content -->
  47. </div>
  48. {% endblock %}
  49. {% endif %}