add base form for Device

This commit is contained in:
Cayo Puigdefabregas 2022-01-18 14:09:01 +01:00
parent c300e44eab
commit 6be11e3ee9
1 changed files with 13 additions and 0 deletions

View File

@ -200,6 +200,19 @@ class UploadSnapshotForm(FlaskForm):
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):
name = StringField(u'Name')
date = StringField(u'Date')