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