templates/partials/jinxes.html.twig line 1

Open in your IDE?
  1. {% embed 'includes/details.html.twig' with {
  2.     summary: 'jinxes.title'|trans,
  3.     id: 'jinxes'
  4. } %}
  5.     {% import 'macros/forms.html.twig' as forms %}
  6.     {% block body %}
  7.     <table class="jinxes">
  8.         <thead class="sr-only">
  9.             <tr>
  10.                 <th scope="col">{{ 'jinxes.target'|trans }}</th>
  11.                 <th scope="col">{{ 'jinxes.trick'|trans }}</th>
  12.                 <th scope="col">{{ 'jinxes.reason'|trans }}</th>
  13.             </tr>
  14.         </thead>
  15.         <tbody id="jinx-table"></tbody>
  16.     </table>
  17.     <p class="switch mt-4">
  18.         <span class="switch__input">
  19.             {{ forms.toggle({
  20.                 name: "show-all-jinxes",
  21.                 id: "show-all-jinxes"
  22.             }) }}
  23.         </span>
  24.         <label for="show-all-jinxes" class="switch__label">{{ 'jinxes.show'|trans }}</label>
  25.     </p>
  26.     {% endblock %}
  27. {% endembed %}
  28. <template id="jinx-table-template">
  29.     <tr class="jinxes__jinx js--jinx-table--jinx">
  30.         <td class="jinxes__cell">
  31.             <img class="jinxes__icon js--jinx-table--target">
  32.             <span class="jinxes__name js--jinx-table--target-name" aria-hidden="true"></span>
  33.         </td>
  34.         <td class="jinxes__cell">
  35.             <img class="jinxes__icon js--jinx-table--trick">
  36.             <span class="jinxes__name js--jinx-table--trick-name" aria-hidden="true"></span>
  37.         </td>
  38.         <td class="jinxes__cell jinxes__cell--text js--jinx-table--reason"></td>
  39.     </tr>
  40. </template>