From 547fd85e03eee14e950b8d1cc27d6cdff0c3e008 Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 16 Jan 2016 22:15:00 +0100 Subject: [PATCH] add help text to datetime fix help_text argument in information and text --- database/vtm/view_table_renderer.anubis | 12 ++++++------ database/vtm/view_table_types.anubis | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/database/vtm/view_table_renderer.anubis b/database/vtm/view_table_renderer.anubis index 15373d9..408d5ad 100644 --- a/database/vtm/view_table_renderer.anubis +++ b/database/vtm/view_table_renderer.anubis @@ -9,7 +9,7 @@ read calexium_lib/database/vtm/view_table_types.anubis read calexium_lib/database/vtm/view_table_manager_types.anubis read calexium_lib/database/vtm/view_table_manager.anubis - +read calexium_lib/database/model/db_model.anubis read system/string.anubis read locale/L3.anubis read tools/basis.anubis @@ -64,9 +64,9 @@ public define List(CXM_Form_Field) primary_key(idx) then [hidden(htmlId(""), wan("id"), init(idx))], information(s_name, c_name, value, help) then - [input_readonly(_T(s_name), wan(c_name), init(value), narrow), help_line(help)], + [input_readonly(_T(s_name), wan(c_name), init(value), narrow), help_line(help, _T)], text(s_name, c_name, value, help) then - [input(_T(s_name), wan(c_name), init(value), narrow, mandatory), help_line(help)], + [input(_T(s_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], foreign_text(s_name, c_name, value, select) then [selector_c([],_T(s_name), htmlId(""), wan(c_name), 1, select.get(db), success(init(to_String(value))), mandatory)], text_area(s_name, c_name, value) then @@ -77,10 +77,10 @@ public define List(CXM_Form_Field) [input(_T(s_name), wan(c_name), init(abs_to_decimal(value)), small, mandatory)], date(s_name, c_name, value) then [input([class("datepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, non_mandatory)], - datetime(s_name, c_name, value) then - [input([class("datetimepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, mandatory)], + datetime(s_name, c_name, value, help) then + [input([class("datetimepicker")], _T(s_name), htmlId(c_name), wan(c_name), init(value), narrow, mandatory), help_line(help, _T)], }, - edit_form_lines(db, _T, t, [line]+[ so_far]) + edit_form_lines(db, _T, t, reverse(line)+so_far) }. public define HTML_Partial_Content diff --git a/database/vtm/view_table_types.anubis b/database/vtm/view_table_types.anubis index f124843..b09a727 100644 --- a/database/vtm/view_table_types.anubis +++ b/database/vtm/view_table_types.anubis @@ -21,7 +21,7 @@ public type VT_edit_entry: boolean(String s_name, String c_name, Bool value), integer(String s_name, String c_name, Int value), date(String s_name, String c_name, String value), - datetime(String s_name, String c_name, String value). + datetime(String s_name, String c_name, String value, DB_Help_Text help). public type VT_edit: vt_edit(String table_name, List(VT_edit_entry) list). -- libgit2 0.21.4