{% extends 'layout.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('list') }}
{% endblock %}
{% block content %}
<h2>
{{ constant('App\\Util\\ItemUtil::TITLE') }}
</h2>
<p class="text-danger">
{{ constant('App\\Util\\ItemUtil::HELP') }}
</p>
<ul class="nav nav-pills ">
{% for type, name in constant('App\\Util\\ItemUtil::TYPES') %}
<li class="nav-item">
<a class="nav-link{% if current == type %} active{% endif %}" aria-current="page" href="{{ path('applicant_items', {'type':type}) }}">{{ name }}</a>
</li>
{% endfor %}
</ul>
<div class="row table-responsive">
<table id="data-table" class="table table-bordered table-striped table-sm display">
<thead>
<tr>
{% block ths %}
{% for title in titles %}
<th>{{ title }}</th>
{% endfor %}
{% endblock %}
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
{% block tds %}
{% for column in columns %}
<td {% if loop.index == 1 %}id="{{ item.id }}"{% endif %}>{{ attribute(item, column) }}</td>
{% endfor %}
{% endblock %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('list') }}
{% endblock %}
{% block extra_javascripts %}
{{ encore_entry_script_tags(js) }}
{% endblock %}