From 7378e56dc6ac7d30e8e672e54065b78978fd5cc0 Mon Sep 17 00:00:00 2001 From: candifloss Date: Thu, 6 Feb 2025 15:36:46 +0530 Subject: [PATCH] Changed error messages --- templates/update.html | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/templates/update.html b/templates/update.html index c4a519b..a60f487 100644 --- a/templates/update.html +++ b/templates/update.html @@ -28,21 +28,19 @@

-

- -

+

- {% if exc == 'integrity' %} - Item with such SKU already exists - {% endif %} - {% if exc == 'status' %} - Data input error. Invalid value for status. - {% endif %} - {% if exc == 'staffnum' %} + {%- if exc == 'integrity' -%} + Item with the same assettag already exists + {%- endif -%} + {%- if exc == 'status' -%} + Data input error. Invalid status value + {%- endif -%} + {%- if exc == 'staffnum' -%} Data input error. Staff number must be an integer - {% endif %} + {%- endif -%}

\ No newline at end of file