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 25 grid_data(String).
26 26  
27 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 40 dojo_dialog
29 41 (
30 42 String name,
... ... @@ -32,14 +44,13 @@ public define HTML_Off_Form
32 44 String execute,
33 45 )
34 46 =
  47 + sequence[
  48 + dojo_button(name,"dijit.byId('"+id+"').show()", "dialog_id"),
35 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 51 execute=\""+execute+"\">
40 52 <table>
41 53 <tr>
42   -
43 54 <td><input dojoType=dijit.form.TextBox type=\"text\" name=\"name\" id=\"name_"+id+"\"></td>
44 55 </tr>
45 56  
... ... @@ -49,7 +60,7 @@ public define HTML_Off_Form
49 60 </tr>
50 61 </table>
51 62 </div></br>")
52   -
  63 + ]
53 64 .
54 65  
55 66 public define HTML_Off_Form
... ...