diff --git a/tailbone/forms/widgets.py b/tailbone/forms/widgets.py index d0b13f22..9374021d 100644 --- a/tailbone/forms/widgets.py +++ b/tailbone/forms/widgets.py @@ -50,6 +50,11 @@ class ReadonlyWidget(dfwidget.HiddenWidget): return HTML.tag('span', text) + tags.hidden(field.name, value=cstruct, id=field.oid) +class NumberInputWidget(dfwidget.TextInputWidget): + template = 'numberinput' + autocomplete = 'off' + + class PlainSelectWidget(dfwidget.SelectWidget): template = 'select_plain' diff --git a/tailbone/templates/deform/numberinput.pt b/tailbone/templates/deform/numberinput.pt new file mode 100644 index 00000000..2204f40c --- /dev/null +++ b/tailbone/templates/deform/numberinput.pt @@ -0,0 +1,24 @@ + + + +