vendor/uvdesk/core-framework/Resources/views/Templates/layout.html.twig line 87

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{% block title %}HelpDesk{% endblock %}</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="icon" type="image/x-icon" sizes="16x16 32x32 48x48" href="{{ asset('favicon.ico') }}" />
  7. <!-- Stylesheets -->
  8. <link href="{{ asset('bundles/uvdeskcoreframework/css/_uikit.css') }}" type="text/css" rel="stylesheet" media="all" />
  9. <link href="{{ asset('bundles/uvdeskcoreframework/css/_custom.css') }}" type="text/css" rel="stylesheet" media="all" />
  10. <link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" type="text/css" rel="stylesheet">
  11. <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet">
  12. <!-- Custom CSS -->
  13. {% set websiteConfiguration = user_service.getWebsiteConfiguration('knowledgebase') %}
  14. {% set website = user_service.getWebsiteDetails('helpdesk') %}
  15. {{ include('@UVDeskCoreFramework/Templates/lightskin.html.twig') }}
  16. <!-- Custom Stylesheets -->
  17. {% for stylesheet in uvdesk_extensibles.getRegisteredComponent('Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\Dashboard').getDashboardTemplate().getStylesheetResources() %}
  18. <link href="{{ asset(stylesheet) }}" type="text/css" rel="stylesheet" media="all" />
  19. {% endfor %}
  20. {% block templateCSS %}{% endblock %}
  21. <!-- Scripts -->
  22. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  23. <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.1/underscore-min.js"></script>
  24. <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.0/backbone-min.js"></script>
  25. <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.validation/0.11.5/backbone-validation-min.js"></script>
  26. <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.paginator/2.0.8/backbone.paginator.min.js"></script>
  27. <script src="{{ asset('bundles/uvdeskcoreframework/js/_dropdown.js') }}"></script>
  28. <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/6.2.0/d3.min.js"></script>
  29. <script src="{{ asset('bundles/uvdeskcoreframework/js/viewer.js') }}"></script>
  30. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  31. <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js"></script>
  32. <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
  33. </head>
  34. {% set bodyClass = '' %}
  35. {% set bodySkinClass = '' %}
  36. {% if app.request.locale == "ar" %}
  37. {% set bodyClass = 'uv-rtl' %}
  38. {% endif %}
  39. <body class="{{ bodySkinClass ~ ' ' ~ bodyClass }}">
  40. <div class="uv-notifications-wrapper">
  41. <noscript>
  42. <div class="uv-notification page-load uv-error">
  43. <p>{% trans %}Your browser does not support JavaScript or You disabled JavaScript, Please enable those !{% endtrans %}</p>
  44. </div>
  45. <style>.uv-loader-view {display: none;}</style>
  46. </noscript>
  47. {% if uvdesk_service.requestHeadersSent() == false %}
  48. {% for flashMessage in app.session.flashbag.get('success') %}
  49. <div class="uv-notification page-load uv-success">
  50. <span class="uv-notification-close"></span>
  51. <p>{{ flashMessage|raw }}</p>
  52. </div>
  53. {% endfor %}
  54. {% for flashMessage in app.session.flashbag.get('warning') %}
  55. <div class="uv-notification page-load uv-error">
  56. <span class="uv-notification-close"></span>
  57. <p>{{ flashMessage|raw }}</p>
  58. </div>
  59. {% endfor %}
  60. {% endif %}
  61. </div>
  62. <div class="uv-pop-up-overlay" id="confirm-modal">
  63. <div class="uv-pop-up-box uv-pop-up-slim">
  64. <span class="uv-pop-up-close"></span>
  65. <h2>{{ 'Confirm Action'|trans }}</h2>
  66. <p>{{ 'Are you sure? You want to perform this action.'|trans }}</p>
  67. <div class="uv-pop-up-actions">
  68. <a href="#" class="uv-btn uv-btn-error confirm">{{ 'Confirm'|trans }}</a>
  69. <a href="#" class="uv-btn cancel">{{ 'Cancel'|trans }}</a>
  70. </div>
  71. </div>
  72. </div>
  73. {% set currentUser = user_service.getSessionUser() %}
  74. {% if currentUser is not empty and currentUser.getAgentInstance() is not empty %}
  75. {% set currentUserDetails = currentUser.getAgentInstance().getPartialDetails() %}
  76. {% endif %}
  77. {% block sidebar %}
  78. {% if currentUser is defined and currentUser is not empty %}
  79. {% include "@UVDeskCoreFramework/Templates/sidebar.html.twig" %}
  80. {% endif %}
  81. {% endblock %}
  82. {% block pageWrapper %}
  83. <div class="uv-paper">
  84. {% block pageHeader %}
  85. {% include "@UVDeskCoreFramework/Templates/header.html.twig" %}
  86. {% endblock %}
  87. <div class="uv-wrapper">
  88. <div class="uv-container">
  89. {% block pageContent %}{% endblock %}
  90. </div>
  91. </div>
  92. </div>
  93. {% endblock %}
  94. {% block footer %}
  95. <script src="{{ asset('bundles/uvdeskcoreframework/js/_common.js') }}"></script>
  96. {% include "@UVDeskCoreFramework/Templates/pagination.html.twig" %}
  97. {# Confirm Action Dialog #}
  98. <div class="uv-pop-up-overlay" id="confirm-modal">
  99. <div class="uv-pop-up-box uv-pop-up-slim">
  100. <span class="uv-pop-up-close"></span>
  101. <h2>{{ 'Confirm Action'|trans }}</h2>
  102. <p>{{ 'Are you sure? You want to perform this action.'|trans }}</p>
  103. <div class="uv-pop-up-actions">
  104. <a href="#" class="uv-btn uv-btn-error confirm">{{ 'Confirm'|trans }}</a>
  105. <a href="#" class="uv-btn cancel">{{ 'Cancel'|trans }}</a>
  106. </div>
  107. </div>
  108. </div>
  109. {# Loader Template #}
  110. <script type="text/template" id="loader-tmp">
  111. <div class="uv-loader">
  112. <span></span>
  113. <span></span>
  114. <span></span>
  115. </div>
  116. </script>
  117. {# Full View Loader Template #}
  118. <script type="text/template" id="full-view-loader">
  119. <div class="uv-loader-view">
  120. <div class="uv-loader">
  121. <span></span>
  122. <span></span>
  123. <span></span>
  124. </div>
  125. </div>
  126. </script>
  127. {# Notification Template #}
  128. <script type="text/template" id="notification-template">
  129. <div class="uv-notification <% if(alertClass == 'danger') { %>uv-error<% } else { %> <%= 'uv-' + alertClass %> <% } %>">
  130. <span class="uv-notification-close"></span>
  131. <p><%= alertMessage %> </p>
  132. </div>
  133. </script>
  134. <script type="text/javascript">
  135. var warningResponse = {
  136. 'alertClass' : 'danger',
  137. 'alertMessage' : '{{ "Error : Something went wrong, please try again later"|trans }}',
  138. };
  139. </script>
  140. {% endblock %}
  141. {# Custom Javascript #}
  142. {% for javascript in uvdesk_extensibles.getRegisteredComponent('Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\Dashboard').getDashboardTemplate().getJavascriptResources() %}
  143. <script src="{{ asset(javascript) }}" type="text/javascript"></script>
  144. {% endfor %}
  145. </body>
  146. </html>