vendor\uvdesk\core-framework\Resources\views\Templates\layout.html.twig line 1

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