From 3260e9ddf1b4c6e6ebbc366c3f146f0172908ad9 Mon Sep 17 00:00:00 2001 From: totoro Date: Mon, 18 Jan 2016 10:55:23 +0100 Subject: [PATCH] update the vtm for using the new feature of the cxm_form which can use previous web arg. useful during editing with mandatory fields --- database/vtm/view_table_renderer.anubis | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/database/vtm/view_table_renderer.anubis b/database/vtm/view_table_renderer.anubis index c779601..1500668 100644 --- a/database/vtm/view_table_renderer.anubis +++ b/database/vtm/view_table_renderer.anubis @@ -89,6 +89,7 @@ public define HTML_Partial_Content SQLite3DataBase db, (String) -> String _T, String lang, + List(Web_arg) lwa, VT_edit vt_elist ) = //if tb is tool_box(lang, _T, _, _, db, _) then @@ -96,7 +97,7 @@ public define HTML_Partial_Content partial_content(jq_datetimepicker_init(lang), partial(html_wave_box( _T(to_upper(table_name)), - cxm_form( table_name, htmlId(table_name), + cxm_form( table_name, htmlId(table_name), lwa, edit_form_lines(db, _T, vt_elist.list, [])+ [ submit("create", failure, _T("CREATE"), [("table_name", table_name)]) ] )))). @@ -107,6 +108,7 @@ public define Maybe(HTML_Partial_Content) SQLite3DataBase db, (String) -> String _T, String lang, + List(Web_arg) lwa, String table, VT_action action, VTM vtm @@ -116,7 +118,7 @@ public define Maybe(HTML_Partial_Content) failure then failure, success(vtm_e) then since vtm_e is vtm_edit(_, get_edit), - success(edit_table_page(db, _T, lang, get_edit(db, action))) + success(edit_table_page(db, _T, lang, lwa, get_edit(db, action))) }. -- libgit2 0.21.4