diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-10 16:00:31 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-10 16:00:31 -0400 |
commit | 89a6f16e8d03af8e9527ead0b17db119344c83d4 (patch) | |
tree | ec3151561bb83655ed17789061dec88d8722732d /files/templates | |
parent | 1b8e59a0effc5d11347f6c248de8b17bbe7f8321 (diff) | |
parent | 5c671c995cfb68866608e95b28e5be49087eb910 (diff) | |
download | nextcloud-server-89a6f16e8d03af8e9527ead0b17db119344c83d4.tar.gz nextcloud-server-89a6f16e8d03af8e9527ead0b17db119344c83d4.zip |
Merge branch 'master' of git://anongit.kde.org/owncloud
Diffstat (limited to 'files/templates')
-rw-r--r-- | files/templates/admin.php | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/files/templates/admin.php b/files/templates/admin.php index 4dde9c510c4..ff331f860e6 100644 --- a/files/templates/admin.php +++ b/files/templates/admin.php @@ -1,21 +1,13 @@ -<script type="text/javascript"> -function switchPublicFolder() -{ - var publicEnable = document.forms['filesForm'].elements['publicEnable'].checked; - var sharingaimGroup = document.forms['filesForm'].elements['sharingaim']; - for(i=0;i<sharingaimGroup.length;i++) { - sharingaimGroup[i].disabled = !publicEnable; - } -} -</script> +<?php OC_UTIL::addScript('files','admin'); ?> + <form name="filesForm" action='#' method='post'> <?php if($_['htaccessWorking']):?> <label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label><input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/><br/> <?php endif;?> - <input type="checkbox" name="publicEnable" id="publicEnable" onClick="switchPublicFolder()" /><label for="publicEnable"> <?php echo $l->t( 'Allow public folders' ); ?></label><br> + <input type="checkbox" name="publicEnable" id="publicEnable" /><label for="publicEnable"> <?php echo $l->t( 'Allow public folders' ); ?></label><br> <div style="padding-left: 20px"> - <input type="radio" name="sharingaim" id="separated" checked="checked" /><label for="separated"> <?php echo $l->t( 'separated from webdav storage' ); ?></label><br> + <input type="radio" name="sharingaim" id="separated" /><label for="separated"> <?php echo $l->t( 'separated from webdav storage' ); ?></label><br> <input type="radio" name="sharingaim" id="userdecide" /><label for="userdecide"> <?php echo $l->t( 'let the user decide' ); ?></label><br> <input type="radio" name="sharingaim" id="inwebdav" /><label for="inwebdav"> <?php echo $l->t( 'folder "/public" in webdav storage' ); ?></label> </div> |