選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

207 行
8.8KB

  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 %}Administration | {{ 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.webpackEncoreAssets ?? [] %}
  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 %}"
  46. class="admin sidebar-mini layout-fixed {% block body_class %}{% endblock %}">
  47. {% block javascript_page_layout %}
  48. <script>
  49. document.body.classList.add(
  50. 'ea-content-width-' + (localStorage.getItem('ea/content/width') || '{{ ea.crud.contentWidth ?? ea.dashboardContentWidth ?? 'normal' }}'),
  51. 'ea-sidebar-width-' + (localStorage.getItem('ea/sidebar/width') || '{{ ea.crud.sidebarWidth ?? ea.dashboardSidebarWidth ?? 'normal' }}')
  52. );
  53. </script>
  54. {% endblock javascript_page_layout %}
  55. {% block wrapper_wrapper %}
  56. {% block flash_messages %}
  57. {{ include(ea.templatePath('flash_messages')) }}
  58. {% endblock flash_messages %}
  59. <div class="wrapper">
  60. {% block wrapper %}
  61. {% block navbar_header %}
  62. {{ include('@LcSov/adminlte/block/navbar_header.html.twig') }}
  63. {% endblock %}
  64. <aside class="main-sidebar sidebar-dark-primary elevation-4">
  65. {% block sidebar %}
  66. {% block header_logo %}
  67. <a class="brand-link text-center"
  68. title="{{ ea.dashboardTitle|striptags }}"
  69. href="{{ path(ea.dashboardRouteName) }}">
  70. {{ ea.dashboardTitle|raw }}
  71. <!--<span class="brand-text font-weight-light">Texte logo</span>-->
  72. </a>
  73. {% endblock header_logo %}
  74. <div class="sidebar">
  75. {% block main_menu_wrapper %}
  76. {{ include(ea.templatePath('main_menu')) }}
  77. {% endblock main_menu_wrapper %}
  78. </div>
  79. {% endblock sidebar %}
  80. </aside>
  81. <div class="content-wrapper" style="min-height: 554px;">
  82. {% block content %}
  83. {% block content_header_wrapper %}
  84. <section class="content-header">
  85. <div class="container-fluid">
  86. <div class="row mb-2">
  87. {% set has_help_message = (ea.crud.helpMessage ?? '') is not empty %}
  88. {% block content_header %}
  89. <div class="col-sm-6">
  90. <h1 class="m-0 text-dark">
  91. {% block content_title %}{% endblock %}
  92. </h1>
  93. {% block content_breadcrumb %}
  94. {% endblock content_breadcrumb %}
  95. {# {% block content_help %}
  96. {% if has_help_message %}
  97. <div class="text-muted">
  98. {{ ea.crud.helpMessage|e('html_attr') }}
  99. </div>
  100. {% endif %}
  101. {% endblock %} #}
  102. </div><!-- /.col -->
  103. <div class="col-sm-6">
  104. {% block page_actions_wrapper %}
  105. <div class="btn-list float-sm-right">
  106. {% block page_actions %}{% endblock %}
  107. </div>
  108. {% endblock %}
  109. </div><!-- /.col -->
  110. {% endblock %}
  111. </div><!-- /.row -->
  112. </div><!-- /.container-fluid -->
  113. </section>
  114. {% endblock %}
  115. <section class="content">
  116. <div class="container-fluid">
  117. <div class="row">
  118. {% block main %}{% endblock %}
  119. </div>
  120. </div>
  121. </section>
  122. {% endblock %}
  123. </div>
  124. {% block footer %}
  125. {% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %}
  126. <footer class="main-footer">
  127. <div class="float-right d-none d-sm-block">
  128. <b>SovBundle Version</b> 1.0
  129. </div>
  130. <strong>Copyright © {{ 'now'|date('Y') }} <a href="http://laclic.fr">La Clic</a>.</strong> All
  131. rights
  132. reserved.
  133. </footer>
  134. {% endblock %}
  135. {% endblock wrapper %}
  136. </div>
  137. {% endblock wrapper_wrapper %}
  138. {% block configured_javascripts %}
  139. {% for js_asset in ea.assets.jsFiles ?? [] %}
  140. <script src="{{ asset(js_asset) }}"></script>
  141. {% endfor %}
  142. {% for webpack_encore_entry in ea.assets.webpackEncoreAssets ?? [] %}
  143. {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry, null, '_default', {'defer': false}) }}
  144. {% endfor %}
  145. {% endblock %}
  146. {% block body_javascript %}{% endblock body_javascript %}
  147. {% block configured_body_contents %}
  148. {% for htmlContent in ea.assets.bodyContents ?? [] %}
  149. {{ htmlContent|raw }}
  150. {% endfor %}
  151. {% endblock %}
  152. {% include '@LcSov/adminlte/filemanager/file-manager-modal.html.twig' %}
  153. {% if app.session is not null and app.session.started %}
  154. {% set flash_messages = app.session.flashbag.all %}
  155. {% if flash_messages|length > 0 %}
  156. <script type="text/javascript">
  157. $(document).ready(function () {
  158. {% for label, messages in flash_messages %}
  159. {% for message in messages %}
  160. Notification.add("{{ label }}", "{{ message|trans|raw|replace({'"': '\"'}) }}");
  161. {% endfor %}
  162. {% endfor %}
  163. });
  164. </script>
  165. {% endif %}
  166. {% endif %}
  167. {% block append_body %}{% endblock %}
  168. </body>
  169. {% endblock body %}
  170. </html>