2020-06-07 19:04:43 +03:00
|
|
|
{extends "@layout.xml"}
|
|
|
|
|
|
|
|
{block wrap}
|
|
|
|
<div class="page_wrap">
|
|
|
|
<div n:ifset="tabs" class="tabs">
|
|
|
|
{include tabs}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container_gray">
|
|
|
|
{var data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
|
|
|
|
|
|
|
{if sizeof($data) > 0}
|
|
|
|
<div class="content" n:foreach="$data as $dat">
|
2022-01-25 01:21:58 +03:00
|
|
|
<table>
|
2020-06-07 19:04:43 +03:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td valign="top">
|
|
|
|
<a href="{include link, x => $dat}">
|
|
|
|
{include preview, x => $dat}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td valign="top" style="width: 100%">
|
|
|
|
<a href="{include link, x => $dat}">
|
|
|
|
<b>
|
|
|
|
{include name, x => $dat}
|
|
|
|
</b>
|
|
|
|
</a>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{include description, x => $dat}
|
|
|
|
</td>
|
2021-12-22 16:26:49 +03:00
|
|
|
<td n:ifset="actions" valign="top" class="action_links" style="width: 150px">
|
|
|
|
{include actions, x => $dat}
|
|
|
|
</td>
|
2020-06-07 19:04:43 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="padding: 8px;">
|
|
|
|
{include "components/paginator.xml", conf => (object) [
|
2021-12-04 14:25:57 +03:00
|
|
|
"page" => $page,
|
|
|
|
"count" => $count,
|
|
|
|
"amount" => sizeof($data),
|
|
|
|
"perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE,
|
|
|
|
"atBottom" => true,
|
2020-06-07 19:04:43 +03:00
|
|
|
]}
|
|
|
|
</div>
|
|
|
|
{else}
|
|
|
|
{ifset customErrorMessage}
|
|
|
|
{include customErrorMessage}
|
|
|
|
{else}
|
|
|
|
{include "components/nothing.xml"}
|
|
|
|
{/ifset}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/block}
|