mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
87 lines
3.3 KiB
Smarty
87 lines
3.3 KiB
Smarty
{*
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
*}
|
|
|
|
{* crmv@30967 - listview più standard *}
|
|
{* crmv@97237 *}
|
|
{* crmv@104853 *}
|
|
{* crmv@194449 *}
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
{foreach item=reportfolder from=$REPT_FLDR}
|
|
<div class="vte-card">
|
|
<div style="margin:12px 0px">
|
|
<b>{$reportfolder.name}</b>
|
|
<i style="color:#C0C0C0">
|
|
{if !empty($MOD[$reportfolder.description])}
|
|
- {$MOD[$reportfolder.description]}
|
|
{elseif !empty($reportfolder.description)}
|
|
- {$reportfolder.description}
|
|
{/if}
|
|
</i>
|
|
</div>
|
|
<form class="report_form">
|
|
<input name="folderId" type="hidden" value="{$FOLDE_IDS}">
|
|
|
|
{if is_array($reportfolder.details) && count($reportfolder.details) > 0} {* crmv@172864 *}
|
|
<table class="vtetable">
|
|
{* table headers *}
|
|
<thead>
|
|
<tr>
|
|
<th width="2%">
|
|
<input type="checkbox" name="selectall{$reportfolder.id}" onclick='toggleSelect(this.checked,"selected_id{$reportfolder.id}")' />
|
|
</th>
|
|
<th width="100">{$APP.LBL_ACTION}</th>
|
|
<th width="40%">{$MOD.LBL_REPORT_NAME}</th>
|
|
<th>{$MOD.LBL_DESCRIPTION}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{* table content *}
|
|
{foreach name=reportdtls item=reportdetails from=$reportfolder.details}
|
|
<tr>
|
|
<td>
|
|
{if $reportdetails.state neq 'SAVED' && $reportdetails.customizable eq '1' && $reportdetails.editable eq 'true'}
|
|
<input id="check_report_{$reportdetails.reportid}" name="selected_id{$reportfolder.id}" value="{$reportdetails.reportid}" onclick='toggleSelectAll(this.name,"selectall{$reportfolder.id}")' type="checkbox" />
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
{if $reportdetails.customizable eq '1' && $reportdetails.editable eq 'true'}
|
|
<a href="javascript:;" onClick="Reports.editReport('{$reportdetails.reportid}');"><i class="vteicon" title="{$MOD.LBL_CUSTOMIZE_BUTTON}...">create</i></a>
|
|
{/if}
|
|
{if $reportdetails.state neq 'SAVED' && $reportdetails.editable eq 'true'}
|
|
<a href="javascript:;" onclick="DeleteReport('{$reportdetails.reportid}');"><i class="vteicon" title="{$MOD.LBL_DELETE}...">delete</i></a>
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
{if $reportdetails.url neq ''}
|
|
<a href="{$reportdetails.url}">{$reportdetails.reportname|getTranslatedString:'Reports'}</a>
|
|
{else}
|
|
<a href="index.php?module=Reports&action=SaveAndRun&record={$reportdetails.reportid}&folderid={$reportfolder.id}">{$reportdetails.reportname|getTranslatedString}</a>
|
|
{/if}
|
|
{if $reportdetails.sharingtype eq 'Shared'}
|
|
<i class="vteicon md-sm md-text nohover">people</i>
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
{$reportdetails.description|getTranslatedString:'Reports'}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{else}
|
|
<p style="margin:4px">{$APP.LBL_EMPTY_FOLDER}</p>
|
|
{/if}
|
|
</form>
|
|
<br>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div> |