Commit ff12e0c00a56bfa956edea05c2b8511eca222c4b
1 parent
e3ffb1b4
Add cancel button in edit form
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
view/view_table_renderer.anubis
| @@ -36,6 +36,7 @@ public define WEB_Action_Name edit_table = controller_action("hk_c", "edi | @@ -36,6 +36,7 @@ public define WEB_Action_Name edit_table = controller_action("hk_c", "edi | ||
| 36 | public define WEB_Action_Name view_table = controller_action("hk_c", "view_table"). | 36 | public define WEB_Action_Name view_table = controller_action("hk_c", "view_table"). |
| 37 | public define WEB_Action_Name save_row = controller_action("hk_c", "save_row"). | 37 | public define WEB_Action_Name save_row = controller_action("hk_c", "save_row"). |
| 38 | public define WEB_Action_Name delete_row = controller_action("hk_c", "delete_row"). | 38 | public define WEB_Action_Name delete_row = controller_action("hk_c", "delete_row"). |
| 39 | +public define WEB_Action_Name hk_cancel = controller_action("hk_c", "cancel"). | ||
| 39 | public define WEB_Action_Name ajax_edit_table = controller_action("hk_c", "ajax_edit_table"). | 40 | public define WEB_Action_Name ajax_edit_table = controller_action("hk_c", "ajax_edit_table"). |
| 40 | 41 | ||
| 41 | 42 | ||
| @@ -119,7 +120,11 @@ public define HTML_Partial_Content | @@ -119,7 +120,11 @@ public define HTML_Partial_Content | ||
| 119 | partial_content(jq_datetimepicker_init(lang), | 120 | partial_content(jq_datetimepicker_init(lang), |
| 120 | cxm_form( table_name, lwa, | 121 | cxm_form( table_name, lwa, |
| 121 | edit_form_lines(db, _T, vt_elist.list, [])+ | 122 | edit_form_lines(db, _T, vt_elist.list, [])+ |
| 122 | - [ submit(save_row, failure, button_name, [("table_name", table_name)]) ] | 123 | + [ one_line_fields([ |
| 124 | + submit(save_row, failure, button_name, [("table_name", table_name)]), | ||
| 125 | + submit(hk_cancel, failure, _T("CANCEL")) | ||
| 126 | + ]) | ||
| 127 | + ] | ||
| 123 | )). | 128 | )). |
| 124 | 129 | ||
| 125 | public define Maybe(HTML_Partial_Content) | 130 | public define Maybe(HTML_Partial_Content) |