Commit 0f9ed50a06651693d91196ca575f2af6c44573b1

Authored by totoro
1 parent 6edd71c5

add class "in" on every field, this is needed to be able to have "focus" rule, set into css.

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,22 +388,22 @@ public define HTML_In_Form
388 selector(options, label, id, wan, size, items, selected, mand) then 388 selector(options, label, id, wan, size, items, selected, mand) then
389 if selected is 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 selector_c(options, label, id, wan, size, items, selected, mand) then 395 selector_c(options, label, id, wan, size, items, selected, mand) then
396 if selected is 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 checkbox(options, label, id, wan, val, checked, mand) then 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 checkboxr(options, label, id, wan, val, checked, mand) then 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 checkbox_hide_show(options, label, wan, val, checked, fields) then 408 checkbox_hide_show(options, label, wan, val, checked, fields) then
409 with div_id = generate_random_string(15), 409 with div_id = generate_random_string(15),
@@ -413,10 +413,10 @@ public define HTML_In_Form @@ -413,10 +413,10 @@ public define HTML_In_Form
413 ]), 413 ]),
414 414
415 radio_button(options, label, id, wan, val, checked, mand) then 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 radio_buttonr(options, label, id, wan, val, checked, mand) then 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 radio_button_list (options, label, id, wan, items, selected, mand, wide) then 421 radio_button_list (options, label, id, wan, items, selected, mand, wide) then
422 with new_selected = 422 with new_selected =
@@ -446,7 +446,7 @@ public define HTML_In_Form @@ -446,7 +446,7 @@ public define HTML_In_Form
446 , 446 ,
447 447
448 upload(options, label, id, name, w, mand) then 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 raw_in_form(html) then html, 451 raw_in_form(html) then html,
452 // div([class("in")], html), 452 // div([class("in")], html),