settings/templates/panels/admin/persistentlocking.php
<?php
script('settings', 'panels/persistentlocking');
/**
* @var array $_
* @var \OCP\IL10N $l
* @var OC_Defaults $theme
*/
?>
<div class="section" id="persistentlocking">
<h2 class="app-name"><?php p($l->t('Manual File Locking')); ?></h2>
<label for="lockTimeoutDefault"><?php p($l->t('Default timeout for the locks if not specified (in seconds)'));?></label>
<input type="number"
name="lock_timeout_default"
id="lockTimeoutDefault"
min="0"
value="<?php p($_['defaultTimeout'])?>" />
<br/>
<label for="lockTimeoutMax"><?php p($l->t('Maximum timeout for the locks (in seconds)'));?></label>
<input type="number"
name="lock_timeout_max"
id="lockTimeoutMax"
min="0"
value="<?php p($_['maximumTimeout'])?>" />
<br/>
<input type="checkbox" name="enable_lock_file_action" id="manualFileLockOnClientsEnabled" class="checkbox"
value="1" <?php if ($_['manualFileLockOnClientsEnabled'] === 'yes') {
print_unescaped('checked="checked"');
} ?> />
<label for="manualFileLockOnClientsEnabled"><?php p($l->t('Enable manual file locking in the web interface'));?></label>
<br/>
<p id="lock-breakers">
<br />
<?php p($l->t('Allow users in the following groups to unlock files they have access to:')); ?>
<br />
<input name="lock_breakers_groups_list" type="hidden" id="lock_breakers_groups_list" value="<?php p($_['lock-breaker-groups']) ?>" style="width: 400px">
<em>
<br />
<?php p($l->t('Users in these groups can unlock files even if they are not the owner of the lock.')); ?>
</em>
</p>
</div>