134 lines
7.8 KiB
PHP
134 lines
7.8 KiB
PHP
<?php /* Smarty version Smarty-3.1.19, created on 2019-09-08 15:00:52
|
|
|
|
compiled from "C:\wamp64\www\sophalcrm\customerportal\layouts\default\templates\Portal\Home.tpl" */ ?>
|
|
|
|
<?php /*%%SmartyHeaderCode:138345d7517a43dbcc0-30670135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
|
|
'file_dependency' =>
|
|
|
|
array (
|
|
|
|
'aaf0e6cab9674945c4d8ff3b6e610e3dc187d70f' =>
|
|
|
|
array (
|
|
|
|
0 => 'C:\\wamp64\\www\\sophalcrm\\customerportal\\layouts\\default\\templates\\Portal\\Home.tpl',
|
|
|
|
1 => 1520231416,
|
|
|
|
2 => 'file',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'nocache_hash' => '138345d7517a43dbcc0-30670135',
|
|
|
|
'function' =>
|
|
|
|
array (
|
|
|
|
),
|
|
|
|
'has_nocache_code' => false,
|
|
|
|
'version' => 'Smarty-3.1.19',
|
|
|
|
'unifunc' => 'content_5d7517a4464752_68318581',
|
|
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
|
|
<?php if ($_valid && !is_callable('content_5d7517a4464752_68318581')) {function content_5d7517a4464752_68318581($_smarty_tpl) {?>
|
|
|
|
|
|
|
|
|
|
|
|
<div ng-controller="Home_Component" class="container-fluid main-container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-9" ng-if="profileFetched">
|
|
|
|
<h2 title="{{org}}" class="portal-welcome">{{'Welcome to' | translate}} {{org|limitTo:25}}{{org.length > 25? '...' : ''}} {{'Portal' | translate}}</h2>
|
|
|
|
</div>
|
|
|
|
<div ng-if="supportNotification" class="pull-right col-md-3 col-lg-3 col-sm-3 col-xs-3">
|
|
|
|
<div class="alert alert-danger alert-dismissible portal-alert" role="alert">
|
|
|
|
<button type="button" class="close support-notification-close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
|
|
<strong class="support-notification">{{'Your support ends on' | translate}} {{notification}}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
|
|
|
|
<div ng-if="announcementExists" class="alert alert-warning portal-announcement">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
|
|
<p ng-bind-html="announcement"> {{announcement}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="row charts-container">
|
|
|
|
<div ng-repeat="(name,value) in enabledCharts" ng-if="name!='language' && name!='count'">
|
|
|
|
<ng-switch on="value.type">
|
|
|
|
<div ng-class="applyChartClass($index)">
|
|
|
|
<div ng-switch-when="spline"><div class="panel panel-default"><div class="panel-heading separator"> <div class="panel-title" translate="{{name}}">{{name}}</div></div>
|
|
|
|
<cp-line items="value.data"></cp-line></div></div>
|
|
|
|
<div ng-switch-when="pie"><div class="panel panel-default"><div class="panel-heading separator"> <div class="panel-title" translate="{{name}}">{{name}}</div></div>
|
|
|
|
<cp-pie items="value.data"></cp-pie></div></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="row tickets-panel-container" ng-if="activateRecentTickets">
|
|
|
|
<div class="panel-heading separator"><div class="tickets panel-title">{{'Recent'|translate}} {{ticketsUiLabel}}</div></div>
|
|
|
|
<div ng-repeat="recentTicket in recentTickets" ng-if="recentTickets.length>0">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<div class="panel panel-default tickets-panel-content">
|
|
|
|
<div class="tickets-panel-heading separator">
|
|
|
|
<div class="ticket-panel-title" ng-class='{"first-ticket-panel-title":$index==0}'><a ng-click="loadRecentRecord('HelpDesk',recentTicket.id)">{{recentTicket.label}}</a>
|
|
|
|
|
|
|
|
|
|
|
|
<strong class="text-primary pull-right"><span class="label" ng-class="determineStatus(recentTicket.status)">{{recentTicket.statuslabel}}</span></strong>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body tickets-panel-body" ng-if="recentTicket.description">
|
|
|
|
<p style="white-space: pre-line;">{{recentTicket.description}}</p>
|
|
|
|
</div>
|
|
|
|
<hr ng-show="!$last">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br><br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 shortcut-container">
|
|
|
|
<div class="panel panel-default" ng-if="showShortcuts">
|
|
|
|
<div class="panel-heading separator">
|
|
|
|
<div class="panel-title">{{'What would you like to do ?' | translate}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="support panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<div ng-repeat="(module,actions) in shortcuts" class="col-lg-12 shortcut-done">
|
|
|
|
<h5>{{module}}</h5>
|
|
|
|
<div class="col-lg-12 shortcut-button" ng-class-even="'even-button'" ng-repeat="action in actions" >
|
|
|
|
<button translate="{{action}}" ng-click="openShortcut(module,action)" class="btn btn-default">{{action}}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-default" ng-repeat="(module,values) in recentRecords" ng-if="ifNotTickets(module) && isObj(values)">
|
|
|
|
<div class="panel-heading separator">
|
|
|
|
<div class="panel-title" >{{'Recent'|translate}} {{module|translate}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="shortcut panel-body" >
|
|
|
|
<div class="row" >
|
|
|
|
<div class="col-lg-12 recent-list">
|
|
|
|
|
|
|
|
<ul class="nav">
|
|
|
|
<li ng-repeat="value in values"><a ng-if="module!=='Faq'" ng-click="loadRecentRecord(module,value.id)">{{value.label}}</a></li>
|
|
|
|
<li ng-repeat="value in values"><a ng-if="module==='Faq'" ng-click="loadRecentRecord(module,value.id)">{{value.label}}</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="<?php echo portal_componentjs_file('HelpDesk');?>
|
|
|
|
"></script>
|
|
|
|
<?php echo $_smarty_tpl->getSubTemplate (portal_template_resolve('HelpDesk',"partials/IndexContentAfter.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="<?php echo portal_componentjs_file('Documents');?>
|
|
|
|
"></script>
|
|
|
|
<?php echo $_smarty_tpl->getSubTemplate (portal_template_resolve('Documents',"partials/IndexContentAfter.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<?php }} ?>
|
|
|