Skip to content

Commit

Permalink
max amount for regpay on DPBN
Browse files Browse the repository at this point in the history
  • Loading branch information
ZatolokinPavel committed Apr 8, 2016
1 parent 9347d34 commit 1a0be0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/meta.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
-record(sel, { id, name, title, postback }).
-record(field, { id, raw, sec=1, name, pos, title, layout, visible=true, disabled=false, format="~w", curr="",
postfun=[], desc, wide=normal, type=binary, etc, labelClass=label, fieldClass=field, boxClass=box,
access, tooltips=[], options=[], min=0, max=1000000, length=10, postback, onchange }).
access, tooltips=[], options=[], min=0, max=1000000, length=10, postback, onchange, validation }).

-endif.
5 changes: 3 additions & 2 deletions src/forms.erl
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ fields(Document, Object) ->
value=wf:to_list(element(X#field.pos,Object)) },
#panel{ class=pt10,body= [ deposits:translate({?MODULE, warning}), wf:to_binary(X#field.min), " ", X#field.curr ] } ];
pay -> #panel{body=[#input{ id=wf:atom([X#field.name,Name]), pattern="[0-9]*",
validation=wf:f("Validation.pay(e, ~w, '~s')",[X#field.min,deposits:translate({?MODULE, error})]),
onkeypress=wf:f("return fieldsFilter(event, ~w, '~w');",[X#field.length,X#field.type]), onkeyup="beautiful_numbers(event);",
validation=X#field.validation,
onkeypress=wf:f("return fieldsFilter(event, ~w, '~w');",[X#field.length,X#field.type]),
onkeyup="beautiful_numbers(event);",
value=wf:to_list(element(X#field.pos,Object)) }, <<" ">>, #span{body=X#field.curr}]};
combo -> case length(Options) of
1 -> tl(lists:flatten(lists:zipwith(fun(A,B) -> [A,B] end,
Expand Down

0 comments on commit 1a0be0d

Please sign in to comment.