From 4fbed3c5ef101929160159bccbf71358c6163999 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 4 Mar 2022 18:50:47 +0100 Subject: [PATCH] drop class col in forms when is not neccesary --- ereuse_devicehub/templates/inventory/device_create.html | 4 ++-- ereuse_devicehub/templates/inventory/lot.html | 4 ++-- ereuse_devicehub/templates/inventory/tag_create.html | 4 ++-- ereuse_devicehub/templates/inventory/tag_create_unnamed.html | 4 ++-- ereuse_devicehub/templates/inventory/tag_unlink_device.html | 4 ++-- ereuse_devicehub/templates/inventory/trade_document.html | 4 ++-- ereuse_devicehub/templates/inventory/upload_snapshot.html | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_create.html b/ereuse_devicehub/templates/inventory/device_create.html index 7ba7c794..8bcb5fae 100644 --- a/ereuse_devicehub/templates/inventory/device_create.html +++ b/ereuse_devicehub/templates/inventory/device_create.html @@ -31,7 +31,7 @@
{{ form.csrf_token }} -
+
@@ -42,7 +42,7 @@
-
+
{% if form.id %} Cancel {% else %} diff --git a/ereuse_devicehub/templates/inventory/tag_create.html b/ereuse_devicehub/templates/inventory/tag_create.html index 9740ddee..23422ebd 100644 --- a/ereuse_devicehub/templates/inventory/tag_create.html +++ b/ereuse_devicehub/templates/inventory/tag_create.html @@ -33,7 +33,7 @@ {{ form.csrf_token }} -
+
@@ -48,7 +48,7 @@ {% endif %}
-
+
Cancel
diff --git a/ereuse_devicehub/templates/inventory/tag_create_unnamed.html b/ereuse_devicehub/templates/inventory/tag_create_unnamed.html index 96ec073d..a72099d4 100644 --- a/ereuse_devicehub/templates/inventory/tag_create_unnamed.html +++ b/ereuse_devicehub/templates/inventory/tag_create_unnamed.html @@ -33,7 +33,7 @@ {{ form.csrf_token }} -
+
{{ form.amount(class_="form-control") }} @@ -48,7 +48,7 @@ {% endif %}
-
+
Cancel
diff --git a/ereuse_devicehub/templates/inventory/tag_unlink_device.html b/ereuse_devicehub/templates/inventory/tag_unlink_device.html index 9f8043de..fc6d49d6 100644 --- a/ereuse_devicehub/templates/inventory/tag_unlink_device.html +++ b/ereuse_devicehub/templates/inventory/tag_unlink_device.html @@ -32,7 +32,7 @@ {{ form.csrf_token }} -
+
{{ form.tag(class_="form-control") }} @@ -48,7 +48,7 @@
-
+
Cancel
diff --git a/ereuse_devicehub/templates/inventory/trade_document.html b/ereuse_devicehub/templates/inventory/trade_document.html index 4d19b095..0fa2fcc6 100644 --- a/ereuse_devicehub/templates/inventory/trade_document.html +++ b/ereuse_devicehub/templates/inventory/trade_document.html @@ -35,7 +35,7 @@ {{ form.csrf_token }} {% for field in form %} {% if field != form.csrf_token %} -
+
{{ field.label(class_="form-label") }} {{ field }} {{ field.description }} @@ -50,7 +50,7 @@ {% endif %} {% endfor %} -
+
Cancel
diff --git a/ereuse_devicehub/templates/inventory/upload_snapshot.html b/ereuse_devicehub/templates/inventory/upload_snapshot.html index 966cb000..5eb68eb3 100644 --- a/ereuse_devicehub/templates/inventory/upload_snapshot.html +++ b/ereuse_devicehub/templates/inventory/upload_snapshot.html @@ -33,7 +33,7 @@ {{ form.csrf_token }} -
+
{{ form.snapshot }} @@ -54,7 +54,7 @@ {% endif %}
-
+
Cancel