Commit ee111c97e1a51ddf2da6ada27ccb37df68874484
1 parent
291e3895
add editor view according to hayamiki generator
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
view/view_table_manager_types.anubis
| ... | ... | @@ -10,7 +10,7 @@ read hayamiki_lib/view/view_table_types.anubis |
| 10 | 10 | read calexium_lib/web/CXM_common.anubis |
| 11 | 11 | |
| 12 | 12 | public type VTM_edit: |
| 13 | - vtm_edit(String table_name, (SQLite3DataBase db, VT_action action) -> VT_edit get_edit). | |
| 13 | + vtm_edit(String table_name, (SQLite3DataBase db, VT_action action, String edit_view_name) -> VT_edit get_edit). | |
| 14 | 14 | |
| 15 | 15 | public type VTM_edit_list: |
| 16 | 16 | vtm_edit_list(List(VTM_edit) list). | ... | ... |
view/view_table_renderer.anubis
| ... | ... | @@ -123,6 +123,7 @@ public define Maybe(HTML_Partial_Content) |
| 123 | 123 | String lang, |
| 124 | 124 | List(Web_arg) lwa, |
| 125 | 125 | String table, |
| 126 | + String view_name, | |
| 126 | 127 | VT_action action, |
| 127 | 128 | VTM vtm |
| 128 | 129 | ) = |
| ... | ... | @@ -131,7 +132,7 @@ public define Maybe(HTML_Partial_Content) |
| 131 | 132 | failure then failure, |
| 132 | 133 | success(vtm_e) then |
| 133 | 134 | since vtm_e is vtm_edit(_, get_edit), |
| 134 | - success(edit_table_page(db, _T, lang, lwa, get_edit(db, action))) | |
| 135 | + success(edit_table_page(db, _T, lang, lwa, get_edit(db, action, view_name))) | |
| 135 | 136 | }. |
| 136 | 137 | |
| 137 | 138 | ... | ... |