This commit is contained in:
@@ -145,6 +145,7 @@ class InventoryItemForm(CustomForm):
|
||||
shortener = FormField(ShortenerForm)
|
||||
_description_placeholder = "Insert Markdown here."
|
||||
description = TextAreaField('Description', [validators.optional(), validators.length(max=3000)], render_kw={"placeholder": _description_placeholder})
|
||||
location = StringField('Location')
|
||||
def setup_defaults_add(self):
|
||||
setup_default_owner(self.inventory.form.owner.form.username)
|
||||
self.inventory.form.public.render_kw = {"checked": "checked"}
|
||||
@@ -426,6 +427,7 @@ def view_inventory(slug=None):
|
||||
fields = [
|
||||
("type", "Exclude type", list),
|
||||
("tags", "Tags", list),
|
||||
("location", "Location", list),
|
||||
]
|
||||
q = {"type": {"$ne": "token"}}
|
||||
template = "inventory.html"
|
||||
|
Reference in New Issue
Block a user