Commit 661f6c0e691001255cebb74d51c8b180aa26175f
1 parent
00581065
add sms_option phone field
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
view/view_table_renderer.anubis
| ... | ... | @@ -745,9 +745,10 @@ public define List(CXM_Form_Field) |
| 745 | 745 | color( s_name, c_name, value, help) then |
| 746 | 746 | [input([class("jscolor"), style("background-color: #"+value+";")], label(_T(s_name), no_help), wan(c_name), init(not_null_String(value)), narrow, mandatory), help_line(help, _T)], |
| 747 | 747 | phone( s_name, c_name, value, phone_type, help) then |
| 748 | + with sms_options = (Maybe(List(CoreAttrs)))if phone_type = cellphone then success([event(onclick, "hk_send_sms(this)"), class("clickable")]) else failure, | |
| 748 | 749 | with event = (List(CoreAttrs))if phone_type = fax then [] else [event(onclick, "hk_phone_call(this)"), class("clickable")], |
| 749 | 750 | //with class = (List(CoreAttrs))if phone_type = fax then [] else [class("clickable")], |
| 750 | - [phone_input(event, [], label(_T(s_name), no_help), html_Id(c_name), wan(c_name), init(not_null_String(value)), convert(phone_type), narrow, mandatory), help_line(help, _T)], | |
| 751 | + [phone_input(sms_options, event, [], label(_T(s_name), no_help), html_Id(c_name), wan(c_name), init(not_null_String(value)), convert(phone_type), narrow, mandatory), help_line(help, _T)], | |
| 751 | 752 | |
| 752 | 753 | email( s_name, c_name, value, help) then |
| 753 | 754 | [email_input([event(onclick, "hk_send_email(this)")], [class("clickable")], label(_T(s_name), no_help), html_Id(c_name), wan(c_name), init(not_null_String(value)), narrow, mandatory), help_line(help, _T)], |
| ... | ... | @@ -961,9 +962,9 @@ public define List(CXM_Form_Field) |
| 961 | 962 | color( s_name, c_name, value, help) then |
| 962 | 963 | [input([class("jscolor"), style("background-color: #"+value+";")], no_label, wan(c_name), init(not_null_String(value)), narrow, mandatory), help_line(help, _T)], |
| 963 | 964 | phone( s_name, c_name, value, phone_type, help) then |
| 964 | - with event = (List(CoreAttrs))if phone_type = fax then [] else [event(onclick, "hk_phone_call(this)")], | |
| 965 | - with class = (List(CoreAttrs))if phone_type = fax then [] else [class("clickable")], | |
| 966 | - [phone_input(event, class, label(_T(s_name), no_help), html_Id(c_name), wan(c_name), init(not_null_String(value)), convert(phone_type), narrow, mandatory), help_line(help, _T)], | |
| 965 | + with sms_options = (Maybe(List(CoreAttrs)))if phone_type = cellphone then success([event(onclick, "hk_send_sms(this)"), class("clickable")]) else failure, | |
| 966 | + with event = (List(CoreAttrs))if phone_type = fax then [] else [event(onclick, "hk_phone_call(this)"), class("clickable")], | |
| 967 | + [phone_input(sms_options, event, [], label(_T(s_name), no_help), html_Id(c_name), wan(c_name), init(not_null_String(value)), convert(phone_type), narrow, mandatory), help_line(help, _T)], | |
| 967 | 968 | email( s_name, c_name, value, help) then |
| 968 | 969 | [email_input([event(onclick, "hk_send_email(this)"), class("clickable")], [class("hk_input_email")], label(_T(s_name), no_help), html_Id(c_name), wan(c_name), init(not_null_String(value)), narrow, mandatory), help_line(help, _T)], |
| 969 | 970 | url( s_name, c_name, value, help) then | ... | ... |