Files
CRM/customerportal/layouts/default/templates/Documents/partials/RelatedDocumentsContent.tpl
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

46 lines
2.7 KiB
Smarty

{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.2
* ("License.txt"); You may not use this file except in compliance with the License
* The Original Code is: Vtiger CRM Open Source
* The Initial Developer of the Original Code is Vtiger.
* Portions created by Vtiger are Copyright (C) Vtiger.
* All Rights Reserved.
************************************************************************************}
{literal}
<div class="cp-table-container" ng-show="documentsrecords">
<div class="table-responsive">
<table class="table table-hover table-condensed table-detailed dataTable no-footer">
<thead>
<tr class="listViewHeaders">
<th ng-hide="documentsheader=='id'" ng-repeat="documentsheader in documentsheaders" nowrap="" class="medium">
<a href="javascript:void(0);" class="listViewHeaderValues" translate="{{documentsheader}}">{{documentsheader}}</a>
</th>
<th ng-hide="header=='id'" class="medium">
<a class="listViewHeaderValues">{{'Actions'|translate}}</a>
</th>
</tr>
</thead>
<tbody>
<tr class="listViewEntries" ng-repeat="documentrecord in documentsrecords">
<td ng-hide="documentsheader=='id'" ng-repeat="documentsheader in documentsheaders" class="listViewEntryValue medium" ng-click="ChangeLocation('Documents',documentrecord.id)">
<ng-switch on="documentrecord[documentsheader].type">
<a ng-href="index.php?module=Documents&view=Detail&id={{documentrecord.id}}"></a>
<span ng-switch-default>{{documentrecord[documentsheader]}}</span>
</ng-switch>
</td>
<td ng-hide="documentsheader=='id'" class="listViewEntryValue medium" nowrap="" style='cursor: pointer;'>
<span ng-if="documentrecord.documentExists" class="btn btn-primary" ng-click="downloadFile('Documents',documentrecord.id,id)">{{'Download'|translate}}</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<a ng-if="!documentsLoaded && !noDocuments" ng-click="loadDocumentsPage(documentsPageNo)">{{'more'|translate}}...</a>
<p ng-if="documentsLoaded" class="text-muted">{{'No more documents'|translate}}</p>
<p ng-if="!documentsLoaded && noDocuments" class="text-muted">{{'No documents'|translate}}</p>
{/literal}