summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/admin.php
blob: ad69b5519d9a616a354256f4aea247ce3428d5b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php OCP\Util::addscript('files', 'admin'); ?>

<form name="filesForm" action='#' method='post'>
	<fieldset class="personalblock">
		<legend><strong><?php echo $l->t('File handling');?></strong></legend>
		<?php if($_['uploadChangable']):?>
			<label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label>
			<input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/>
			<?php if($_['displayMaxPossibleUploadSize']):?>
				(<?php echo $l->t('max. possible: '); echo $_['maxPossibleUploadSize'] ?>)
			<?php endif;?>
			<br/>
		<?php endif;?>
		<input type="checkbox" name="allowZipDownload" id="allowZipDownload" value="1"
			   title="<?php echo $l->t( 'Needed for multi-file and folder downloads.' ); ?>"
			   <?php if ($_['allowZipDownload']): ?> checked="checked"<?php endif; ?> />
		<label for="allowZipDownload"><?php echo $l->t( 'Enable ZIP-download' ); ?></label><br/>

		<input name="maxZipInputSize" id="maxZipInputSize" style="width:180px;" value='<?php echo $_['maxZipInputSize'] ?>'
			   title="<?php echo $l->t( '0 is unlimited' ); ?>"
			   <?php if (!$_['allowZipDownload']): ?> disabled="disabled"<?php endif; ?> /><br />
		<em><?php echo $l->t( 'Maximum input size for ZIP files' ); ?> </em><br />

		<input type="hidden" value="<?php echo $_['requesttoken']; ?>" name="requesttoken" />
		<input type="submit" name="submitFilesAdminSettings" id="submitFilesAdminSettings"
			   value="<?php echo $l->t( 'Save' ); ?>"/>
	</fieldset>
</form>