2011-07-20 17:34:16 +00:00
|
|
|
<fieldset>
|
2011-10-02 14:06:30 +00:00
|
|
|
<legend><?php echo $l->t('Your Shared Files');?></legend>
|
2011-08-11 11:53:25 +00:00
|
|
|
<table id="itemlist">
|
2011-07-20 17:34:16 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-10-02 14:06:30 +00:00
|
|
|
<th><?php echo $l->t('Item');?></th>
|
|
|
|
<th><?php echo $l->t('Shared With');?></th>
|
|
|
|
<th><?php echo $l->t('Permissions');?></th>
|
2011-07-20 17:34:16 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach($_['shared_items'] as $item):?>
|
2011-08-11 11:53:25 +00:00
|
|
|
<tr class="item">
|
|
|
|
<td class="source"><?php echo substr($item['source'], strlen("/".$_SESSION['user_id']."/files/"));?></td>
|
|
|
|
<td class="uid_shared_with"><?php echo $item['uid_shared_with'];?></td>
|
2011-10-02 14:06:30 +00:00
|
|
|
<td class="permissions"><?php echo $l->t('Read'); echo($item['permissions'] & OC_SHARE::WRITE ? ", ".$l->t('Edit') : ""); echo($item['permissions'] & OC_SHARE::DELETE ? ", ".$l->t('Delete') : "");?></td>
|
|
|
|
<td><button class="delete" data-source="<?php echo $item['source'];?>" data-uid_shared_with="<?php echo $item['uid_shared_with'];?>"><?php echo $l->t('Delete');?></button></td>
|
2011-07-20 17:34:16 +00:00
|
|
|
</tr>
|
|
|
|
<?php endforeach;?>
|
2011-08-11 11:53:25 +00:00
|
|
|
<tr id="share_item_row">
|
|
|
|
<form action="#" id="share_item">
|
|
|
|
<td class="source"><input placeholder="Item" id="source" /></td>
|
|
|
|
<td class="uid_shared_with"><input placeholder="Share With" id="uid_shared_with" /></td>
|
|
|
|
<td class="permissions"><input placeholder="Permissions" id="permissions" /></td>
|
|
|
|
<td><input type="submit" value="Share" /></td>
|
2011-07-20 17:34:16 +00:00
|
|
|
</form>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|