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

index 19a82c642d52c725ab3b2348b4b451c172031c81..dfbed0279f3e0e14f2eca4e6ebfd35b2ade03f98 100644 (file)
   <% tab_index.inc() %>
 </%def>
 
-<%def name="upload_form(extra_rows=[], upload_nulls=True)">
+<%def name="upload_form(upload_nulls=True)">
   <form action="" enctype="multipart/form-data" method="post">
     <div>
     ${self.auth_parts.hidden_vars(csrf_token)}
       ${self.auth_parts.password_row(tab_index.val + 2, havecreds)}
       <% tab_index.inc(2) %>
 
-      % for row in extra_rows:
-        ${row(tab_index) | n}
-      % endfor
+      ${caller.body(tab_index)}
 
       ${format_row(tab_index)}
       ${nulls_row(tab_index)}