diff --git a/calexium_lib/web/CXM_dojo.anubis b/calexium_lib/web/CXM_dojo.anubis index a4528cc..f69c41b 100644 --- a/calexium_lib/web/CXM_dojo.anubis +++ b/calexium_lib/web/CXM_dojo.anubis @@ -70,11 +70,12 @@ public define HTML_Off_Form public define HTML_Off_Form dijit_dialog ( - String name, - String dialog_id, - String execute, - Bool file, - String ok_label + String name, + String dialog_id, + String execute, + Bool file, + String ok_label, + Maybe(String) cancel, ) = sequence[ @@ -90,7 +91,14 @@ public define HTML_Off_Form + " name=\"name\" id=\"name_"+dialog_id+"\" />") )]), - row([], [cell([columns(2), h_center], literal(""))]), + row([], [cell([columns(2), h_center], + literal("" + + if cancel is + { + failure then "", + success(cancel_label) then "" + } + ))]), ], empty)), literal("
"), @@ -100,16 +108,17 @@ public define HTML_Off_Form public define HTML_Off_Form dojo_dialog ( - String name, - String dialog_id, - String execute, - Bool file, - String ok_label + String name, + String dialog_id, + String execute, + Bool file, + String ok_label, + Maybe(String) cancel ) = sequence[ dojo_button(name,"dijit.byId('"+dialog_id+"').show()", dialog_id + "_button"), - dijit_dialog(name, dialog_id, execute, file, ok_label) + dijit_dialog(name, dialog_id, execute, file, ok_label, cancel) ] . -- libgit2 0.21.4