aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/cloud_actionspanel.tpl23
-rw-r--r--view/tpl/cloud_directory.tpl43
-rwxr-xr-xview/tpl/settings.tpl4
-rwxr-xr-xview/tpl/settings_account.tpl4
4 files changed, 70 insertions, 4 deletions
diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl
new file mode 100644
index 000000000..69931b292
--- /dev/null
+++ b/view/tpl/cloud_actionspanel.tpl
@@ -0,0 +1,23 @@
+<table>
+ <tr>
+ <td><strong>{{$folder_header}}</strong>&nbsp;&nbsp;&nbsp;</td>
+ <td>
+ <form method="post" action="">
+ <input type="hidden" name="sabreAction" value="mkcol">
+ <input type="text" name="name">
+ <input type="submit" value="{{$folder_submit}}">
+ </form>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>{{$upload_header}}</strong>&nbsp;&nbsp;&nbsp;</td>
+ <td>
+ <form method="post" action="" enctype="multipart/form-data">
+ <input type="hidden" name="sabreAction" value="put">
+ <input type="file" name="file" style="display: inline;">
+ <input type="submit" value="{{$upload_submit}}">
+ <!-- Name (optional): <input type="text" name="name"> we should rather provide a rename action in edit form-->
+ </form>
+ </td>
+ </tr>
+</table> \ No newline at end of file
diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl
new file mode 100644
index 000000000..fc6b3309a
--- /dev/null
+++ b/view/tpl/cloud_directory.tpl
@@ -0,0 +1,43 @@
+<h1>{{$header}}</h1>
+<table id="cloud-index">
+ <tr>
+ <th></th>
+ <th>{{t('Name')}}&nbsp;&nbsp;&nbsp;</th>
+ <th></th><th></th><th></th>
+ <th>{{t('Type')}}&nbsp;&nbsp;&nbsp;</th>
+ <th>{{t('Size')}}&nbsp;&nbsp;&nbsp;</th>
+ <th>{{t('Last modified')}}</th>
+ </tr>
+ <tr><td colspan="8"><hr></td></tr>
+{{if $parentpath}}
+ <tr>
+ <td>{{$parentpath.icon}}</td>
+ <td><a href="{{$parentpath.path}}" title="{{t('parent')}}">..</a></td>
+ <td></td><td></td><th></td>
+ <td>[{{t('parent')}}]</td>
+ <td></td>
+ <td></td>
+ </tr>
+{{/if}}
+{{foreach $entries as $item}}
+ <tr>
+ <td>{{$item.icon}}</td>
+ <td style="min-width: 15em"><a href="{{$item.fullPath}}">{{$item.displayName}}</a></td>
+{{if $item.is_owner}}
+ <td>{{$item.attachIcon}}</td>
+ <td style="position:relative;"><a href="{{$item.fileStorageUrl}}/{{$item.attachId}}/edit" title="{{t('Edit')}}"><i class="icon-pencil btn btn-default"></i></a></td>
+ <td><a href="{{$item.fileStorageUrl}}/{{$item.attachId}}/delete" title="{{t('Delete')}}" onclick="return confirm('{{t('Are you sure you want to delete this item?')}}');"><i class="icon-remove btn btn-default drop-icons"></i></a></td>
+{{else}}
+ <td></td><td></td><td></td>
+{{/if}}
+ <td>{{$item.type}}</td>
+ <td>{{$item.sizeFormatted}}</td>
+ <td>{{$item.lastmodified}}</td>
+ </tr>
+{{/foreach}}
+ <tr><td colspan="8"><hr></td></tr>
+</table>
+
+{{if $quota.limit || $quota.used}}
+ <p><strong>{{t('Total')}}</strong> {{$quota.desc}}</p>
+{{/if}} \ No newline at end of file
diff --git a/view/tpl/settings.tpl b/view/tpl/settings.tpl
index 1fef255f0..89c05b75f 100755
--- a/view/tpl/settings.tpl
+++ b/view/tpl/settings.tpl
@@ -135,6 +135,8 @@
</div>
<div id="settings-channel-menu-end"></div>
{{/if}}
-
+<div id="settings-remove-account-link">
+<button title="{{$permanent}}" class="btn btn-danger" type="submit" formaction="removeme">{{$removeme}}</button>
+</div>
</div>
diff --git a/view/tpl/settings_account.tpl b/view/tpl/settings_account.tpl
index fcddb3f86..169516f08 100755
--- a/view/tpl/settings_account.tpl
+++ b/view/tpl/settings_account.tpl
@@ -2,9 +2,7 @@
<h1>{{$title}}</h1>
-<div id="settings-remove-account-link">
-<a href="removeme" title="{{$permanent}}" >{{$removeme}}</a>
-</div>
+
<form action="settings/account" id="settings-account-form" method="post" autocomplete="off" >