templates/notice/notice_public_oznamenie.html.twig line 1

Open in your IDE?
  1. {% extends 'default/base_default.html.twig' %}
  2. {% block title %}Oznámenie | {{ parent() }}{% endblock %}
  3. {% block header %}
  4.     <span class="">
  5.         Oznámenia environmentálnych škôd a hrozieb
  6.     </span>
  7. {% endblock %}
  8. {% block content %}
  9.     {% include 'notice/_part_oznamenie_text.html.twig' %}
  10.     <div id="accordion" class="mb-3">
  11.         <div class="card bg-primary">
  12.             <div class="card-header" id="section_header_all">
  13.                 <h4 class="mb-0">
  14.                     <button class="btn btn-link text-uppercase" data-toggle="collapse" data-target="#section_body_all"
  15.                             aria-expanded="true" aria-controls="section_body_all">
  16.                         <i class="fas fa-plus mr-3"></i>Prehľad oznámení.
  17.                     </button>
  18.                 </h4>
  19.             </div>
  20.             <div id="section_body_all" class="collapse" aria-labelledby="section_header_all" data-parent="#accordion">
  21.                 <div class="card-body">
  22.                     {% include 'notice/_part_table_notices_oznamenie.html.twig' with {'notices': notices } only %}
  23.                 </div>
  24.             </div>
  25.         </div>
  26.     </div>
  27. {% endblock %}
  28. {% block javascripts %}
  29.     <script>
  30.         $('[id*=section_body_]').on('show.bs.collapse', function () {
  31.             $('#' + this.id.replace('_body_', '_header_') + ' .fa-plus').addClass('fa-minus').removeClass('fa-plus');
  32.         });
  33.         $('[id*=section_body_]').on('hidden.bs.collapse', function () {
  34.             $('#' + this.id.replace('_body_', '_header_') + ' .fa-minus').addClass('fa-plus').removeClass('fa-minus');
  35.         });
  36.     </script>
  37. {% endblock %}