aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-24 20:27:59 -0700
committerredmatrix <git@macgirvin.com>2016-07-24 20:27:59 -0700
commit271f85be3b36a4d4aac55a51cb7ff2580a95ce3e (patch)
tree183829f6d4dd31a5adf7538211db20e56fc8e5ed /view/tpl
parentb5f2b4af354b8864a3dfa1756c52631625430c44 (diff)
downloadvolse-hubzilla-271f85be3b36a4d4aac55a51cb7ff2580a95ce3e.tar.gz
volse-hubzilla-271f85be3b36a4d4aac55a51cb7ff2580a95ce3e.tar.bz2
volse-hubzilla-271f85be3b36a4d4aac55a51cb7ff2580a95ce3e.zip
add acl selection to files upload via /cloud (still missing from directory creation)
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/cloud_actionspanel.tpl24
1 files changed, 18 insertions, 6 deletions
diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl
index fba457fdc..913522c87 100644
--- a/view/tpl/cloud_actionspanel.tpl
+++ b/view/tpl/cloud_actionspanel.tpl
@@ -2,25 +2,37 @@
<label for="files-mkdir">{{$folder_header}}</label>
<form method="post" action="">
<input type="hidden" name="sabreAction" value="mkcol">
- <input id="files-mkdir" type="text" name="name" class="form-control form-group">
+ <input id="files-mkdir" type="text" name="dirname" class="form-control form-group">
<button class="btn btn-primary btn-sm pull-right" type="submit" value="{{$folder_submit}}">{{$folder_submit}}</button>
</form>
<div class="clear"></div>
</div>
<div id="files-upload-tools" class="section-content-tools-wrapper">
{{if $quota.limit || $quota.used}}<div class="{{if $quota.warning}}section-content-danger-wrapper{{else}}section-content-info-wrapper{{/if}}">{{if $quota.warning}}<strong>{{$quota.warning}} </strong>{{/if}}{{$quota.desc}}</div>{{/if}}
- <form id="ajax-upload-files" method="post" action="" enctype="multipart/form-data">
- <input type="hidden" name="sabreAction" value="put">
+ <form id="ajax-upload-files" method="post" action="file_upload" enctype="multipart/form-data">
+ <input type="hidden" name="channick" value="{{$channick}}" />
+ <input type="hidden" name="return_url" value="{{$return_url}}" />
<div>
- <div id="filedrag" style="height: 7em;"><br>{{$dragdroptext}}</div>
+ <div id="filedrag" style="height: 7em;"><br>{{$dragdroptext}}</div>
</div>
<div id="file-upload-list"></div>
<div class="clear"></div>
+ {{$aclselect}}
<label for="files-upload">{{$upload_header}}</label>
<div class="clear"></div>
- <input class="form-group pull-left" id="files-upload" type="file" name="file" style="width: 70%;">
- <button class="btn btn-primary btn-sm pull-right" type="submit" value="{{$upload_submit}}">{{$upload_submit}}</button>
+ <input class="form-group pull-left" id="files-upload" type="file" name="userfile" style="width: 70%;">
+ <div class="pull-right btn-group">
+ <div class="btn-group">
+ {{if $lockstate}}
+ <button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;">
+ <i id="jot-perms-icon" class="fa fa-{{$lockstate}}"></i>
+ </button>
+ {{/if}}
+ <button id="dbtn-submit" class="btn btn-primary btn-sm pull-right" type="submit" name="submit" value="{{$upload_submit}}">{{$upload_submit}}</button>
+ </div>
+ </div>
</form>
<div class="clear"></div>
<hr/>
</div>
+