Eliminate most of the core upload settings from the rendered template
authorKarl O. Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 03:27:31 +0000 (22:27 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 03:27:31 +0000 (22:27 -0500)
Redefine the table_rows def to skip the pgwui_upload_core version.

src/pgwui_upcen/templates/upcen.mak

index d287c44fa2c321e5a2f9a7fbdcdc74e1b4c31cdd..d4dbf6f9c2234cb9c166a217896a5f322c1c4bf2 100644 (file)
   Upload Census Data
 </%block>
 
+
+<%def name="table_rows(tab_index)">
+  ## Skip over the pgwui_upload_core's template
+  <%parent:parent_table_rows tab_index="${tab_index}" args="tab_index">
+    <%
+      caller.body(tab_index)
+      self.format_row(tab_index)
+      self.file_row(tab_index)
+    %>
+  </%parent:parent_table_rows>
+</%def>
+
 <%
   tab_index = self.attr.TabIndex()
   self.main_form(tab_index)