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