From d21bcd9d82611eab826baa615fb50f902a7cfa4f Mon Sep 17 00:00:00 2001 From: rasmus Date: Wed, 22 Jan 2025 21:01:59 +0200 Subject: [PATCH] remove description Was confused with the comment field, only used for 14 items, which I manually merged without problems. --- inventory-app/inventory.py | 2 -- inventory-app/templates/inventory_edit.html | 4 ---- inventory-app/templates/inventory_view.html | 4 ---- inventory-app/templates/inventory_view_public.html | 5 ----- 4 files changed, 15 deletions(-) diff --git a/inventory-app/inventory.py b/inventory-app/inventory.py index 6391fe5..23df5d0 100644 --- a/inventory-app/inventory.py +++ b/inventory-app/inventory.py @@ -149,8 +149,6 @@ class InventoryItemForm(CustomForm): inventory = FormField(InventoryForm) hardware = FormField(HardwareForm) 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) diff --git a/inventory-app/templates/inventory_edit.html b/inventory-app/templates/inventory_edit.html index 43c13f4..58f94b1 100644 --- a/inventory-app/templates/inventory_edit.html +++ b/inventory-app/templates/inventory_edit.html @@ -116,10 +116,6 @@
-
Description
-

- {{ form.description(rows='15',cols='100') }} -