116 lines
6.8 KiB
PHP
116 lines
6.8 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2019-09-11 10:59:56
|
|
compiled from "C:\wamp64\www\sophalcrm\layouts\v7\modules\Mobile\simple\Vtiger\List.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:22435d78d3ac1db4a1-62728902%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'158e73105a22e94f27d8be6108a7afdedbcbfbbb' =>
|
|
array (
|
|
0 => 'C:\\wamp64\\www\\sophalcrm\\layouts\\v7\\modules\\Mobile\\simple\\Vtiger\\List.tpl',
|
|
1 => 1520586670,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '22435d78d3ac1db4a1-62728902',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'_scripts' => 0,
|
|
'_controller' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_5d78d3ac2344c',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_5d78d3ac2344c')) {function content_5d78d3ac2344c($_smarty_tpl) {?>
|
|
<?php echo $_smarty_tpl->getSubTemplate ("../Header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('scripts'=>$_smarty_tpl->tpl_vars['_scripts']->value), 0);?>
|
|
|
|
|
|
<section layout="row" flex class="content-section" ng-controller="<?php echo $_smarty_tpl->tpl_vars['_controller']->value;?>
|
|
">
|
|
<?php echo $_smarty_tpl->getSubTemplate ("../Vtiger/Toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
|
|
<?php echo $_smarty_tpl->getSubTemplate ("../Vtiger/SideMenu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
|
|
|
|
<md-button ng-click="listViewCreateEvent()" class="md-fab md-primary float-button md-fab-bottom-right" aria-label="addnew">
|
|
<i class="mdi mdi-plus"></i>
|
|
</md-button>
|
|
<div flex class="list-content">
|
|
<div class="list-filters" layout="row" flex>
|
|
<div flex="100" class="change-filter">
|
|
<md-button class="filter-btn" aria-label="notifications">
|
|
<i class="mdi mdi-filter-outline"></i>
|
|
</md-button>
|
|
<md-input-container class="current-filter">
|
|
<md-select ng-model="selectedFilter" aria-label="filter" ng-change="changeFilter()">
|
|
<md-optgroup label="Mine" aria-label="Mine">
|
|
<md-option ng-repeat="filter in filters.Mine track by filter.id" ng-value="filter.id" aria-label="{{filter.name}}">{{filter.name}}</md-option>
|
|
</md-optgroup>
|
|
<md-optgroup label="Shared" aria-label="Shared">
|
|
<md-option ng-repeat="filter in filters.Shared track by filter.id" ng-value="filter.id" aria-label="{{filter.name}}">{{filter.name}}</md-option>
|
|
</md-optgroup>
|
|
</md-select>
|
|
</md-input-container>
|
|
</div>
|
|
<!--div flex="50" class="sort-filter" ng-if="records.length">
|
|
<md-button class="filter-btn" aria-label="notifications">
|
|
<i class="mdi mdi-sort"></i>
|
|
</md-button>
|
|
<md-input-container class="current-sort-field">
|
|
<md-select ng-model="orderBy" aria-label="sortfield" placeholder="Sort" ng-change="changeSort(orderBy)">
|
|
<md-option ng-repeat="nameField in nameFields track by $index" ng-value="nameField.name" aria-label="nameField.name">{{nameField.label}}</md-option>
|
|
<md-option ng-repeat="header in headers track by $index" ng-value="header.name" aria-label="nameField.name">{{header.label}}</md-option>
|
|
</md-select>
|
|
</md-input-container>
|
|
</div>-->
|
|
</div>
|
|
<div layout="column" layout-fill layout-align="top center" ng-if="records.length">
|
|
<md-list class="records-list">
|
|
<md-list-item class="md-3-line" data-record-id="{{record.id}}" aria-label="row+{{record.id}}" ng-model="showActions" md-swipe-right="showActions=false;$event.stopPropagation();" md-swipe-left="showActions=true;$event.stopPropagation();" ng-click="gotoDetailView(record.id)" ng-repeat="record in records">
|
|
<div class="md-list-item-text">
|
|
<h3>
|
|
<span ng-repeat="label in headers">
|
|
<span ng-repeat="name in nameFields" ng-if="label.name === name">{{record[label.name] + " "}}</span>
|
|
</span>
|
|
</h3>
|
|
<p class="header-fields" ng-repeat="header in headers" ng-if="headerIndex(nameFields,header.name)== -1">
|
|
{{record[header.name]}}
|
|
</p>
|
|
</div>
|
|
<div class="actions-slider animate-show" ng-show="showActions" ng-swipe-right="hideRecordActions();" ng-animate="{enter: 'animate-enter', leave: 'animate-leave'}">
|
|
<div class="button-wrap" flex layout="row">
|
|
<div flex layout='column'>
|
|
<md-button class="list-action-edit md-icon-button" aria-label="list-action-edit" ng-click="listViewEditEvent($event, record.id);$event.stopPropagation();">
|
|
<span><i class="mdi mdi-pencil"></i></span>
|
|
</md-button>
|
|
</div>
|
|
<div flex layout='column'>
|
|
<md-button class="list-action-delete md-icon-button" aria-label="list-action-delete" ng-click="showConfirmDelete($event, record.id);$event.stopPropagation();">
|
|
<span><i class="mdi mdi-delete"></i></span>
|
|
</md-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<md-divider ></md-divider>
|
|
</md-list-item>
|
|
<md-list-item class="md-1-line load-more-link" >
|
|
<div ng-click="loadMoreRecords()" ng-show="moreRecordsExists">
|
|
Load more
|
|
</div>
|
|
</md-list-item>
|
|
</md-list>
|
|
|
|
</div>
|
|
<div class="no-records-message" ng-if="!records.length">
|
|
<div class="no-records">No Records Found</div>
|
|
</div>
|
|
<div flex></div>
|
|
</div>
|
|
</section>
|
|
|
|
<?php echo $_smarty_tpl->getSubTemplate ("../Footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
|
|
<?php }} ?>
|