Commit 6c7ef284f883edbff71a79c32632caaab6cc8190
1 parent
5ae5c66a
add choice_int and password editor
Showing
2 changed files
with
9 additions
and
0 deletions
Show diff stats
database/vtm/view_table_renderer.anubis
| ... | ... | @@ -71,6 +71,11 @@ public define List(CXM_Form_Field) |
| 71 | 71 | [input_readonly(label(_T(s_name), no_help), wan(c_name), init(value), if width > 0 then custom(width) else narrow), help_line(help, _T)], |
| 72 | 72 | text(s_name, c_name, value, help) then |
| 73 | 73 | [input(label(_T(s_name), no_help), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], |
| 74 | + password(s_name, c_name, help) then | |
| 75 | + [password_input(label(_T(s_name), no_help), wan(c_name+"_1"), init(""), narrow, non_mandatory), | |
| 76 | + password_input(label(_T(s_name), no_help), wan(c_name+"_2"), init(""), narrow, non_mandatory), | |
| 77 | + help_line(help, _T)], | |
| 78 | + | |
| 74 | 79 | foreign_text(s_name, c_name, value, select, help) then |
| 75 | 80 | [selector_c([],label(_T(s_name), no_help), html_Id(""), wan(c_name), 1, select.get(db), success(init(to_String(value))), mandatory), help_line(help, _T)], |
| 76 | 81 | choices_text(s_name, c_name, value, select, help) then |
| ... | ... | @@ -81,6 +86,8 @@ public define List(CXM_Form_Field) |
| 81 | 86 | [checkboxr([],label(_T(s_name), no_help), html_Id(""), wan(c_name), wav(c_name),value, mandatory), help_line(help, _T)], |
| 82 | 87 | integer(s_name, c_name, value, help) then |
| 83 | 88 | [input(label(_T(s_name), no_help), wan(c_name), init(abs_to_decimal(value)), small, mandatory), help_line(help, _T)], |
| 89 | + choices_int(s_name, c_name, value, select, help) then | |
| 90 | + [selector_c([],label(_T(s_name), no_help), html_Id(""), wan(c_name), 1, select.get(db), success(init(to_String(value))), mandatory), help_line(help, _T)], | |
| 84 | 91 | date(s_name, c_name, value, help) then |
| 85 | 92 | [input([class("datepicker")], label(_T(s_name), no_help), html_Id(c_name), wan(c_name), init(value), small, non_mandatory), help_line(help, _T)], |
| 86 | 93 | time(s_name, c_name, value, help) then | ... | ... |
database/vtm/view_table_types.anubis
| ... | ... | @@ -17,11 +17,13 @@ public type VT_edit_entry: |
| 17 | 17 | primary_key (String idx), |
| 18 | 18 | information (String s_name, String c_name, String v_name, Int width, HK_Help_Text help), //s_name = show_name for translation, v_name = string to show |
| 19 | 19 | text (String s_name, String c_name, String value, HK_Help_Text help), //s_name = show_name for translation, c_name = table column name |
| 20 | + password (String s_name, String c_name, HK_Help_Text help), //s_name = show_name for translation, c_name = table column name | |
| 20 | 21 | foreign_text(String s_name, String c_name, Int selected, VT_edit_selector selector, HK_Help_Text help), |
| 21 | 22 | choices_text(String s_name, String c_name, String selected, VT_edit_selector selector, HK_Help_Text help), |
| 22 | 23 | text_area (String s_name, String c_name, String value, HK_Help_Text help), //s_name = show_name for translate, c_name = table column name |
| 23 | 24 | boolean (String s_name, String c_name, Bool value, HK_Help_Text help), |
| 24 | 25 | integer (String s_name, String c_name, Int value, HK_Help_Text help), |
| 26 | + choices_int (String s_name, String c_name, Int selected, VT_edit_selector selector, HK_Help_Text help), | |
| 25 | 27 | date (String s_name, String c_name, String value, HK_Help_Text help), |
| 26 | 28 | time (String s_name, String c_name, String value, HK_Help_Text help), |
| 27 | 29 | datetime (String s_name, String c_name, String value, HK_Help_Text help). | ... | ... |