Changed error messages

This commit is contained in:
Candifloss 2025-02-06 15:36:46 +05:30
parent c0cfb3c202
commit 7378e56dc6

View File

@ -28,21 +28,19 @@
<label for="staffnum">Staff No:</label>
<input id="staffnum" type = "integer" name = "staffnum" value="{{item.staffnum}}" required/>
</p>
<p>
<input type = "submit" value = "Update" />
</p>
<p><input type = "submit" value = "Update" /></p>
</form>
<p align="center">
{% if exc == 'integrity' %}
Item with such SKU already exists
{% endif %}
{% if exc == 'status' %}
Data input error. Invalid value for <b>status</b>.
{% 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 -%}
</p>
</body>
</html>