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/2.2.4/jquery.min.js"></script>
  23.         <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js"></script>
  24.         <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/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/5.5.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.22.2/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.     <body>
  36.         <div class="uv-notifications-wrapper">
  37.             <noscript>
  38.                 <div class="uv-notification page-load uv-error">
  39.                     <p>{% trans %}Your browser does not support JavaScript or You disabled JavaScript, Please enable those !{% endtrans %}</p>
  40.                 </div>
  41.                 <style>.uv-loader-view {display: none;}</style>
  42.             </noscript>
  43.             {% if uvdesk_service.requestHeadersSent() == false %}
  44.                 {% for flashMessage in app.session.flashbag.get('success') %}
  45.                     <div class="uv-notification page-load uv-success">
  46.                         <span class="uv-notification-close"></span>
  47.                         <p>{{ flashMessage|raw }}</p>
  48.                     </div>
  49.                 {% endfor %}
  50.                 
  51.                 {% for flashMessage in app.session.flashbag.get('warning') %}
  52.                     <div class="uv-notification page-load uv-error">
  53.                         <span class="uv-notification-close"></span>
  54.                         <p>{{ flashMessage|raw }}</p>
  55.                     </div>
  56.                 {% endfor %}
  57.             {% endif %}
  58.         </div>
  59.         <div class="uv-pop-up-overlay" id="confirm-modal">
  60.             <div class="uv-pop-up-box uv-pop-up-slim">
  61.                 <span class="uv-pop-up-close"></span>
  62.                 <h2>{{ 'Confirm Action'|trans }}</h2>
  63.                 <p>{{ 'Are you sure? You want to perform this action.'|trans }}</p>
  64.                 <div class="uv-pop-up-actions">
  65.                     <a href="#" class="uv-btn uv-btn-error confirm">{{ 'Confirm'|trans }}</a>
  66.                     <a href="#" class="uv-btn cancel">{{ 'Cancel'|trans }}</a>
  67.                 </div>
  68.             </div>
  69.         </div>
  70.         {% set currentUser = user_service.getSessionUser() %}
  71.         {% if currentUser is not empty and currentUser.getAgentInstance() is not empty %}
  72.             {% set currentUserDetails = currentUser.getAgentInstance().getPartialDetails() %}
  73.         {% endif %}
  74.         {% block sidebar %}
  75.             {% if currentUser is defined and currentUser is not empty %}
  76.                 {% include "@UVDeskCoreFramework/Templates/sidebar.html.twig" %}
  77.             {% endif %}
  78.         {% endblock %}
  79.         {% block pageWrapper %}
  80.             <div class="uv-paper">
  81.                 {% block pageHeader %}
  82.                     {% include "@UVDeskCoreFramework/Templates/header.html.twig" %}
  83.                 {% endblock %}
  84.                 <div class="uv-wrapper">
  85.                     <div class="uv-container">
  86.                         {% block pageContent %}{% endblock %}
  87.                     </div>
  88.                 </div>
  89.             </div>
  90.         {% endblock %}
  91.         
  92.         {% block footer %}
  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>