Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

178 lines
8.0KB

  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" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&amp;display=fallback">
  19. {% block configured_stylesheets %}
  20. {% for css_asset in ea.assets.cssFiles ?? [] %}
  21. <link rel="stylesheet" href="{{ asset(css_asset) }}">
  22. {% endfor %}
  23. {% for webpack_encore_entry in ea.assets.webpackEncoreEntries ?? [] %}
  24. {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }}
  25. {% endfor %}
  26. {% endblock %}
  27. {% block head_favicon %}
  28. <link rel="shortcut icon" href="{{ asset(ea.dashboardFaviconPath) }}">
  29. {% endblock %}
  30. {# {% block head_javascript %}
  31. <script src="{{ asset('bundles/easyadmin/app.js') }}"></script>
  32. {% endblock head_javascript %} #}
  33. {# {% if 'rtl' == ea.i18n.textDirection %}
  34. <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.rtl.css') }}">
  35. <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app-custom-rtl.css') }}">
  36. {% endif %} #}
  37. {% block configured_head_contents %}
  38. {% for htmlContent in ea.assets.headContents ?? [] %}
  39. {{ htmlContent|raw }}
  40. {% endfor %}
  41. {% endblock %}
  42. </head>
  43. {% block body %}
  44. <body id="{% block body_id %}{% endblock %}" class="sidebar-mini layout-fixed {% block body_class %}{% endblock %}">
  45. {% block javascript_page_layout %}
  46. <script>
  47. document.body.classList.add(
  48. 'ea-content-width-' + (localStorage.getItem('ea/content/width') || '{{ ea.crud.contentWidth ?? ea.dashboardContentWidth ?? 'normal' }}'),
  49. 'ea-sidebar-width-' + (localStorage.getItem('ea/sidebar/width') || '{{ ea.crud.sidebarWidth ?? ea.dashboardSidebarWidth ?? 'normal' }}')
  50. );
  51. </script>
  52. {% endblock javascript_page_layout %}
  53. {% block wrapper_wrapper %}
  54. {% block flash_messages %}
  55. {{ include(ea.templatePath('flash_messages')) }}
  56. {% endblock flash_messages %}
  57. <div class="wrapper">
  58. {% block wrapper %}
  59. {% block navbar_header %}
  60. {{ include('@LcSov/adminlte/block/navbar_header.html.twig') }}
  61. {% endblock %}
  62. <aside class="main-sidebar sidebar-dark-primary elevation-4">
  63. {% block sidebar %}
  64. {% block header_logo %}
  65. <a class="brand-link text-center"
  66. title="{{ ea.dashboardTitle|striptags }}"
  67. href="{{ path(ea.dashboardRouteName) }}">
  68. {{ ea.dashboardTitle|raw }}
  69. <!--<span class="brand-text font-weight-light">Texte logo</span>-->
  70. </a>
  71. {% endblock header_logo %}
  72. <div class="sidebar">
  73. {% block main_menu_wrapper %}
  74. {{ include(ea.templatePath('main_menu')) }}
  75. {% endblock main_menu_wrapper %}
  76. </div>
  77. {% endblock sidebar %}
  78. </aside>
  79. <div class="content-wrapper" style="min-height: 554px;">
  80. {% block content %}
  81. {% block content_header_wrapper %}
  82. <section class="content-header">
  83. <div class="container-fluid">
  84. <div class="row mb-2">
  85. {% set has_help_message = (ea.crud.helpMessage ?? '') is not empty %}
  86. {% block content_header %}
  87. <div class="col-sm-6">
  88. <h1 class="m-0 text-dark">
  89. {% block content_title %}{% endblock %}
  90. </h1>
  91. {# {% block content_help %}
  92. {% if has_help_message %}
  93. <div class="text-muted">
  94. {{ ea.crud.helpMessage|e('html_attr') }}
  95. </div>
  96. {% endif %}
  97. {% endblock %} #}
  98. </div><!-- /.col -->
  99. <div class="col-sm-6">
  100. {% block page_actions_wrapper %}
  101. <div class="btn-list float-sm-right">
  102. {% block page_actions %}{% endblock %}
  103. </div>
  104. {% endblock %}
  105. </div><!-- /.col -->
  106. {% endblock %}
  107. </div><!-- /.row -->
  108. </div><!-- /.container-fluid -->
  109. </section>
  110. {% endblock %}
  111. <section class="content">
  112. <div class="container-fluid">
  113. {% block main %}{% endblock %}
  114. </div>
  115. </section>
  116. {% block content_footer_wrapper %}
  117. {% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %}
  118. {% if content_footer is not empty %}
  119. <footer class="footer footer-transparent d-print-none">
  120. <div class="container">
  121. <div class="row text-center align-items-center flex-row-reverse">
  122. {{ content_footer }}
  123. </div>
  124. </div>
  125. </footer>
  126. {% endif %}
  127. {% endblock %}
  128. {% endblock %}
  129. </div>
  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>