Commit 93d0a28fef7c4ab863c831a7ecd3db80079090f2

Authored by Steve MARECHAL
1 parent 7c4826f5

input may be password type

Showing 1 changed file with 14 additions and 7 deletions   Show diff stats
calexium_lib/web/CXM_dojo.anubis
... ... @@ -67,23 +67,30 @@ public define HTML_Off_Form
67 67 <button dojoType=\"dijit.form.Button\" id=\""+id+"\" onclick=\""+execute+"\">"+name+"</button>")
68 68 .
69 69  
  70 +public type Input_Type:
  71 + file,
  72 + text,
  73 + password.
  74 +
70 75 public type InputDial:
71   - input_dial(String id, Bool file, String label).
  76 + input_dial(String id, Input_Type input_type, String label).
72 77  
73 78 define HTML_Row(HTML_Off_Form)
74 79 input_in_dialog
75 80 (
76 81 InputDial input_data
77 82 )=
78   - if input_data is input_dial(id, file, label) then
  83 + if input_data is input_dial(id, input, label) then
79 84 row([], [cell([], sequence([
80 85 literal("<label for=\"" + id + "\"> " + label + "</label>"),
81 86 literal("<input dojoType=dijit.form.TextBox " +
82   - (if file then
83   - "type=\"file\""
84   - else
85   - "type=\"text\"")
86   - + " name=\""+id+"\" id=\""+id+"\" />")
  87 + if input is
  88 + {
  89 + file then "type=\"file\"",
  90 + text then "type=\"text\"",
  91 + password then "type=\"password\""
  92 + } +
  93 + " name=\""+id+"\" id=\""+id+"\" />")
87 94 ]))]).
88 95  
89 96 define List(HTML_Row(HTML_Off_Form))
... ...