Skip to content
Browse files

[fix] FormBuilder: few fixes.

  • Loading branch information...
1 parent a4f8a70 commit 66928cfa97eceb341db5d5a99af86dd5f0d17423 @aszlig aszlig committed with akoprow Sep 3, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 stdlib/widgets/formbuilder/formbuilder.opa
View
5 stdlib/widgets/formbuilder/formbuilder.opa
@@ -78,7 +78,6 @@ type WFormBuilder.field_data =
; optionality : {optional} / {required : xhtml}
}
-@abstract
type WFormBuilder.field('ty) =
{ data : WFormBuilder.field_data
; initial_value : option('ty)
@@ -228,7 +227,7 @@ WFormBuilder =
/** {1 Fields interfaces} */
string_accessor(data) =
- v = get_val_string(data.id)
+ v = get_val_string("{data.id}_input")
if String.is_empty(v) then
{no_value}
else
@@ -272,7 +271,7 @@ WFormBuilder =
</>
render_passwd_input(~{data ...}) =
- <input type="passwd" id={data.ids.input_id} />
+ <input type="password" id={data.ids.input_id} />
render_combobox(~{data initial_value}, options, to_id, to_label) =
mk_option(opt) =

0 comments on commit 66928cf

Please sign in to comment.
Something went wrong with that request. Please try again.