From: Karl O. Pinc Date: Thu, 26 Sep 2024 20:13:04 +0000 (-0500) Subject: The "label" element should not be used without the "for" attribute X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=5198d3dc25d302781df0e50b63a92af839666023;p=pgwui_common The "label" element should not be used without the "for" attribute --- diff --git a/src/pgwui_common/templates/lib.mak b/src/pgwui_common/templates/lib.mak index 8f33771..ba20aaa 100644 --- a/src/pgwui_common/templates/lib.mak +++ b/src/pgwui_common/templates/lib.mak @@ -39,14 +39,13 @@ ## Table data <%def name="td_label(for_id=None)"> - - <% - for_attr = '' - if for_id is not None: - for_attr = f'for="{for_id}"' - %> - - + + % else: + >${capture(caller.body) | n, trim}: + % endif <%def name="td_input(tab_index, tab_inc=1, colspan=1, clas='')">