templates/bundles/EasyAdminBundle/default/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|split('_')|first|default('en') }}"
  3. dir="{{ easyadmin_config('design.rtl') ? 'rtl' : 'ltr' }}">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate, nocache"/>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <meta name="generator" content="CorpHedge"/>
  10. <meta name="viewport" content="width=device-width"/>
  11. {% block head_meta %} {% endblock head_meta %}
  12. <link rel="apple-touch-icon" sizes="76x76" href="/assets/img/apple-icon.png">
  13. <link rel="icon" type="image/png" sizes="96x96" href="/assets/img/favicon.png">
  14. <title>{% block page_title %}{{ block('content_title')|striptags|raw }}{% endblock %}</title>
  15. {% block head_stylesheets %}
  16. <link rel="stylesheet" href="{{ asset('assets/siqtheme/css/siqtheme.css') }}">
  17. {% endblock %}
  18. {% block head_custom_stylesheets %}
  19. {% for css_asset in easyadmin_config('design.assets.css') %}
  20. <link rel="stylesheet" href="{{ asset(css_asset) }}">
  21. {% endfor %}
  22. {% endblock head_custom_stylesheets %}
  23. {% if easyadmin_config('design.brand_color') != 'hsl(230, 55%, 60%)' %}
  24. <style>
  25. :root {
  26. --color-primary: {{ easyadmin_config('design.brand_color') }};
  27. }
  28. </style>
  29. {% endif %}
  30. {% block head_favicon %}
  31. {% set favicon = easyadmin_config('design.assets.favicon') %}
  32. <link rel="icon" type="{{ favicon.mime_type }}" href="{{ asset(favicon.path) }}"/>
  33. {% endblock %}
  34. {% block head_javascript %}
  35. <script src="{{ asset('assets/siqtheme/js/siqtheme.js') }}"></script>
  36. {% endblock head_javascript %}
  37. </head>
  38. {% block body %}
  39. <body id="{% block body_id %}body{% endblock %}" class="theme-dark {% block body_class %}{% endblock %}">
  40. <div class="grid-wrapper sidebar-bg bg1">
  41. <!-- BOF HEADER -->
  42. {% block header -%}
  43. <div class="header">
  44. <div class="header-bar">
  45. <div class="brand">
  46. <a href="/" class="logo" style="padding-left:20px"><img
  47. src="{{ asset('assets/img/logo_white.png') }}"></a>
  48. </div>
  49. <div class="btn-toggle">
  50. <a href="#" class="slide-sidebar-btn" style="display: none;"><i class="ti-menu"></i></a>
  51. </div>
  52. {% if settings.testMode|default(0) == 1 %}
  53. <div class="test-mode">The system is in the test mode ! <a href="https://app.corphedge.com">Switch
  54. to the live version</a></div>
  55. {% endif %}
  56. <div class="navigation d-flex">
  57. <!-- BOF Header Search -->
  58. <!-- EOF Header Search -->
  59. <!-- BOF Header Nav -->
  60. <div class="navbar-menu d-flex">
  61. <div class="menu-item">
  62. <a href="/" class="logo-sm" style="display: none"><img
  63. src="{{ asset('/assets/img/logo_only_white.png') }}"></a>
  64. </div>
  65. <div id="logged" class="" style="min-width:250px; margin-top: 5px ">
  66. <div style="font-size:14px; color: #ccc; position: relative; line-height: 30px " title="Currently logged to this company data" >
  67. <small style="color: #787878;margin-right: 10px">Logged to company:</small>
  68. <i style="float: right; padding-right: 10px;"> {{ app.user.customer.name }}
  69. {% if (app.user.isAdmin|default(false)) %}
  70. <a href="/settings/profile" title="Change company" class=" fa fa-fw fa-edit text-primary " style="margin-left: 10px;"></a>
  71. {% endif %}
  72. </i>
  73. <br>
  74. <small style="color: #787878; text-align: left; padding-right: 5px">Logged as: </small>
  75. <i style="float: right; padding-right: 10px"> {{ app.user.email }}
  76. {% if is_switched_user() %}
  77. <a href="{{ path('admin_dashboard', {'_switch_user': '_exit'}) }}" style="margin-left: 10px;">
  78. <i class=" fa fa-fw fa-close text-lilac pl-1" title="Return to My Account"></i>
  79. </a>
  80. {% elseif app.user.isSuperAdmin|default(false) %}
  81. <a href="/admin/?entity=User" style="margin-left: 10px;">
  82. <i class=" fa fa-fw fa-edit text-primary" title="Switch user"></i>
  83. </a>
  84. {% endif %}
  85. </i>
  86. </div>
  87. </div>
  88. {% if app.user.isManager|default(false) or app.user.isAdmin|default(false) %}
  89. <div id="new-learn" class="menu-item">
  90. <a href="/admin/?entity=User&action=new" class="btn" title="Invite a teammate">
  91. <i class=" fa fa-fw fa-user-plus"></i>
  92. </a>
  93. </div>
  94. {% endif %}
  95. <div id="new-learn" class="menu-item">
  96. <a href="#" onclick="showTutorial()" class="btn" data-toggle="dropdown"
  97. title="Help Center">
  98. <i class=" fa fa-fw fa-regular fa-graduation-cap"></i>
  99. </a>
  100. </div>
  101. <div id="new-sms" class="menu-item"></div>
  102. <div id="new-email" class="menu-item"></div>
  103. <div class="menu-item">
  104. <a href="/logout" class="btn"><i class="fa fa-power-off"></i></a>
  105. </div>
  106. </div>
  107. <!-- EOF Header Nav -->
  108. </div>
  109. </div>
  110. </div>
  111. {% endblock header %}
  112. <!-- EOF HEADER -->
  113. <!-- BOF ASIDE-LEFT -->
  114. {% block sidebar_left -%}
  115. <div id="sidebar" class="sidebar">
  116. <div class="sidebar-content">
  117. <!-- sidebar-menu -->
  118. <div class="sidebar-menu">
  119. <ul>
  120. <li class="header-menu">
  121. </li>
  122. {% block main_menu_wrapper %}
  123. {{ include([
  124. _entity_config is defined ? _entity_config.templates.menu,
  125. easyadmin_config('design.templates.menu'),
  126. '@EasyAdmin/default/menu.html.twig'
  127. ]) }}
  128. {% endblock main_menu_wrapper %}
  129. </ul>
  130. </div>
  131. <!-- sidebar-menu -->
  132. </div>
  133. </div>
  134. {% endblock sidebar_left %}
  135. <!-- EOF ASIDE-LEFT -->
  136. <!-- BOF MAIN -->
  137. <div class="main">
  138. <!-- BOF Breadcrumb -->
  139. {% block flash_messages %}
  140. {{ include(_entity_config is defined ? _entity_config.templates.flash_messages : '@EasyAdmin/default/flash_messages.html.twig') }}
  141. {% endblock flash_messages %}
  142. <!-- EOF Breadcrumb -->
  143. <!-- BOF MAIN-BODY -->
  144. <div class="row">
  145. {% block content %}
  146. <div class="content w-100">
  147. {% block content_header_wrapper %}
  148. {% set _has_content_help = _entity_config is defined and _entity_config[app.request.query.get('action')]['help']|default(false) %}
  149. <div class="content-header {{ _has_content_help ? 'has-content-help' }}">
  150. {% block content_header %}
  151. <div class="d-flex flex-row justify-content-between align-content-center w-100">
  152. <div class="content-header-title">
  153. <h2 class="title">{% block content_title %}{% endblock %}</h2>
  154. </div>
  155. {% block global_actions_wrapper %}
  156. <div class="global-actions">{% block global_actions %}{% endblock %}</div>
  157. {% endblock %}
  158. </div>
  159. {% block content_help %}
  160. {% if _entity_config is defined and _entity_config[app.request.query.get('action')]['help']|default(false) %}
  161. <div class="content-header-help">
  162. {{ _entity_config[app.request.query.get('action')]['help']|trans(domain = _entity_config.translation_domain)|raw }}
  163. {% if articleId is defined or tourId is defined %}
  164. {{ include('@instrumentsBase/help.html.twig') }}
  165. {% endif %}
  166. </div>
  167. {% endif %}
  168. {% endblock content_help %}
  169. {% endblock content_header %}
  170. </div>
  171. {% endblock content_header_wrapper %}
  172. <div id="main" class="content-body">
  173. {% block main %}{% endblock %}
  174. </div>
  175. {% block content_footer_wrapper %}
  176. <div class="content-footer">
  177. {% block content_footer %}{% endblock %}
  178. </div>
  179. {% endblock %}
  180. </div>
  181. {% endblock content %}
  182. </div>
  183. <!-- EOF MAIN-BODY -->
  184. </div>
  185. <!-- EOF MAIN -->
  186. <!-- BOF FOOTER -->
  187. <div class="footer">
  188. <p class="text-center mt-3">Copyright © 2022-{{ 'now' | date('Y') }} {{ systemName|default('CorpHedge') }}.
  189. All rights reserved.</p>
  190. </div>
  191. <!-- EOF FOOTER -->
  192. <!-- BOF ASIDE-RIGHT -->
  193. <div id="sidebar-right">
  194. <div class="sidebar-right-container">
  195. <!-- BOF TABS -->
  196. <ul class="nav nav-tabs">
  197. <li class="nav-item">
  198. <a href="#tab-1" data-toggle="tab" class="nav-link active">Profile</a>
  199. </li>
  200. <li>
  201. <a href="#tab-2" data-toggle="tab" class="nav-link">Settings</a>
  202. </li>
  203. {# <li> #}
  204. {# <a href="#tab-3" data-toggle="tab" class="nav-link">Help</a> #}
  205. {# </li> #}
  206. </ul>
  207. <!-- EOF TABS -->
  208. <!-- BOF TAB PANES -->
  209. {% set _user_name = easyadmin_read_property(app.user, easyadmin_config('user.name_property_path'))|default('user.unnamed'|trans(domain = 'EasyAdminBundle')) %}
  210. {% set _logout_path = easyadmin_logout_path() %}
  211. {% set _user_has_logout = _logout_path is not empty %}
  212. <!-- EOF TAB PANES -->
  213. </div>
  214. </div>
  215. <!-- EOF ASIDE-RIGHT -->
  216. {# global modals #}
  217. {{ include('@EasyAdmin/default/modals.html.twig') }}
  218. <div id="overlay"></div>
  219. </div> <!-- END WRAPPER -->
  220. {% block body_javascript %}{% endblock body_javascript %}
  221. {% block body_custom_javascript %}
  222. {% for js_asset in easyadmin_config('design.assets.js') %}
  223. <script src="{{ asset(js_asset) }}"></script>
  224. {% endfor %}
  225. <script type="text/javascript">
  226. <!-- Smartsupp Live Chat script -->
  227. var _smartsupp = _smartsupp || {};
  228. _smartsupp.key = '63eca7c4fe35086d5c2e1ed1d532bc825b4d720e';
  229. window.smartsupp||(function(d) {
  230. var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  231. s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  232. c.type='text/javascript';c.charset='utf-8';c.async=true;
  233. c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  234. })(document);
  235. <!-- End Smartsupp Live Chat script -->
  236. var isSuperAdmin = {{ app.user.isSuperAdmin|default(0) }};
  237. var isAdmin = {{ app.user.isAdmin|default(0) }};
  238. var isManager = {{ app.user.isManager|default(0) }};
  239. var customer = {{ app.user.customer.id|default(0) }};
  240. </script>
  241. {% endblock body_custom_javascript %}
  242. </body>
  243. {% endblock body %}
  244. </html>