Commit 3d16bf3efe1c343b0286de5f0bcc8b7da4f197f7

Authored by Steve MARECHAL
1 parent a1fffdbe

add dojo_button

Showing 1 changed file with 16 additions and 5 deletions   Show diff stats
calexium_lib/web/CXM_dojo.anubis
@@ -25,6 +25,18 @@ public type Dojo_Grid_Data : @@ -25,6 +25,18 @@ public type Dojo_Grid_Data :
25 grid_data(String). 25 grid_data(String).
26 26
27 public define HTML_Off_Form 27 public define HTML_Off_Form
  28 + dojo_button
  29 + (
  30 + String name,
  31 + String execute,
  32 + String id,
  33 + )
  34 + =
  35 + literal("
  36 + <button dojoType=\"dijit.form.Button\" id=\""+id+"\" onclick=\""+execute+"\">"+name+"</button>")
  37 +.
  38 +
  39 +public define HTML_Off_Form
28 dojo_dialog 40 dojo_dialog
29 ( 41 (
30 String name, 42 String name,
@@ -32,14 +44,13 @@ public define HTML_Off_Form @@ -32,14 +44,13 @@ public define HTML_Off_Form
32 String execute, 44 String execute,
33 ) 45 )
34 = 46 =
  47 + sequence[
  48 + dojo_button(name,"dijit.byId('"+id+"').show()", "dialog_id"),
35 literal(" 49 literal("
36 -<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('"+id+"').show()\">"+name+"</button>  
37 -  
38 -<div dojoType=\"dijit.Dialog\" id=\""+id+"\" title=\""+name+"\" 50 + <div dojoType=\"dijit.Dialog\" id=\""+id+"\" title=\""+name+"\"
39 execute=\""+execute+"\"> 51 execute=\""+execute+"\">
40 <table> 52 <table>
41 <tr> 53 <tr>
42 -  
43 <td><input dojoType=dijit.form.TextBox type=\"text\" name=\"name\" id=\"name_"+id+"\"></td> 54 <td><input dojoType=dijit.form.TextBox type=\"text\" name=\"name\" id=\"name_"+id+"\"></td>
44 </tr> 55 </tr>
45 56
@@ -49,7 +60,7 @@ public define HTML_Off_Form @@ -49,7 +60,7 @@ public define HTML_Off_Form
49 </tr> 60 </tr>
50 </table> 61 </table>
51 </div></br>") 62 </div></br>")
52 - 63 + ]
53 . 64 .
54 65
55 public define HTML_Off_Form 66 public define HTML_Off_Form