Add NumberInputWidget
for <input type="number" />
This commit is contained in:
parent
a8a4e362a0
commit
046a70c5f6
2 changed files with 29 additions and 0 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue