Use inheritance to properly wrap inheriting body
authorKarl O. Pinc <kop@karlpinc.com>
Tue, 30 Jul 2024 16:46:56 +0000 (11:46 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Tue, 30 Jul 2024 16:46:56 +0000 (11:46 -0500)
src/pgwui_upload/templates/upload.mak

index fbd5b0c0ea980b55cf296d96202f39176ec8c74c..5b25c34e8fc9c92793c41807ef6541e6be437709 100644 (file)
       <% tab_index.inc() %>
 </%def>
 
-<%
-    form_elements = [table_row]
-    self.append_elements(form_elements)
-
-    self.upload_form(form_elements,
-                     upload_nulls=show_choice(pgwui, 'null'))
-%>
+<%self:upload_form upload_nulls="${show_choice(pgwui, 'null')}"
+                   args="tab_index">
+  ${table_row(tab_index)}
+</%self:upload_form>