diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2023-05-12 05:53:56 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-05-22 12:44:17 +0200 |
commit | f9039b4fbdc359b378d847400a729803a3a4b8a2 (patch) | |
tree | be899d057991086ce2797b8299ffeacf697f2816 /apps/settings/templates | |
parent | 8fa09bec0903eaf551fcd2e4f82bde55e29a3042 (diff) | |
download | nextcloud-server-f9039b4fbdc359b378d847400a729803a3a4b8a2.tar.gz nextcloud-server-f9039b4fbdc359b378d847400a729803a3a4b8a2.zip |
Replace "div" with "span" inside "p"
The permitted contents of a paragraph are only phrasing contents, so
"div" elements can not be used, although "span" can. Besides being
invalid HTML it seems that the browser ends the paragraph at the div, so
the label/input that appears after it is treated as being in a new
paragraph, which is not indented by default, and thus is not aligned
with the rest of its sibling inputs.
Note that an additional div is nevertheless added once the page is
loaded to be able to select the groups, but this one does not break its
parent paragraph (maybe due to being added after the page load, but I do
not really know). Nevertheless, it needs to be explicitly indented, and
the second indentend wrapper needs to be removed, as it affects only the
label but not the div/input, and therefore the label had an extra
indentation over the input.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r-- | apps/settings/templates/settings/admin/sharing.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/settings/templates/settings/admin/sharing.php b/apps/settings/templates/settings/admin/sharing.php index e92f6ff27b3..ff5a11f737d 100644 --- a/apps/settings/templates/settings/admin/sharing.php +++ b/apps/settings/templates/settings/admin/sharing.php @@ -121,12 +121,10 @@ <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/> <?php if ($_['passwordExcludedGroupsFeatureEnabled']) { ?> - <div id="selectPasswordsExcludedGroups" class="indent <?php if (!$_['enforceLinkPassword']) { p('hidden'); } ?>"> - <div class="indent"> - <label for="shareapi_enforce_links_password_excluded_groups"><?php p($l->t('Exclude groups from password requirements:'));?></label><br/> - <input name="shareapi_enforce_links_password_excluded_groups" id="passwordsExcludedGroups" value="<?php p($_['passwordExcludedGroups']) ?>" style="width: 400px" class="noJSAutoUpdate"/> - </div> - </div> + <span id="selectPasswordsExcludedGroups" class="indent <?php if (!$_['enforceLinkPassword']) { p('hidden'); } ?>"> + <label for="shareapi_enforce_links_password_excluded_groups"><?php p($l->t('Exclude groups from password requirements:'));?></label><br/> + <input name="shareapi_enforce_links_password_excluded_groups" id="passwordsExcludedGroups" value="<?php p($_['passwordExcludedGroups']) ?>" style="width: 400px" class="noJSAutoUpdate indent"/> + </span><br/> <?php } ?> <input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox" |