From 1240e28284dfe20b0b387fdbb8e801b768eb9056 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sun, 29 Sep 2024 16:03:48 -0500 Subject: [PATCH] Do not use a for= id on a label without an input element --- src/pgwui_common/templates/auth_base.mak | 33 ++++++++++++------------ 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/pgwui_common/templates/auth_base.mak b/src/pgwui_common/templates/auth_base.mak index 7217d0b..35c87ed 100644 --- a/src/pgwui_common/templates/auth_base.mak +++ b/src/pgwui_common/templates/auth_base.mak @@ -97,22 +97,23 @@ <%def name="user_row(tab_index, havecreds, user)"> - <%self.lib:td_label for_id="user_id">Username - % if havecreds: - <%self.lib:td_input tab_index="${tab_index}" tab_inc="${0}"> - ${user} - - % else: - <%self.lib:td_input tab_index="${tab_index}"> - - - % endif + % if havecreds: + <%self.lib:td_label>Username + <%self.lib:td_input tab_index="${tab_index}" tab_inc="${0}"> + ${user} + + % else: + <%self.lib:td_label for_id="user_id">Username + <%self.lib:td_input tab_index="${tab_index}"> + + + % endif -- 2.34.1