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.
75 lines
4.6 KiB
75 lines
4.6 KiB
{% extends sonata_block.templates.block_base %}
|
|
|
|
{% block block %}
|
|
{% block Convocatoria %}
|
|
<div class="workshop-wrapper">
|
|
<div class="workshop-column">
|
|
{#{{ dump(admin.list.elements) }}#}
|
|
<div class="box box-primary" {% if admin.datagrid.pager.lastPage == 1 %}style="margin-bottom: 100px;"{% endif %}>
|
|
<div class="box-body {% if admin.datagrid.results|length > 0 %}table-responsive no-padding{% endif %}">
|
|
{{ sonata_block_render_event('sonata.admin.list.table.top', { 'admin': admin }) }}
|
|
|
|
{% block list_header %}{% endblock %}
|
|
|
|
{% if admin.list.elements|length > 0 %}
|
|
|
|
<table class="table table-bordered table-striped table-hover sonata-ba-list">
|
|
{% block table_header %}
|
|
<thead>
|
|
<tr class="sonata-ba-list-field-header">
|
|
{% for field_description in admin.list.elements %}
|
|
|
|
{% set sortable = false %}
|
|
|
|
{% apply spaceless %}
|
|
<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 %}>
|
|
{% if sortable %}<a href="{{ admin.generateUrl('list', sort_parameters|merge({_list_mode: admin.getListMode()})) }}">{% endif %}
|
|
{% if field_description.getOption('label_icon') %}
|
|
<i class="sonata-ba-list-field-header-label-icon {{ field_description.getOption('label_icon') }}" aria-hidden="true"></i>
|
|
{% endif %}
|
|
{{ field_description.label|trans({}, field_description.translationDomain) }}
|
|
{% if sortable %}</a>{% endif %}
|
|
</th>
|
|
{% endapply %}
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
{% endblock %}
|
|
|
|
{% block table_body %}
|
|
<tbody>
|
|
{% include get_admin_template('outer_list_rows_' ~ admin.getListMode(), admin.code) %}
|
|
</tbody>
|
|
{% endblock %}
|
|
|
|
{% block table_footer %}
|
|
{% endblock %}
|
|
</table>
|
|
{% else %}
|
|
{% block no_result_content %}
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-aqua"><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-text">{{ 'no_result'|trans({}, 'SonataAdminBundle') }}</span>
|
|
<div class="progress">
|
|
<div class="progress-bar" style="width: 0%"></div>
|
|
</div>
|
|
<span class="progress-description">
|
|
{% if not app.request.xmlHttpRequest %}
|
|
<ul class="list-unstyled">
|
|
{% include get_admin_template('button_create', admin.code) %}
|
|
</ul>
|
|
{% endif %}
|
|
</span>
|
|
</div><!-- /.info-box-content -->
|
|
</div>
|
|
{% endblock %}
|
|
{% endif %}
|
|
|
|
{{ sonata_block_render_event('sonata.admin.list.table.bottom', { 'admin': admin }) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
{% endblock %}
|