diff options
Diffstat (limited to 'apps/files_external/templates/settings.php')
-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: ?> |