Commit 3260e9ddf1b4c6e6ebbc366c3f146f0172908ad9
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 | 89 | SQLite3DataBase db, |
| 90 | 90 | (String) -> String _T, |
| 91 | 91 | String lang, |
| 92 | + List(Web_arg) lwa, | |
| 92 | 93 | VT_edit vt_elist |
| 93 | 94 | ) = |
| 94 | 95 | //if tb is tool_box(lang, _T, _, _, db, _) then |
| ... | ... | @@ -96,7 +97,7 @@ public define HTML_Partial_Content |
| 96 | 97 | partial_content(jq_datetimepicker_init(lang), |
| 97 | 98 | partial(html_wave_box( |
| 98 | 99 | _T(to_upper(table_name)), |
| 99 | - cxm_form( table_name, htmlId(table_name), | |
| 100 | + cxm_form( table_name, htmlId(table_name), lwa, | |
| 100 | 101 | edit_form_lines(db, _T, vt_elist.list, [])+ |
| 101 | 102 | [ submit("create", failure, _T("CREATE"), [("table_name", table_name)]) ] |
| 102 | 103 | )))). |
| ... | ... | @@ -107,6 +108,7 @@ public define Maybe(HTML_Partial_Content) |
| 107 | 108 | SQLite3DataBase db, |
| 108 | 109 | (String) -> String _T, |
| 109 | 110 | String lang, |
| 111 | + List(Web_arg) lwa, | |
| 110 | 112 | String table, |
| 111 | 113 | VT_action action, |
| 112 | 114 | VTM vtm |
| ... | ... | @@ -116,7 +118,7 @@ public define Maybe(HTML_Partial_Content) |
| 116 | 118 | failure then failure, |
| 117 | 119 | success(vtm_e) then |
| 118 | 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 | ... | ... |