You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

layout.html.twig 7.9KB

3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {% trans_default_domain ea.i18n.translationDomain %}
  3. <!DOCTYPE html>
  4. <html lang="{{ ea.i18n.htmlLocale }}" dir="{{ ea.i18n.textDirection }}">
  5. <head>
  6. {% block head_metas %}
  7. <meta charset="utf-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="robots"
  10. content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate, nocache"/>
  11. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  12. <meta name="generator" content="EasyAdmin"/>
  13. {% endblock head_metas %}
  14. <title>{% block page_title %}{{ block('content_title')|striptags|raw }}{% endblock %}</title>
  15. {# {% block head_stylesheets %}
  16. <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}">
  17. {% endblock %} #}
  18. <link rel="stylesheet"
  19. href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&amp;display=fallback">
  20. {% block configured_stylesheets %}
  21. {% for css_asset in ea.assets.cssFiles ?? [] %}
  22. <link rel="stylesheet" href="{{ asset(css_asset) }}">
  23. {% endfor %}
  24. {% for webpack_encore_entry in ea.assets.webpackEncoreEntries ?? [] %}
  25. {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }}
  26. {% endfor %}
  27. {% endblock %}
  28. {% block head_favicon %}
  29. <link rel="shortcut icon" href="{{ asset(ea.dashboardFaviconPath) }}">
  30. {% endblock %}
  31. {# {% block head_javascript %}
  32. <script src="{{ asset('bundles/easyadmin/app.js') }}"></script>
  33. {% endblock head_javascript %} #}
  34. {# {% if 'rtl' == ea.i18n.textDirection %}
  35. <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.rtl.css') }}">
  36. <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app-custom-rtl.css') }}">
  37. {% endif %} #}
  38. {% block configured_head_contents %}
  39. {% for htmlContent in ea.assets.headContents ?? [] %}
  40. {{ htmlContent|raw }}
  41. {% endfor %}
  42. {% endblock %}
  43. </head>
  44. {% block body %}
  45. <body id="{% block body_id %}{% endblock %}" class="sidebar-mini layout-fixed {% block body_class %}{% endblock %}">
  46. {% block javascript_page_layout %}
  47. <script>
  48. document.body.classList.add(
  49. 'ea-content-width-' + (localStorage.getItem('ea/content/width') || '{{ ea.crud.contentWidth ?? ea.dashboardContentWidth ?? 'normal' }}'),
  50. 'ea-sidebar-width-' + (localStorage.getItem('ea/sidebar/width') || '{{ ea.crud.sidebarWidth ?? ea.dashboardSidebarWidth ?? 'normal' }}')
  51. );
  52. </script>
  53. {% endblock javascript_page_layout %}
  54. {% block wrapper_wrapper %}
  55. {% block flash_messages %}
  56. {{ include(ea.templatePath('flash_messages')) }}
  57. {% endblock flash_messages %}
  58. <div class="wrapper">
  59. {% block wrapper %}
  60. {% block navbar_header %}
  61. {{ include('@LcSov/adminlte/block/navbar_header.html.twig') }}
  62. {% endblock %}
  63. <aside class="main-sidebar sidebar-dark-primary elevation-4">
  64. {% block sidebar %}
  65. {% block header_logo %}
  66. <a class="brand-link text-center"
  67. title="{{ ea.dashboardTitle|striptags }}"
  68. href="{{ path(ea.dashboardRouteName) }}">
  69. {{ ea.dashboardTitle|raw }}
  70. <!--<span class="brand-text font-weight-light">Texte logo</span>-->
  71. </a>
  72. {% endblock header_logo %}
  73. <div class="sidebar">
  74. {% block main_menu_wrapper %}
  75. {{ include(ea.templatePath('main_menu')) }}
  76. {% endblock main_menu_wrapper %}
  77. </div>
  78. {% endblock sidebar %}
  79. </aside>
  80. <div class="content-wrapper" style="min-height: 554px;">
  81. {% block content %}
  82. {% block content_header_wrapper %}
  83. <section class="content-header">
  84. <div class="container-fluid">
  85. <div class="row mb-2">
  86. {% set has_help_message = (ea.crud.helpMessage ?? '') is not empty %}
  87. {% block content_header %}
  88. <div class="col-sm-6">
  89. <h1 class="m-0 text-dark">
  90. {% block content_title %}{% endblock %}
  91. </h1>
  92. {# {% block content_help %}
  93. {% if has_help_message %}
  94. <div class="text-muted">
  95. {{ ea.crud.helpMessage|e('html_attr') }}
  96. </div>
  97. {% endif %}
  98. {% endblock %} #}
  99. </div><!-- /.col -->
  100. <div class="col-sm-6">
  101. {% block page_actions_wrapper %}
  102. <div class="btn-list float-sm-right">
  103. {% block page_actions %}{% endblock %}
  104. </div>
  105. {% endblock %}
  106. </div><!-- /.col -->
  107. {% endblock %}
  108. </div><!-- /.row -->
  109. </div><!-- /.container-fluid -->
  110. </section>
  111. {% endblock %}
  112. <section class="content">
  113. <div class="container-fluid">
  114. {% block main %}{% endblock %}
  115. </div>
  116. </section>
  117. {% endblock %}
  118. </div>
  119. {% block footer %}
  120. {% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %}
  121. <footer class="main-footer">
  122. <div class="float-right d-none d-sm-block">
  123. <b>SovBundle Version</b> 1.0
  124. </div>
  125. <strong>Copyright © {{ 'now'|date('Y') }} <a href="http://laclic.fr">La Clic</a>.</strong> All
  126. rights
  127. reserved.
  128. </footer>
  129. {% endblock %}
  130. {% endblock wrapper %}
  131. </div>
  132. {% endblock wrapper_wrapper %}
  133. {% block configured_javascripts %}
  134. {% for js_asset in ea.assets.jsFiles ?? [] %}
  135. <script src="{{ asset(js_asset) }}"></script>
  136. {% endfor %}
  137. {% for webpack_encore_entry in ea.assets.webpackEncoreEntries ?? [] %}
  138. {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry) }}
  139. {% endfor %}
  140. {% endblock %}
  141. {% block body_javascript %}{% endblock body_javascript %}
  142. {% block configured_body_contents %}
  143. {% for htmlContent in ea.assets.bodyContents ?? [] %}
  144. {{ htmlContent|raw }}
  145. {% endfor %}
  146. {% endblock %}
  147. {% include '@LcSov/adminlte/filemanager/file-manager-modal.html.twig' %}
  148. </body>
  149. {% endblock body %}
  150. </html>