nextcloud/apps/files_sharing/templates/admin.php

30 lines
1.1 KiB
PHP
Raw Normal View History

2011-06-12 00:14:24 +04:00
<?php if ($_['shared_items'] == null) {echo "You are not sharing any of your files";} else {?>
<table id='itemlist'>
<thead>
<tr>
<th>Item</th>
<th>Shared With</th>
<th>Permissions</th>
2011-06-12 00:14:24 +04:00
</tr>
</thead>
<tbody>
<?php foreach($_['shared_items'] as $item):?>
<tr class='link' id='<?php echo $item['id'];?>'>
<td class='item'><?php echo $item['item'];?></td>
2011-06-12 00:14:24 +04:00
<td class='uid_shared_with'><?php echo $item['uid_shared_with'];?></td>
<td class='permissions'><?php echo $item['permissions'];?></td>
2011-06-12 00:14:24 +04:00
<td><button class='delete fancybutton' data-token='<?php echo $link['token'];?>'>Delete</button></td>
</tr>
<?php endforeach;?>
<tr id='newlink_row'>
<form action='#' id='newlink'>
<input type='hidden' id='expire_time'/>
<td class='path'><input placeholder='Item' id='path'/></td>
<td class='expire'><input placeholder='Share With' id='expire'/></td>
<td class='permissions'><input placeholder='Permissions' id='expire'/></td>
2011-06-12 00:14:24 +04:00
<td><input type='submit' value='Share'/></td>
</form>
</tr>
</tbody>
</table>
<?php } ?>