From 8c5ebda682977cb0209af3fbb4ff62674f1312e7 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Thu, 1 Aug 2024 17:24:14 -0500 Subject: [PATCH] Move table rows into their own %def --- src/pgwui_copy/templates/copy.mak | 34 ++++++++++++++++++------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/pgwui_copy/templates/copy.mak b/src/pgwui_copy/templates/copy.mak index 24449d5..1321ef4 100644 --- a/src/pgwui_copy/templates/copy.mak +++ b/src/pgwui_copy/templates/copy.mak @@ -157,22 +157,28 @@ <% tab_index.inc() %> +

Copy A Schema Between Databases

+ +<%def name="table_rows(tab_index)"> + <%parent:table_rows tab_index="${tab_index}" args="tab_index"> + ## A blank table row for spacing + + <% + schema_row(tab_index) + from_db_row(tab_index) + to_db_row(tab_index) + overwrite_row(tab_index) + force_row(tab_index) + %> + + + <%def name="submit(tab_index)"> <% tab_index.inc() %> -

Copy A Schema Between Databases

- -<% tab_index = self.attr.TabIndex() %> -<%self:main_form tab_index="${tab_index}" args="tab_index"> - ## A blank table row for spacing - - <% - schema_row(tab_index) - from_db_row(tab_index) - to_db_row(tab_index) - overwrite_row(tab_index) - force_row(tab_index) - %> - +<% + tab_index = self.attr.TabIndex() + self.main_form(tab_index) +%> -- 2.34.1