Commit 0b81fe04f1cd91d88f646d7577d2366bab7676bf
1 parent
749c7360
add help_text rendering for:
- foreign_text - text_area - boolean - integer - date
Showing
2 changed files
with
15 additions
and
15 deletions
Show diff stats
database/vtm/view_table_renderer.anubis
| @@ -67,16 +67,16 @@ public define List(CXM_Form_Field) | @@ -67,16 +67,16 @@ public define List(CXM_Form_Field) | ||
| 67 | [input_readonly(_T(s_name), wan(c_name), init(value), narrow), help_line(help, _T)], | 67 | [input_readonly(_T(s_name), wan(c_name), init(value), narrow), help_line(help, _T)], |
| 68 | text(s_name, c_name, value, help) then | 68 | text(s_name, c_name, value, help) then |
| 69 | [input(_T(s_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], | 69 | [input(_T(s_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], |
| 70 | - foreign_text(s_name, c_name, value, select) then | ||
| 71 | - [selector_c([],_T(s_name), htmlId(""), wan(c_name), 1, select.get(db), success(init(to_String(value))), mandatory)], | ||
| 72 | - text_area(s_name, c_name, value) then | ||
| 73 | - [text_area([],_T(s_name), htmlId(""), wan(c_name), init(value), narrow, (Int)5, mandatory)], | ||
| 74 | - boolean(s_name, c_name, value) then | ||
| 75 | - [checkboxr([],_T(s_name), htmlId(""), wan(c_name), wav(c_name),value, mandatory)], | ||
| 76 | - integer(s_name, c_name, value) then | ||
| 77 | - [input(_T(s_name), wan(c_name), init(abs_to_decimal(value)), small, mandatory)], | ||
| 78 | - date(s_name, c_name, value) then | ||
| 79 | - [input([class("datepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, non_mandatory)], | 70 | + foreign_text(s_name, c_name, value, select, help) then |
| 71 | + [selector_c([],_T(s_name), htmlId(""), wan(c_name), 1, select.get(db), success(init(to_String(value))), mandatory), help_line(help, _T)], | ||
| 72 | + text_area(s_name, c_name, value, help) then | ||
| 73 | + [text_area([],_T(s_name), htmlId(""), wan(c_name), init(value), narrow, (Int)5, mandatory), help_line(help, _T)], | ||
| 74 | + boolean(s_name, c_name, value, help) then | ||
| 75 | + [checkboxr([],_T(s_name), htmlId(""), wan(c_name), wav(c_name),value, mandatory), help_line(help, _T)], | ||
| 76 | + integer(s_name, c_name, value, help) then | ||
| 77 | + [input(_T(s_name), wan(c_name), init(abs_to_decimal(value)), small, mandatory), help_line(help, _T)], | ||
| 78 | + date(s_name, c_name, value, help) then | ||
| 79 | + [input([class("datepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, non_mandatory), help_line(help, _T)], | ||
| 80 | datetime(s_name, c_name, value, help) then | 80 | datetime(s_name, c_name, value, help) then |
| 81 | [input([class("datetimepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], | 81 | [input([class("datetimepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], |
| 82 | }, | 82 | }, |
database/vtm/view_table_types.anubis
| @@ -16,11 +16,11 @@ public type VT_edit_entry: | @@ -16,11 +16,11 @@ public type VT_edit_entry: | ||
| 16 | primary_key(String idx), | 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 | 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 | 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 |
| 19 | - foreign_text(String s_name, String c_name, Int selected, VT_edit_selector selector), | ||
| 20 | - text_area(String s_name, String c_name, String value), //s_name = show_name for translate, c_name = table column name | ||
| 21 | - boolean(String s_name, String c_name, Bool value), | ||
| 22 | - integer(String s_name, String c_name, Int value), | ||
| 23 | - date(String s_name, String c_name, String value), | 19 | + 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). | 24 | datetime(String s_name, String c_name, String value, DB_Help_Text help). |
| 25 | 25 | ||
| 26 | public type VT_edit: | 26 | public type VT_edit: |