add base form for Device
This commit is contained in:
parent
c300e44eab
commit
6be11e3ee9
|
@ -200,6 +200,19 @@ class UploadSnapshotForm(FlaskForm):
|
||||||
return snapshot
|
return snapshot
|
||||||
|
|
||||||
|
|
||||||
|
class DeviceForm(FlaskForm):
|
||||||
|
type = StringField(u'Name', [validators.length(min=1)])
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
def save(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def remove(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class NewActionForm(FlaskForm):
|
class NewActionForm(FlaskForm):
|
||||||
name = StringField(u'Name')
|
name = StringField(u'Name')
|
||||||
date = StringField(u'Date')
|
date = StringField(u'Date')
|
||||||
|
|
Reference in a new issue