diff --git a/web/CXM_making_a_web_site.anubis b/web/CXM_making_a_web_site.anubis index 72c48ca..37cc627 100644 --- a/web/CXM_making_a_web_site.anubis +++ b/web/CXM_making_a_web_site.anubis @@ -1033,25 +1033,41 @@ public type HTML_Footer_Row($T): Same remark as for 'HTML_Cell($T)'. We define several convenience functions: public define HTML_Row($T) - row - ( - List(HTML_Cell($T)) cells - ) = - row([],cells). + row + ( + List(HTML_Cell($T)) cells + )= + row([],cells). public define HTML_Row($T) - row - ( - HTML_Cell($T) cell - ) = - row([],[cell]). + row + ( + HTML_Cell($T) cell + )= + row([],[cell]). + +public define HTML_Row($T) + row + ( + List(Cell_Option) options, + HTML_Cell($T) cell + )= + row(options,[cell]). + +public define HTML_Row($T) + row + ( + Cell_Option option, + HTML_Cell($T) cell + )= + row([option],[cell]). public define HTML_Header_Row($T) - header_row - ( - List(HTML_Header_Cell($T)) cells - ) = - header_row([],cells). + header_row + ( + List(HTML_Header_Cell($T)) cells + ) = + header_row([],cells). public define HTML_Header_Row($T) header_row diff --git a/web/widgets/button.anubis b/web/widgets/button.anubis index 9b49c46..5f12a16 100644 --- a/web/widgets/button.anubis +++ b/web/widgets/button.anubis @@ -42,7 +42,19 @@ public define HTML_Partial_Content String url )= img_button_flink(img_path, [], same, url). + +public define HTML_Partial_Content + img_button + ( + String img_path, + List(CoreAttrs) core_attrs, + Actioner_Target target, + WEB_Action_Name url, + List((String, String)) extra_ops + )= + partial_content(actioner(same, same, img_link(core_attrs+[style("cursor: pointer")], img_path, ""), url, extra_ops)). + public define HTML_Partial_Content img_button ( @@ -66,6 +78,15 @@ public define HTML_Partial_Content img_button ( String img_path, + WEB_Action_Name url, + List((String, String)) extra_ops + )= + img_button(img_path, [], same, url, extra_ops). + +public define HTML_Partial_Content + img_button + ( + String img_path, String url, List((String, String)) extra_ops )= diff --git a/web/widgets/icons_set.anubis b/web/widgets/icons_set.anubis index 22fe582..c8d6be8 100644 --- a/web/widgets/icons_set.anubis +++ b/web/widgets/icons_set.anubis @@ -23,6 +23,7 @@ public define String icn16_group = "icons/16x16/group.png". public define String icn16_question = "icons/16x16/question.png". public define String icn16_refresh = "icons/16x16/arrow_refresh.png". public define String icn16_vcard_add = "icons/16x16/vcard_add.png". +public define String icn16_view_list = "icons/16x16/view_list.png". public define String icn16_warning = "icons/16x16/warning.png". public define String icn16_true = "icons/16x16/check.png". -- libgit2 0.21.4