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