Reformat inventory view

This should all deserve flex
..or move to off the shelf inventory sofwtare
This commit is contained in:
2025-05-26 01:49:09 +03:00
parent 35dc28a8f5
commit 971920f94c
5 changed files with 125 additions and 243 deletions

View File

@@ -129,7 +129,7 @@ class InventoryForm(Form):
owner = FormField(MemberForm, label="Owner")
user = FormField(MemberForm, label="Current User")
usable = BooleanField("Usable")
visibility = SelectField("Visibility", choices=['public', 'unlisted', 'secret'], default='unlisted')
visibility = SelectField("Visibility", choices=['public', 'unlisted', 'secret', 'archived'], default='unlisted')
class HardwareForm(Form):
serial = StringField("Serial Number")
@@ -143,7 +143,6 @@ class ShortenerForm(Form):
class InventoryItemForm(CustomForm):
type = SelectField("Type", choices=fetch_type_select())
name = StringField('Name')
external_link = StringField('External link')
comment = StringField('Comment')
inventory = FormField(InventoryForm)
hardware = FormField(HardwareForm)