summaryrefslogtreecommitdiffstats
path: root/apps/files_external/templates/settings.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-16 14:07:53 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-26 11:21:03 +0100
commitca6b715b31bbfea7724dd8659e2a1e61098a31a5 (patch)
tree322cde35082f830855ab023c969ce093eb0bc325 /apps/files_external/templates/settings.php
parent69f14f974b2acd385809b508f22aa5c15e70d801 (diff)
downloadnextcloud-server-ca6b715b31bbfea7724dd8659e2a1e61098a31a5.tar.gz
nextcloud-server-ca6b715b31bbfea7724dd8659e2a1e61098a31a5.zip
Added ext storage mount options GUI
Added option to disable autoscan of external storages Mount option file system scan is now an int Move priority field to avoid undefined field in storage options All input elements inside the storage options block get parsed into storage options. Moving the priority field outside prevents it to appear in the storage config, as expected. It is still parsed by special code.
Diffstat (limited to 'apps/files_external/templates/settings.php')
-rw-r--r--apps/files_external/templates/settings.php24
1 files changed, 15 insertions, 9 deletions
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index 4866d177634..967c59debe6 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -10,6 +10,7 @@
<th><?php p($l->t('Configuration')); ?></th>
<?php if ($_['isAdminPage']) print_unescaped('<th>'.$l->t('Available for').'</th>'); ?>
<th>&nbsp;</th>
+ <th>&nbsp;</th>
</tr>
</thead>
<tbody>
@@ -78,14 +79,6 @@
<?php OCP\Util::addScript('files_external', $_['backends'][$mount['class']]['custom']); ?>
<?php endif; ?>
<?php endif; ?>
- <?php if (isset($mount['mountOptions'])): ?>
- <input type="hidden" class="mountOptions" value="<?php p(json_encode($mount['mountOptions'])) ?>" />
- <?php endif; ?>
- <?php if ($_['isAdminPage']): ?>
- <?php if (isset($mount['priority'])): ?>
- <input type="hidden" class="priority" value="<?php p($mount['priority']) ?>" />
- <?php endif; ?>
- <?php endif; ?>
</td>
<?php if ($_['isAdminPage']): ?>
<td class="applicable"
@@ -97,8 +90,21 @@
<input type="hidden" class="applicableUsers" style="width:20em;" value=""/>
</td>
<?php endif; ?>
+ <td class="mountOptionsToggle <?php if (!isset($mount['mountpoint'])) { p('hidden'); } ?>"
+ ><img
+ class="svg action"
+ title="<?php p($l->t('Advanced settings')); ?>"
+ alt="<?php p($l->t('Advanced settings')); ?>"
+ src="<?php print_unescaped(image_path('core', 'actions/settings.svg')); ?>" />
+ <input type="hidden" class="mountOptions" value="<?php isset($mount['mountOptions']) ? p(json_encode($mount['mountOptions'])) : '' ?>" />
+ <?php if ($_['isAdminPage']): ?>
+ <?php if (isset($mount['priority'])): ?>
+ <input type="hidden" class="priority" value="<?php p($mount['priority']) ?>" />
+ <?php endif; ?>
+ <?php endif; ?>
+ </td>
<td <?php if (isset($mount['mountpoint'])): ?>class="remove"
- <?php else: ?>style="visibility:hidden;"
+ <?php else: ?>class="hidden"
<?php endif ?>><img alt="<?php p($l->t('Delete')); ?>"
title="<?php p($l->t('Delete')); ?>"
class="svg action"