From 2d167f4bb31bc8e788db22c13b5ee3a3e90f01a5 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 31 Jul 2024 12:39:47 -0500 Subject: [PATCH] Use the standard templates in pgwui_common for layout --- src/pgwui_copy/templates/copy.mak | 213 ++++++++++++++++-------------- 1 file changed, 114 insertions(+), 99 deletions(-) diff --git a/src/pgwui_copy/templates/copy.mak b/src/pgwui_copy/templates/copy.mak index dde449b..b5ec9d4 100644 --- a/src/pgwui_copy/templates/copy.mak +++ b/src/pgwui_copy/templates/copy.mak @@ -38,14 +38,10 @@ <%! from pgwui_common.path import asset_abspath - errors_base_mak = asset_abspath('pgwui_common:templates/errors_base.mak') - auth_parts_mak = asset_abspath('pgwui_common:templates/auth_parts.mak') + auth_base_mak = asset_abspath('pgwui_common:templates/auth_base.mak') %> -<%inherit file="${errors_base_mak}" /> -<%namespace file="${auth_parts_mak}" - name="auth_parts" - inheritable="True" /> +<%inherit file="${auth_base_mak}" /> <%block name="title">${pgwui['pgwui_copy']['menu_label']} <%block name="meta_keywords"> @@ -58,106 +54,125 @@ content="PostgreSQL Web User Interface, Copy a Schema Between Databases" /> - <%block name="action_success">

The ${schema} schema has been copied from the ${from_db} db to the ${to_db} db!

-

Copy A Schema Between Databases

- - -
-
- ${self.auth_parts.hidden_vars(csrf_token)} -
- - - ${self.auth_parts.user_row(1, havecreds, user)} - ${self.auth_parts.password_row(2, havecreds)} +<%block name="bottom_matter"> +

+ * CAUTION: Overwriting an existing schema will + cause deletion of all data and objects outside of the destination + schema which relate to any overwritten content. +

+ - ## A blank table row for spacing - - - - - - - + + + + <% tab_index.inc() %> + + +<%def name="from_db_row(tab_index)"> + + + + + <% tab_index.inc() %> + + +<%def name="to_db_row(tab_index)"> + + + + + <% tab_index.inc() %> + + +<%def name="overwrite_row(tab_index)"> + + + + + <% tab_index.inc() %> + + +<%def name="force_row(tab_index)"> + + - - - - - - - - - - - - - - -
- - - -
- +<%def name="schema_row(tab_index)"> +
+ + + +
+ + + +
+ + + +
+ + + +
+ - -
- - - -
- - - -
- - - -
+ + + + + <% tab_index.inc() %> + + +<%def name="submit(tab_index)"> + + <% tab_index.inc() %> + -

- -

- -
+

Copy A Schema Between Databases

-

-* CAUTION: Overwriting an existing schema will -cause deletion of all data and objects outside of the destination -schema which relate to any overwritten content. -

+<% 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) + %> + -- 2.34.1