Merge pull request #9946 from nextcloud/bugfix/noid/files-external-settings-layout

Fix files_external settings layout
This commit is contained in:
John Molakvoæ 2018-06-21 13:59:53 +02:00 committed by GitHub
commit a10690c1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -1,7 +1,3 @@
#global_credentials {
padding: 0 30px;
}
#files_external { #files_external {
margin-bottom: 0px; margin-bottom: 0px;
} }

View File

@ -169,7 +169,6 @@
<label for="allowUserMounting"><?php p($l->t('Allow users to mount external storage')); ?></label> <span id="userMountingMsg" class="msg"></span> <label for="allowUserMounting"><?php p($l->t('Allow users to mount external storage')); ?></label> <span id="userMountingMsg" class="msg"></span>
<p id="userMountingBackends"<?php if (!$_['allowUserMounting']): ?> class="hidden"<?php endif; ?>> <p id="userMountingBackends"<?php if (!$_['allowUserMounting']): ?> class="hidden"<?php endif; ?>>
<?php p($l->t('Allow users to mount the following external storage')); ?><br />
<?php <?php
$userBackends = array_filter($_['backends'], function($backend) { $userBackends = array_filter($_['backends'], function($backend) {
return $backend->isAllowedVisibleFor(BackendService::VISIBILITY_PERSONAL); return $backend->isAllowedVisibleFor(BackendService::VISIBILITY_PERSONAL);
@ -189,9 +188,10 @@
</form> </form>
<?php if ($canCreateMounts): ?> <?php if ($canCreateMounts): ?>
<form autocomplete="false" class="section" action="#" <div class="followupsection">
<form autocomplete="false" action="#"
id="global_credentials"> id="global_credentials">
<p><?php p($l->t('Global credentials')); ?></p> <h2><?php p($l->t('Global credentials')); ?></h2>
<input type="text" name="username" <input type="text" name="username"
autocomplete="false" autocomplete="false"
value="<?php p($_['globalCredentials']['user']); ?>" value="<?php p($_['globalCredentials']['user']); ?>"
@ -204,4 +204,5 @@
value="<?php p($_['globalCredentialsUid']); ?>"/> value="<?php p($_['globalCredentialsUid']); ?>"/>
<input type="submit" value="<?php p($l->t('Save')) ?>"/> <input type="submit" value="<?php p($l->t('Save')) ?>"/>
</form> </form>
</div>
<?php endif; ?> <?php endif; ?>