ACC SHELL
{block content}
<div class="row files Files Manage">
<div class="large-12 columns">
<h2>Správa souborů</h2>
{if count($files)}
{if count($files) > 10}
<hr>
<p class="centerAlign no-margin"><a n:href="Files:upload" class="button small">Nahrát soubor</a></p>
{/if}
<table class="responsive">
<tr>
<th>Název</th>
<th>Štítky</th>
<th>Popis</th>
<th>Nahráno kdy</th>
<th>Nahráno kým</th>
<th>Vlastník</th>
<th>Skupina</th>
<th></th>
<th></th>
</tr>
{foreach $files as $file}
{var $uploadedBy = $users[$file->uploadedBy]}
{var $owner = $users[$file->owner]}
<tr>
<td><a n:href="Files:get $file->id">{$file->name}.{$file->extension}</a></td>
<td class="centerAlign">{!array($filesLabels, $file)|createFilesLabels}</td>
<td>{$file->description}</td>
<td>{$file->uploaded}</td>
<td>{$uploadedBy->surname}, {$uploadedBy->name}<br>({$uploadedBy->username})</td>
<td>{$owner->surname}, {$owner->name}<br>({$owner->username})</td>
<td>{$file->group}</td>
<td><a n:href="Files:edit $file->id" class="small secondary button no-margin">upravit</a></td>
<td><a n:href="Files:delete $file->id" class="small alert button no-margin confirm">smazat</a></td>
</tr>
{/foreach}
</table>
{else}
<hr>
<p class="centerAlign">V databázi nejsou nahrány žádné soubory.</p>
{/if}
<p class="centerAlign no-margin"><a n:href="Files:upload" class="button small">Nahrát soubor</a></p>
</div>
</div>
ACC SHELL 2018