Commit 33d329ffdab0e8fda717984d60f7c0ef50d8a847

Authored by Steve MARECHAL
1 parent 8e03bfbd

input with date

Showing 1 changed file with 26 additions and 14 deletions   Show diff stats
calexium_lib/web/CXM_dojo.anubis
... ... @@ -73,25 +73,38 @@ public type Input_Type:
73 73 password.
74 74  
75 75 public type InputDial:
76   - input_dial(String id, Input_Type input_type, String label).
  76 + input_dial(String id, Input_Type input_type, String label),
  77 + input_date(String id, String label).
77 78  
78 79 define HTML_Row(HTML_Off_Form)
79 80 input_in_dialog
80 81 (
81 82 InputDial input_data
82 83 )=
83   - if input_data is input_dial(id, input, label) then
84   - row([], [cell([], sequence([
85   - literal("<label for=\"" + id + "\"> " + label + "</label>"),
86   - literal("<input dojoType=dijit.form.TextBox " +
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+"\" />")
94   - ]))]).
  84 + if input_data is
  85 + {
  86 + input_dial(id, input, label) then
  87 + row([], [cell([], sequence([
  88 + literal("<label for=\"" + id + "\"> " + label + "</label>"),
  89 + literal("<input dojoType=dijit.form.TextBox " +
  90 + if input is
  91 + {
  92 + file then "type=\"file\"",
  93 + text then "type=\"text\"",
  94 + password then "type=\"password\""
  95 + } +
  96 + " name=\""+id+"\" id=\""+id+"\" />")
  97 + ]))]),
  98 + input_date(id, label) then
  99 + row([], [cell([], sequence([
  100 + literal("<label for=\"" + id + "\"> " + label + "</label>"),
  101 + literal("<div id=\""+id+"\" type=\"text\" name=\"date1\"
  102 + dojoType=\"dijit.form.DateTextBox\">
  103 + </div>"
  104 + )
  105 + ]))])
  106 + }
  107 +.
95 108  
96 109 define List(HTML_Row(HTML_Off_Form))
97 110 inputs_in_dialog
... ... @@ -637,4 +650,3 @@ public define HTML_Off_Form
637 650 div([id(html_id.id), class("progress_bar"), attr("indeterminate", "true"), attr("dojoType", "dijit.ProgressBar") . attributes], literal(""))
638 651 ]).
639 652  
640   -
... ...