From 6be11e3ee90a244379035fd493ec7bb935109b7a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 18 Jan 2022 14:09:01 +0100 Subject: [PATCH] add base form for Device --- ereuse_devicehub/inventory/forms.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index bf52c0fb..344081a5 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -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')