Commit 547fd85e03eee14e950b8d1cc27d6cdff0c3e008
1 parent
d474ac72
add help text to datetime
fix help_text argument in information and text
Showing
2 changed files
with
7 additions
and
7 deletions
Show diff stats
database/vtm/view_table_renderer.anubis
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | read calexium_lib/database/vtm/view_table_types.anubis |
| 10 | 10 | read calexium_lib/database/vtm/view_table_manager_types.anubis |
| 11 | 11 | read calexium_lib/database/vtm/view_table_manager.anubis |
| 12 | - | |
| 12 | +read calexium_lib/database/model/db_model.anubis | |
| 13 | 13 | read system/string.anubis |
| 14 | 14 | read locale/L3.anubis |
| 15 | 15 | read tools/basis.anubis |
| ... | ... | @@ -64,9 +64,9 @@ public define List(CXM_Form_Field) |
| 64 | 64 | primary_key(idx) then |
| 65 | 65 | [hidden(htmlId(""), wan("id"), init(idx))], |
| 66 | 66 | information(s_name, c_name, value, help) then |
| 67 | - [input_readonly(_T(s_name), wan(c_name), init(value), narrow), help_line(help)], | |
| 67 | + [input_readonly(_T(s_name), wan(c_name), init(value), narrow), help_line(help, _T)], | |
| 68 | 68 | text(s_name, c_name, value, help) then |
| 69 | - [input(_T(s_name), wan(c_name), init(value), narrow, mandatory), help_line(help)], | |
| 69 | + [input(_T(s_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], | |
| 70 | 70 | foreign_text(s_name, c_name, value, select) then |
| 71 | 71 | [selector_c([],_T(s_name), htmlId(""), wan(c_name), 1, select.get(db), success(init(to_String(value))), mandatory)], |
| 72 | 72 | text_area(s_name, c_name, value) then |
| ... | ... | @@ -77,10 +77,10 @@ public define List(CXM_Form_Field) |
| 77 | 77 | [input(_T(s_name), wan(c_name), init(abs_to_decimal(value)), small, mandatory)], |
| 78 | 78 | date(s_name, c_name, value) then |
| 79 | 79 | [input([class("datepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, non_mandatory)], |
| 80 | - datetime(s_name, c_name, value) then | |
| 81 | - [input([class("datetimepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, mandatory)], | |
| 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)], | |
| 82 | 82 | }, |
| 83 | - edit_form_lines(db, _T, t, [line]+[ so_far]) | |
| 83 | + edit_form_lines(db, _T, t, reverse(line)+so_far) | |
| 84 | 84 | }. |
| 85 | 85 | |
| 86 | 86 | public define HTML_Partial_Content | ... | ... |
database/vtm/view_table_types.anubis
| ... | ... | @@ -21,7 +21,7 @@ public type VT_edit_entry: |
| 21 | 21 | boolean(String s_name, String c_name, Bool value), |
| 22 | 22 | integer(String s_name, String c_name, Int value), |
| 23 | 23 | date(String s_name, String c_name, String value), |
| 24 | - datetime(String s_name, String c_name, String value). | |
| 24 | + datetime(String s_name, String c_name, String value, DB_Help_Text help). | |
| 25 | 25 | |
| 26 | 26 | public type VT_edit: |
| 27 | 27 | vt_edit(String table_name, List(VT_edit_entry) list). | ... | ... |