templates/applicant/item/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% block stylesheets %}
  3. {{ parent() }}
  4. {{ encore_entry_link_tags('list') }}
  5. {% endblock %}
  6. {% block content %}
  7. <h2>
  8.     {{ constant('App\\Util\\ItemUtil::TITLE') }}
  9. </h2>
  10. <p class="text-danger">
  11.     {{ constant('App\\Util\\ItemUtil::HELP') }}
  12. </p>
  13. <ul class="nav nav-pills ">
  14.     {% for type, name in constant('App\\Util\\ItemUtil::TYPES') %}
  15.     <li class="nav-item">
  16.         <a class="nav-link{% if current == type %} active{% endif %}" aria-current="page" href="{{ path('applicant_items', {'type':type}) }}">{{ name }}</a>
  17.     </li>
  18.     {% endfor %}
  19. </ul>
  20. <div class="row table-responsive">
  21.     <table id="data-table" class="table table-bordered table-striped table-sm display">
  22.         <thead>
  23.             <tr>
  24.                 {% block ths %}
  25.                 {% for title in titles %}
  26.                 <th>{{ title }}</th>
  27.                 {% endfor %}
  28.                 {% endblock %}
  29.             </tr>
  30.         </thead>
  31.         <tbody>
  32.             {% for item in items %}
  33.             <tr>
  34.                 {% block tds %}
  35.                 {% for column in columns %}
  36.                 <td {% if loop.index == 1 %}id="{{ item.id }}"{% endif %}>{{ attribute(item, column) }}</td>
  37.                 {% endfor %}
  38.                 {% endblock %}
  39.             </tr>
  40.             {% endfor %}
  41.         </tbody>
  42.     </table>
  43. </div>
  44. {% endblock %}
  45. {% block javascripts %}
  46. {{ parent() }}
  47. {{ encore_entry_script_tags('list') }}
  48. {% endblock %}
  49. {% block extra_javascripts %}
  50. {{ encore_entry_script_tags(js) }}
  51. {% endblock %}