From 6079e34627cbaf86a83e1d45c821b4ec137ce3d9 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 12 Sep 2022 11:32:15 +0200 Subject: [PATCH 1/2] fix name --- ereuse_devicehub/inventory/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/inventory/forms.py b/ereuse_devicehub/inventory/forms.py index a1b24047..98e71f4c 100644 --- a/ereuse_devicehub/inventory/forms.py +++ b/ereuse_devicehub/inventory/forms.py @@ -326,7 +326,7 @@ class NewDeviceForm(FlaskForm): pallet = StringField('Identity of pallet', [validators.Optional()]) components = TextAreaField('Components', [validators.Optional()]) info = TextAreaField('Info', [validators.Optional()]) - serial_number = StringField('Seria Number', [validators.Optional()]) + serial_number = StringField('Serial Number', [validators.Optional()]) model = StringField('Model', [validators.Optional()]) manufacturer = StringField('Manufacturer', [validators.Optional()]) appearance = StringField('Appearance', [validators.Optional()]) From 25287752969417bde15495f25fcf58f39dca757f Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 12 Sep 2022 11:37:34 +0200 Subject: [PATCH 2/2] change parth for part in device details --- ereuse_devicehub/templates/inventory/device_detail.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index 3d9c18d3..40335512 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -85,7 +85,7 @@
-
Details Real parth
+
Details Real part
(Edit Device) @@ -119,7 +119,7 @@
{% if placeholder.binding %} -
Details Abstract parth
+
Details Abstract part
Type
{{ placeholder.binding.type }}
@@ -227,13 +227,13 @@
-
Components Real parth
+
Components Real part
{{ placeholder.components or '' }}
{% if placeholder.binding %} -
Components Abstract parth
+
Components Abstract part
{% for component in placeholder.binding.components|sort(attribute='type') %}