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

layout.html.twig 11KB

3年前
3年前
3年前
3年前
3年前
3年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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 reminders = sov_get_reminders() %}
  88. {% if reminders %}
  89. <div class="col-sm-12">
  90. <div id="reminders" class="card card-outline card-danger">
  91. <ul class="todo-list">
  92. {% for reminder in reminders %}
  93. <li>
  94. <label class="big form-check-label">
  95. <input type="checkbox" name="" value="1" class="form-check-input checkbox-valid-reminder" data-url="/admin/?action=setReminderDone&amp;entity=Reminder&amp;id=90">
  96. <span class="checkmark"></span>
  97. </label>
  98. <div class="text">
  99. {{ reminder.description }}
  100. </div>
  101. <div class="tools">
  102. <button type="button" class="btn-sm btn-success" data-toggle="modal" data-target="#modal-reminder-91">
  103. <i class="fas fa-eye"></i>
  104. </button>
  105. <button type="button" class="btn-sm btn-info btn-edit-reminder" data-url="/admin/?action=edit&amp;entity=Reminder&amp;id=91">
  106. <i class="fas fa-edit"></i>
  107. </button>
  108. </div>
  109. </li>
  110. {% endfor %}
  111. </ul>
  112. </div>
  113. </div>
  114. {% endif %}
  115. {% set has_help_message = (ea.crud.helpMessage ?? '') is not empty %}
  116. {% block content_header %}
  117. <div class="col-sm-6">
  118. <h1 class="m-0 text-dark">
  119. {% block content_title %}{% endblock %}
  120. </h1>
  121. {% block content_breadcrumb %}
  122. {% endblock content_breadcrumb %}
  123. {# {% block content_help %}
  124. {% if has_help_message %}
  125. <div class="text-muted">
  126. {{ ea.crud.helpMessage|e('html_attr') }}
  127. </div>
  128. {% endif %}
  129. {% endblock %} #}
  130. </div><!-- /.col -->
  131. <div class="col-sm-6">
  132. {% block page_actions_wrapper %}
  133. <div class="btn-list float-sm-right">
  134. {% block page_actions %}{% endblock %}
  135. </div>
  136. {% endblock %}
  137. </div><!-- /.col -->
  138. {% endblock %}
  139. </div><!-- /.row -->
  140. </div><!-- /.container-fluid -->
  141. </section>
  142. {% endblock %}
  143. <section class="content">
  144. <div class="container-fluid">
  145. {% block main %}{% endblock %}
  146. </div>
  147. </section>
  148. {% endblock %}
  149. </div>
  150. {% block footer %}
  151. {% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %}
  152. <footer class="main-footer">
  153. <div class="float-right d-none d-sm-block">
  154. <b>SovBundle Version</b> 1.0
  155. </div>
  156. <strong>Copyright © {{ 'now'|date('Y') }} <a href="http://laclic.fr">La Clic</a>.</strong> All
  157. rights
  158. reserved.
  159. </footer>
  160. {% endblock %}
  161. {% endblock wrapper %}
  162. </div>
  163. {% endblock wrapper_wrapper %}
  164. {% block configured_javascripts %}
  165. {% for js_asset in ea.assets.jsFiles ?? [] %}
  166. <script src="{{ asset(js_asset) }}"></script>
  167. {% endfor %}
  168. {% for webpack_encore_entry in ea.assets.webpackEncoreAssets ?? [] %}
  169. {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry, null, '_default', {'defer': false}) }}
  170. {% endfor %}
  171. {% endblock %}
  172. {% block body_javascript %}{% endblock body_javascript %}
  173. {% block configured_body_contents %}
  174. {% for htmlContent in ea.assets.bodyContents ?? [] %}
  175. {{ htmlContent|raw }}
  176. {% endfor %}
  177. {% endblock %}
  178. {% include '@LcSov/adminlte/block/modal_filemanager.html.twig' %}
  179. {% if app.session is not null and app.session.started %}
  180. {% set flash_messages = app.session.flashbag.all %}
  181. {% if flash_messages|length > 0 %}
  182. <script type="text/javascript">
  183. $(document).ready(function () {
  184. {% for label, messages in flash_messages %}
  185. {% for message in messages %}
  186. Notification.add("{{ label }}", "{{ message|trans|raw|replace({'"': '\"'}) }}");
  187. {% endfor %}
  188. {% endfor %}
  189. });
  190. </script>
  191. {% endif %}
  192. {% endif %}
  193. {% block append_body %}{% endblock %}
  194. </body>
  195. {% endblock body %}
  196. </html>