From 3d57fe22da0151d848ee8c27c1e55d72b0d849c5 Mon Sep 17 00:00:00 2001 From: Josh Humphries Date: Thu, 10 Sep 2020 12:03:30 +0100 Subject: [PATCH] [wcag] Correctly match up labels with password inputs Repeat ids! Argh! By removing the ids the macro that creates the input uses the name parameter and then we get what we're after. --- ckan/templates/user/edit_user_form.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ckan/templates/user/edit_user_form.html b/ckan/templates/user/edit_user_form.html index b11ae5b364c..59bee879227 100644 --- a/ckan/templates/user/edit_user_form.html +++ b/ckan/templates/user/edit_user_form.html @@ -27,16 +27,15 @@ {{ form.input('old_password', type='password', label=_('Sysadmin Password') if is_sysadmin else _('Old Password'), - id='field-password', value=data.oldpassword, error=errors.oldpassword, classes=['control-medium'], attrs={'autocomplete': 'off', 'class': 'form-control'} ) }} - {{ form.input('password1', type='password', label=_('Password'), id='field-password', value=data.password1, error=errors.password1, classes=['control-medium'], attrs={'autocomplete': 'off', 'class': 'form-control'} ) }} + {{ form.input('password1', type='password', label=_('Password'), value=data.password1, error=errors.password1, classes=['control-medium'], attrs={'autocomplete': 'off', 'class': 'form-control'} ) }} - {{ form.input('password2', type='password', label=_('Confirm Password'), id='field-password-confirm', value=data.password2, error=errors.password2, classes=['control-medium'], attrs={'autocomplete': 'off', 'class': 'form-control'}) }} + {{ form.input('password2', type='password', label=_('Confirm Password'), value=data.password2, error=errors.password2, classes=['control-medium'], attrs={'autocomplete': 'off', 'class': 'form-control'}) }}