Commit 062191e3a1b89028a09ff2b5c0cedb1905cd27cd

Authored by Cédric RICARD
1 parent cae070fb

Added hidden field into dojo dialog

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
calexium_lib/web/CXM_dojo.anubis
@@ -70,7 +70,8 @@ public type InputDial: @@ -70,7 +70,8 @@ public type InputDial:
70 input_dial(HtmlId id, Input_Type input_type, String label, Maybe(String) class), 70 input_dial(HtmlId id, Input_Type input_type, String label, Maybe(String) class),
71 input_date(HtmlId id, String label), 71 input_date(HtmlId id, String label),
72 input_combo(HtmlId id, String label, List((WebArgValue,String)) list_data), 72 input_combo(HtmlId id, String label, List((WebArgValue,String)) list_data),
73 - input_check(HtmlId id, String label, Bool checked). 73 + input_check(HtmlId id, String label, Bool checked),
  74 + input_hidden(HtmlId id, WebArgValue value).
74 75
75 76
76 define List(HTML_Off_Form) 77 define List(HTML_Off_Form)
@@ -182,6 +183,9 @@ define HTML_Off_Form @@ -182,6 +183,9 @@ define HTML_Off_Form
182 dojo_checkbox(wan(the_id.id), the_id, label, wav("1"), checked), 183 dojo_checkbox(wan(the_id.id), the_id, label, wav("1"), checked),
183 literal("</div>"), 184 literal("</div>"),
184 ]), 185 ]),
  186 +
  187 + input_hidden(the_id, val) then
  188 + literal("<input type=\"hidden\" id=\"" + the_id.id +"\" name=\"" + the_id.id +"\" value=\"" + val.value + "\" class=\"dojo_diag\" />"),
185 } 189 }
186 . 190 .
187 191