Commit 1e88b18c76703b4451a4c70686d9d31c47435f44
1 parent
3260e9dd
add helper for constructor without help_text
Showing
1 changed file
with
17 additions
and
9 deletions
Show diff stats
database/vtm/view_table_types.anubis
| @@ -6,23 +6,31 @@ | @@ -6,23 +6,31 @@ | ||
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | read calexium_lib/web/CXM_making_a_web_site.anubis | 8 | read calexium_lib/web/CXM_making_a_web_site.anubis |
| 9 | +transmit calexium_lib/web/CXM_common.anubis | ||
| 9 | read calexium_lib/database/model/db_model.anubis | 10 | read calexium_lib/database/model/db_model.anubis |
| 10 | 11 | ||
| 11 | public type VT_edit_selector: | 12 | public type VT_edit_selector: |
| 12 | vt_edit_selector((SQLite3DataBase db) -> List((List(CoreAttrs), WebArgValue, String)) get). | 13 | vt_edit_selector((SQLite3DataBase db) -> List((List(CoreAttrs), WebArgValue, String)) get). |
| 13 | 14 | ||
| 14 | public type VT_edit_entry: | 15 | public type VT_edit_entry: |
| 15 | - hidden(String name, String value), | ||
| 16 | - primary_key(String idx), | ||
| 17 | - information(String s_name, String c_name, String v_name, DB_Help_Text help), //s_name = show_name for translation, v_name = string to show | ||
| 18 | - text(String s_name, String c_name, String value, DB_Help_Text help), //s_name = show_name for translation, c_name = table column name | 16 | + hidden (String name, String value), |
| 17 | + primary_key (String idx), | ||
| 18 | + information (String s_name, String c_name, String v_name, DB_Help_Text help), //s_name = show_name for translation, v_name = string to show | ||
| 19 | + text (String s_name, String c_name, String value, DB_Help_Text help), //s_name = show_name for translation, c_name = table column name | ||
| 19 | foreign_text(String s_name, String c_name, Int selected, VT_edit_selector selector, DB_Help_Text help), | 20 | foreign_text(String s_name, String c_name, Int selected, VT_edit_selector selector, DB_Help_Text help), |
| 20 | - text_area(String s_name, String c_name, String value, DB_Help_Text help), //s_name = show_name for translate, c_name = table column name | ||
| 21 | - boolean(String s_name, String c_name, Bool value, DB_Help_Text help), | ||
| 22 | - integer(String s_name, String c_name, Int value, DB_Help_Text help), | ||
| 23 | - date(String s_name, String c_name, String value, DB_Help_Text help), | ||
| 24 | - datetime(String s_name, String c_name, String value, DB_Help_Text help). | 21 | + text_area (String s_name, String c_name, String value, DB_Help_Text help), //s_name = show_name for translate, c_name = table column name |
| 22 | + boolean (String s_name, String c_name, Bool value, DB_Help_Text help), | ||
| 23 | + integer (String s_name, String c_name, Int value, DB_Help_Text help), | ||
| 24 | + date (String s_name, String c_name, String value, DB_Help_Text help), | ||
| 25 | + datetime (String s_name, String c_name, String value, DB_Help_Text help). | ||
| 25 | 26 | ||
| 27 | +public define VT_edit_entry text (String s_name, String c_name, String value) = text(s_name, c_name, value, no_help_text). | ||
| 28 | +public define VT_edit_entry foreign_text(String s_name, String c_name, Int selected, VT_edit_selector selector) = foreign_text(s_name, c_name, selected, selector, no_help_text). | ||
| 29 | +public define VT_edit_entry text_area (String s_name, String c_name, String value) = text_area(s_name, c_name, value, no_help_text). | ||
| 30 | +public define VT_edit_entry boolean(String s_name, String c_name, Bool value) = boolean(s_name, c_name, value, no_help_text). | ||
| 31 | +public define VT_edit_entry integer(String s_name, String c_name, Int value) = integer(s_name, c_name, value, no_help_text). | ||
| 32 | + | ||
| 33 | + | ||
| 26 | public type VT_edit: | 34 | public type VT_edit: |
| 27 | vt_edit(String table_name, List(VT_edit_entry) list). | 35 | vt_edit(String table_name, List(VT_edit_entry) list). |
| 28 | 36 |