templates/cms/node_public_orders_bip.html.twig line 1

Open in your IDE?
  1. {% set _localized_node = node %}
  2. {% set _nomenu = node.vars.nomenu|default(false) %}
  3. {% extends 'base_bip.html.twig' %}
  4. {% block title %}{{ node.vars.meta_title|default(node.vars.title) }}{%endblock%}
  5. {% block content %}
  6. {% set has_module = false %}
  7. {% set has_product = false %}
  8. {% set page_slider_module = null %}
  9. {% if page_slider_module %}
  10. {% set slider = page_slider_module.children %}
  11. {% else %}
  12. {% set slider = load_nodes('slider').list %}
  13. {% endif %}
  14. <div id="content-start">
  15. <section class="news-section ">
  16. <div class="section-header">
  17. <h1>
  18. <span>{{ node.vars.title }}</span>
  19. </h1>
  20. </div>
  21. <!-- Dodatkowe moduły z CMS -->
  22. {% for m in modules.content %}
  23. <section class="node-module">{{ m|raw }}</section>
  24. {% endfor %}
  25. </section>
  26. </div>
  27. <section class="info-section" @click="toggle">
  28. <span class="accordion-item-title">
  29. <span>Metryczka</span>
  30. <svg aria-label="Ikona menu">
  31. <use xlink:href="#chevron-down-icon"></use>
  32. </svg>
  33. </span>
  34. <div class="accordion-item-content">
  35. <div class="metadata">
  36. <span>Utworzono:</span> {{ node.vars.created_date|date('d.m.Y') }} przez {{node.vars.created_by}}<br/>
  37. {% if node.vars.updated_date %}
  38. <span>Edytowano:</span> {{ node.vars.updated_date|date('d.m.Y') }} przez {{ node.vars.updated_by }} <br/>
  39. {% endif %}
  40. {% if node.vars.publish_date %}
  41. <span>Opublikowano:</span> {{ node.vars.publish_date|date('d.m.Y') }} przez {{ node.vars.published_by }}<br/>
  42. {% endif %}
  43. </div>
  44. </div>
  45. </section>
  46. <section class="info-section" @click="toggle">
  47. <span class="accordion-item-title">
  48. <span>Załączniki</span>
  49. <svg aria-label="Ikona menu">
  50. <use xlink:href="#chevron-down-icon"></use>
  51. </svg>
  52. </span>
  53. <div class="accordion-item-content">
  54. <div class="move-files-section">
  55. </div>
  56. </div>
  57. </section>
  58. <section class="info-section" @click="toggle">
  59. <span class="accordion-item-title">
  60. <span>Historia zmian</span>
  61. <svg aria-label="Ikona menu">
  62. <use xlink:href="#chevron-down-icon"></use>
  63. </svg>
  64. </span>
  65. <div class="accordion-item-content">
  66. </div>
  67. </section>
  68. <script type="text/javascript">
  69. document.querySelectorAll('.files-section').forEach(function(section) {
  70. document.getElementsByClassName('move-files-section')[0].append(section);
  71. });
  72. {% if node.vars.archive %}
  73. document.querySelectorAll('.current').forEach(function(el) {
  74. el.classList.remove('current');
  75. el.nextElementSibling.classList.add('current');
  76. });
  77. {% endif %}
  78. </script>
  79. {% endblock %}
  80. {% block meta_keywords %}{{ node.vars.meta_keywords|default('') }}{% endblock %}
  81. {% block meta_description %}{{ node.vars.meta_description|default('') }}{% endblock %}
  82. {% block endhead %}
  83. {% if node.vars.norobots %}
  84. <meta name="robots" content="noindex, nofollow" />
  85. {% endif %}
  86. {% endblock %}