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

Open in your IDE?
  1. {% extends "@UVDeskCoreFramework//Templates//layout.html.twig" %}
  2. {% block title %}Dashboard{% endblock %}
  3. {% block templateCSS %}
  4.     <style>
  5.         .uv-activity-wrapper {
  6.             margin-top: 60px;
  7.         }
  8.         .uv-activity-wrapper .uv-activity-chart-col-lt {
  9.             width: 80%;
  10.             float: left;
  11.         }
  12.         ul.uv-activity-brick-wrapper {
  13.             list-style: none;
  14.             margin: 0;
  15.             padding: 0;
  16.             width: 100%;
  17.             display: inline-block;
  18.         }
  19.         ul.uv-activity-brick-wrapper li {
  20.             width: 25%;
  21.             display: inline-block;
  22.             float: left;
  23.             padding-left: 10px;
  24.             padding-right: 10px;
  25.             color: #fff;
  26.         }
  27.         ul.uv-activity-brick-wrapper .uv-activity-brick {
  28.             border-radius: 3px;
  29.             padding: 10px;
  30.             text-align: center;
  31.         }
  32.         ul.uv-activity-brick-wrapper li a {
  33.             color: #fff;
  34.             font-size: 45px;
  35.             width: 100%;
  36.             display: inline-block;
  37.         }
  38.         ul.uv-activity-brick-wrapper li label {
  39.             font-size: 18px;
  40.             width: 100%;
  41.             display: inline-block;
  42.         }
  43.         .uv-activity-chart-bottom-row .uv-pannel-body {
  44.             height: 450px;
  45.         }
  46.         .kudos-overview {
  47.             width: 40%;
  48.             float: left;
  49.             padding-right: 10px;
  50.         }
  51.         .recent-notification {
  52.             width: 30%;
  53.             float: left;
  54.             padding-left: 10px;
  55.         }
  56.         .completion-chart {
  57.             width: 300px;
  58.             margin: 0 auto;
  59.         }
  60.         .progress-meter .background {
  61.             fill: #EFEFEF;
  62.         }
  63.         .progress-meter text {
  64.             font-size: 30px;
  65.         }
  66.         .kudos-overview .uv-pannel-body {
  67.             text-align: center;
  68.             padding-top: 50px;
  69.         }
  70.         .kudos-overview .uv-pannel-body label {
  71.             margin-top: 10px;
  72.             display: inline-block;
  73.         }
  74.         .recent-notification ul {
  75.             list-style: none;
  76.             padding: 0;
  77.             margin: 0;
  78.             overflow-y: auto;
  79.             max-height: 400px !important;
  80.         }
  81.         .recent-notification .uv-pannel-body {
  82.             padding: 0;
  83.         }
  84.         .recent-notification ul li {
  85.             color: #333333;
  86.             border-bottom: solid 1px #D3D3D3;
  87.             padding: 15px 20px;
  88.         }
  89.         .recent-notification ul li:first-child {
  90.             border-top: none;
  91.         }
  92.         .recent-notification ul li:last-child {
  93.             border-bottom: none;
  94.         }
  95.         .recent-notification ul li * {
  96.             display: inline-block !important;
  97.         }
  98.         .recent-notification ul li .timeago {
  99.             color: #9E9E9E;
  100.             margin-top: 5px;
  101.             font-size: 13px;
  102.         }
  103.         .recent-notification label {
  104.             text-align: center;
  105.             display: inline-block;
  106.             width: 100%;
  107.             padding-top: 15px;
  108.             border-top: 1px solid #d3d3d3;
  109.         }
  110.         .recent-notification span.uv-notification-message {
  111.             float: left;
  112.             width: 100%;
  113.         }
  114.         .kudos-count {
  115.             width: 30%;
  116.             float: left;
  117.             padding-right: 10px;
  118.             padding-left: 10px;
  119.         }
  120.         .kudos-count .uv-pannel-body {
  121.             padding-top: 50px;
  122.             overflow-y: auto;
  123.         }
  124.         .kudos-count ul {
  125.             list-style: none;
  126.             padding: 0;
  127.             margin: 0;
  128.         }
  129.         .kudos-count ul li {
  130.             width: 100%;
  131.             display: inline-block;
  132.             padding: 15px 0;
  133.         }
  134.         .kudos-count ul li .uv-icon-kudos  {
  135.             vertical-align: middle;
  136.             margin-right: 10px;
  137.         }
  138.         .uv-activity-wrapper .uv-activity-chart-col-rt {
  139.             width: 20%;
  140.             float: left;
  141.         }
  142.         .uv-activity-chart-col-rt ul {
  143.             padding: 0;
  144.             margin: 0;
  145.             list-style: none;
  146.         }
  147.         .uv-activity-chart-col-rt ul li {
  148.             margin-bottom: 10px
  149.         }
  150.         .uv-activity-chart-col-rt ul li span {
  151.             width: 100%;
  152.             display: inline-block;
  153.             color: #6f6f6f;
  154.         }
  155.         .uv-middle {
  156.             margin: 0 auto;
  157.             display: inline-block;
  158.             margin-top: 200px;
  159.             text-align: center;
  160.             width: 100%;
  161.         }
  162.         @media screen and (max-width: 1024px) {
  163.             .uv-activity-wrapper .uv-activity-chart-col-lt {
  164.                 width: 100%;
  165.                 padding: 0;
  166.             }
  167.             .uv-activity-wrapper .uv-activity-chart-col-rt {
  168.                 width: 100%;
  169.             }
  170.             .kudos-overview {
  171.                 width: 100%;
  172.                 padding: 0;
  173.             }
  174.             .kudos-count {
  175.                 width: 100%;
  176.                 padding: 0;
  177.             }
  178.             .recent-notification {
  179.                 width: 100%;
  180.                 padding: 0;
  181.             }
  182.             ul.uv-activity-brick-wrapper li {
  183.                 width: 50%;
  184.                 margin: 10px 0;
  185.             }
  186.         }
  187.         @media screen and (max-width: 768px) {
  188.             ul.uv-activity-brick-wrapper li {
  189.                 width: 100%;
  190.             }
  191.         }
  192.         @media screen and (max-width: 467px) {
  193.             .completion-chart {
  194.                 width: 100%;
  195.             }
  196.         }
  197.         span.uv-notification-message a:link, span.uv-notification-message a:visited, label a:link, label a:visited {
  198.             color: #2750C4;
  199.             font-size: 15px;
  200.         }
  201.         .uv-mob-aside {
  202.             display: none;
  203.         }
  204.         #btndisclaimer {
  205.               position: fixed;
  206.               right: 25px;
  207.               bottom: 10px;
  208.             background: url("");
  209.         }
  210.     </style>
  211. {% endblock %}
  212. {% block pageContent %}
  213.     <div class="uv-area">
  214.         {{ uvdesk_extensibles.getRegisteredComponent('Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\Dashboard').getHomepageTemplate().render()|raw }}
  215.         {# @TODO: Version number should be loaded dynamically #}
  216.         <div class="uv-copyright">
  217.             <span class="uv-credit-text">{{ 'Powered by'|trans }} <a href="https://www.uvdesk.com" target="_blank">UVdesk</a></span> | <span class="uv-credit-text">V -1.1.0</span>
  218.         </div>
  219.         <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
  220.             <button type="submit" class="btn btn-primary btn-md" id="btndisclaimer" title={{'clear cache'|trans }}><img src="https://api.iconify.design/mdi:delete-restore.svg?height=24" aria-hidden="true"></button>
  221.           </div>
  222.     </div>
  223. <script>
  224.     $('#btndisclaimer').click(function(e){
  225.         $.ajax({
  226.             url : "{{ path('helpdesk_member_cache_clear') }}",
  227.             method: 'POST',
  228.             data: "",
  229.             success : function(response) {
  230.                 app.appView.renderResponseAlert(response);
  231.             },
  232.             error: function (xhr) {
  233.                 app.appView.renderResponseAlert(xhr);
  234.             }
  235.         });
  236.     });
  237. </script>
  238. {% endblock %}
  239. {% block footer %}
  240.     {{ parent() }}
  241. {% endblock %}