diff options
author | Hendrik Leppelsack <hendrik@leppelsack.de> | 2015-09-17 17:39:27 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-19 10:36:38 +0200 |
commit | 624f5de67af852657d424ea7720a441aca077e09 (patch) | |
tree | 0b881726a246538c23d2086898036a6eaecba208 /apps/files_external/templates | |
parent | c433d48d8e4b6dd1392a25170dff173852544fcf (diff) | |
download | nextcloud-server-624f5de67af852657d424ea7720a441aca077e09.tar.gz nextcloud-server-624f5de67af852657d424ea7720a441aca077e09.zip |
fix checkboxes in files_external
Diffstat (limited to 'apps/files_external/templates')
-rw-r--r-- | apps/files_external/templates/settings.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index 63a3a19de2f..7762ff60333 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -23,14 +23,14 @@ <?php break; case DefinitionParameter::VALUE_BOOLEAN: ?> - <label> - <input type="checkbox" - <?php if (!empty($classes)): ?> class="<?php p(implode(' ', $classes)); ?>"<?php endif; ?> - data-parameter="<?php p($parameter->getName()); ?>" - <?php if ($value === true): ?> checked="checked"<?php endif; ?> - /> - <?php p($placeholder); ?> - </label> + <?php $checkboxId = uniqid("checkbox_"); ?> + <input type="checkbox" + id="<?php p($checkboxId); ?>" + <?php if (!empty($classes)): ?> class="<?php p(implode(' ', $classes)); ?>"<?php endif; ?> + data-parameter="<?php p($parameter->getName()); ?>" + <?php if ($value === true): ?> checked="checked"<?php endif; ?> + /> + <label for="<?php p($checkboxId); ?>"><?php p($placeholder); ?></label> <?php break; case DefinitionParameter::VALUE_HIDDEN: ?> |