Add support for skipping the table_rows def, and call the parent template
authorKarl O. Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 03:23:24 +0000 (22:23 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 03:23:24 +0000 (22:23 -0500)
src/pgwui_upload_core/templates/upload.mak

index 3fe36fd8864a83a2e68220d051a8d6dea8cb1b34..c6b060a7fc1aab76784e5cdc9758d4e1dd6d5072 100644 (file)
     %>
   </%parent:table_rows>
 </%def>
+
+## Using this allows an inheriting template to skip over the table_rows
+## defined in this template.
+<%def name="parent_table_rows(tab_index)">
+  <%parent:table_rows tab_index="${tab_index}" args="tab_index">
+    ${caller.body(tab_index)}
+  </%parent:table_rows>
+</%def>