From 5184af72d628d4f7a4ba96611e6955b19cdff2e5 Mon Sep 17 00:00:00 2001 From: Steve MARECHAL Date: Fri, 29 Aug 2008 10:07:30 +0000 Subject: [PATCH] dojo dialog, file added --- calexium_lib/web/CXM_dojo.anubis | 37 +++++++++++++++++++++---------------- calexium_lib/web/CXM_making_a_web_site.anubis | 13 +++++++++---- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/calexium_lib/web/CXM_dojo.anubis b/calexium_lib/web/CXM_dojo.anubis index 83df119..bcbb911 100644 --- a/calexium_lib/web/CXM_dojo.anubis +++ b/calexium_lib/web/CXM_dojo.anubis @@ -44,35 +44,30 @@ public define HTML_Off_Form String name, String dialog_id, String execute, + Bool file ) = sequence[ - dojo_button(name,"dijit.byId('"+dialog_id+"').show()", "dialog_id"), + dojo_button(name,"dijit.byId('"+dialog_id+"').show()", dialog_id + "_button"), div([attr("dojoType", "dijit.Dialog"), id(dialog_id), title(name), attr("execute", execute)], table([], empty, [ - row([], [cell([], literal(""))]), + row([], [cell([], literal("") + + )]), row([], [cell([columns(2), h_center], literal(""))]), ], empty)), literal("
"), -// literal(" -//
-// -// -// -// -// -// -// -// -//
-//
-//

") ] . + public type DojoGridEditor: inputEditor, boolEditor, @@ -367,6 +362,16 @@ public define HTML_Off_Form content). + public define HTML_In_Form + dojo_declaration + ( + String name, + List(CoreAttrs) attributes, + HTML_In_Form content + )= + div([attr("dojoType", "dijit.Declaration"), attr("widgetClass", name) . attributes ], + content). + public define HTML_In_Form dojo_editor ( diff --git a/calexium_lib/web/CXM_making_a_web_site.anubis b/calexium_lib/web/CXM_making_a_web_site.anubis index 01b4163..0863b92 100644 --- a/calexium_lib/web/CXM_making_a_web_site.anubis +++ b/calexium_lib/web/CXM_making_a_web_site.anubis @@ -1053,7 +1053,7 @@ public type HTML_In_Form: check_box_r (List(InputAttrs), String label_text, HtmlId id, WebArgName name, WebArgValue value, Bool checked), div (List(CoreAttrs), HTML_In_Form content), div_empty (List(CoreAttrs)), - hidden (WebArgName name, InitialValue init). + hidden (HtmlId id, WebArgName name, InitialValue init). 'HTML_In_Form' defines all the elements you may put within a form. We define a @@ -1194,6 +1194,11 @@ public define HTML_In_Form public define HTML_In_Form file_upload (WebArgName name, Int width) = file_upload([], "", htmlId(""), name, width). + +public define HTML_In_Form + hidden (WebArgName name, InitialValue init) + = if name is wan(web_name) then + hidden(htmlId(web_name), name, init). public type HTML_Body:... @@ -3999,8 +4004,8 @@ define Printable_tree format(cinfo,sn,ic_v,any_div(options, e),format_element,is_https), div_empty(options) then format(cinfo,sn,ic_v,any_div_empty(options),format_element,is_https), - hidden(name, value) then - [""], + hidden(id, name, value) then + [""], }. @@ -4081,7 +4086,7 @@ define Bool check_box_r(o,_,_,n,v,c) then false, div(o,c) then contains_an_upload(c), div_empty(o) then false, - hidden(_,_) then false + hidden(_,_,_) then false }. define String -- libgit2 0.21.4