Commit 6fe1d5816fc24e2228360f4a369e54ecfedaffe8
1 parent
6edd71c5
add class in on radio_button, selector and checkbox
Showing
1 changed file
with
9 additions
and
9 deletions
Show diff stats
web/CXM_form.anubis
| ... | ... | @@ -388,22 +388,22 @@ public define HTML_In_Form |
| 388 | 388 | selector(options, label, id, wan, size, items, selected, mand) then |
| 389 | 389 | if selected is |
| 390 | 390 | { |
| 391 | - failure then selector(options, label + star(mand), id, wan, size, items), | |
| 392 | - success(default) then selector(options, label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), | |
| 391 | + failure then selector([class("in") . options], label + star(mand), id, wan, size, items), | |
| 392 | + success(default) then selector([class("in") . options], label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), | |
| 393 | 393 | }, |
| 394 | 394 | |
| 395 | 395 | selector_c(options, label, id, wan, size, items, selected, mand) then |
| 396 | 396 | if selected is |
| 397 | 397 | { |
| 398 | - failure then selector_c(options, label + star(mand), id, wan, size, items), | |
| 399 | - success(default) then selector_c(options, label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), | |
| 398 | + failure then selector_c([class("in") . options], label + star(mand), id, wan, size, items), | |
| 399 | + success(default) then selector_c([class("in") . options], label + star(mand), id, wan, size, items, init(get_String(lwa, wan.name, default.value))), | |
| 400 | 400 | }, |
| 401 | 401 | |
| 402 | 402 | checkbox(options, label, id, wan, val, checked, mand) then |
| 403 | - check_box(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 403 | + check_box([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 404 | 404 | |
| 405 | 405 | checkboxr(options, label, id, wan, val, checked, mand) then |
| 406 | - check_box_r(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 406 | + check_box_r([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 407 | 407 | |
| 408 | 408 | checkbox_hide_show(options, label, wan, val, checked, fields) then |
| 409 | 409 | with div_id = generate_random_string(15), |
| ... | ... | @@ -413,10 +413,10 @@ public define HTML_In_Form |
| 413 | 413 | ]), |
| 414 | 414 | |
| 415 | 415 | radio_button(options, label, id, wan, val, checked, mand) then |
| 416 | - radio_button(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 416 | + radio_button([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 417 | 417 | |
| 418 | 418 | radio_buttonr(options, label, id, wan, val, checked, mand) then |
| 419 | - radio_button_r(options, label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 419 | + radio_button_r([class("in") . options], label + star(mand), id, wan, val, get_Bool(lwa, wan.name, checked)), | |
| 420 | 420 | |
| 421 | 421 | radio_button_list (options, label, id, wan, items, selected, mand, wide) then |
| 422 | 422 | with new_selected = |
| ... | ... | @@ -446,7 +446,7 @@ public define HTML_In_Form |
| 446 | 446 | , |
| 447 | 447 | |
| 448 | 448 | upload(options, label, id, name, w, mand) then |
| 449 | - file_upload(options, label + star(mand), id, name, pixels(w)), | |
| 449 | + file_upload([class("in") . options], label + star(mand), id, name, pixels(w)), | |
| 450 | 450 | |
| 451 | 451 | raw_in_form(html) then html, |
| 452 | 452 | // div([class("in")], html), | ... | ... |