Commit c35a09600434ab87f1e00cb454b97dd668d99ccb

Authored by totoro
1 parent 5dc2618d

add helper for viewing table without foreign clause and referer

view/view_table_manager_types.anubis
... ... @@ -6,13 +6,12 @@
6 6 *
7 7 */
8 8  
9   -read hayamiki_lib/view/types/hk_form.anubis
10   -read hayamiki_lib/view/types/hk_view.anubis
11   -read hayamiki_lib/view/types/hk_filter.anubis
  9 +transmit hayamiki_lib/view/types/hk_form.anubis
  10 +transmit hayamiki_lib/view/types/hk_view.anubis
  11 +transmit hayamiki_lib/view/types/hk_filter.anubis
  12 +transmit calexium_lib/web/CXM_common.anubis
12 13 read hayamiki_lib/types/hayamiki.anubis
13 14  
14   -read calexium_lib/web/CXM_common.anubis
15   -
16 15 public type VTM_edit:
17 16 vtm_edit(String table_name, (SQLite3DataBase db, HK_Form_action action, String edit_view_name) -> HK_Form get_edit).
18 17  
... ...
view/view_table_renderer.anubis
... ... @@ -525,6 +525,20 @@ public define Maybe(HTML_Partial_Content)
525 525 }.
526 526  
527 527 public define Maybe(HTML_Partial_Content)
  528 + view_table_content
  529 + (
  530 + SQLite3DataBase db,
  531 + (String) -> String _T,
  532 + String lang,
  533 + String web_site_directory,
  534 + String table_name,
  535 + String view_name,
  536 + String action_name,
  537 + VTM vtm
  538 + ) =
  539 + view_table_content(db, _T, lang, web_site_directory, table_name, view_name, action_name, "", "", no_referer, "", vtm).
  540 +
  541 +public define Maybe(HTML_Partial_Content)
528 542 table_in_list_view_only
529 543 (
530 544 SQLite3DataBase db,
... ... @@ -1054,4 +1068,19 @@ public define Maybe(HTML_Partial_Content)
1054 1068 }
1055 1069 }.
1056 1070  
  1071 +public define Maybe(HTML_Partial_Content)
  1072 + edit_table_content
  1073 + (
  1074 + SQLite3DataBase db,
  1075 + (String) -> String _T,
  1076 + String lang,
  1077 + String web_site_directory,
  1078 + List(Web_arg) lwa,
  1079 + String table, //table name
  1080 + String view_name, //view name to use
  1081 + HK_Form_action action, //new_entry or edit an existing record
  1082 + VTM vtm
  1083 + ) =
  1084 + edit_table_content(db, _T, lang, web_site_directory, lwa, table, view_name, action, vtm, "", "", no_referer)
  1085 +.
1057 1086  
... ...