Commit 3260e9ddf1b4c6e6ebbc366c3f146f0172908ad9

Authored by totoro
1 parent 19990788

update the vtm for using the new feature of the cxm_form which can use previous …

…web arg. useful during editing with mandatory fields
Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
database/vtm/view_table_renderer.anubis
@@ -89,6 +89,7 @@ public define HTML_Partial_Content @@ -89,6 +89,7 @@ public define HTML_Partial_Content
89 SQLite3DataBase db, 89 SQLite3DataBase db,
90 (String) -> String _T, 90 (String) -> String _T,
91 String lang, 91 String lang,
  92 + List(Web_arg) lwa,
92 VT_edit vt_elist 93 VT_edit vt_elist
93 ) = 94 ) =
94 //if tb is tool_box(lang, _T, _, _, db, _) then 95 //if tb is tool_box(lang, _T, _, _, db, _) then
@@ -96,7 +97,7 @@ public define HTML_Partial_Content @@ -96,7 +97,7 @@ public define HTML_Partial_Content
96 partial_content(jq_datetimepicker_init(lang), 97 partial_content(jq_datetimepicker_init(lang),
97 partial(html_wave_box( 98 partial(html_wave_box(
98 _T(to_upper(table_name)), 99 _T(to_upper(table_name)),
99 - cxm_form( table_name, htmlId(table_name), 100 + cxm_form( table_name, htmlId(table_name), lwa,
100 edit_form_lines(db, _T, vt_elist.list, [])+ 101 edit_form_lines(db, _T, vt_elist.list, [])+
101 [ submit("create", failure, _T("CREATE"), [("table_name", table_name)]) ] 102 [ submit("create", failure, _T("CREATE"), [("table_name", table_name)]) ]
102 )))). 103 )))).
@@ -107,6 +108,7 @@ public define Maybe(HTML_Partial_Content) @@ -107,6 +108,7 @@ public define Maybe(HTML_Partial_Content)
107 SQLite3DataBase db, 108 SQLite3DataBase db,
108 (String) -> String _T, 109 (String) -> String _T,
109 String lang, 110 String lang,
  111 + List(Web_arg) lwa,
110 String table, 112 String table,
111 VT_action action, 113 VT_action action,
112 VTM vtm 114 VTM vtm
@@ -116,7 +118,7 @@ public define Maybe(HTML_Partial_Content) @@ -116,7 +118,7 @@ public define Maybe(HTML_Partial_Content)
116 failure then failure, 118 failure then failure,
117 success(vtm_e) then 119 success(vtm_e) then
118 since vtm_e is vtm_edit(_, get_edit), 120 since vtm_e is vtm_edit(_, get_edit),
119 - success(edit_table_page(db, _T, lang, get_edit(db, action))) 121 + success(edit_table_page(db, _T, lang, lwa, get_edit(db, action)))
120 }. 122 }.
121 123
122 124