Changed error messages
This commit is contained in:
parent
c0cfb3c202
commit
7378e56dc6
@ -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>
|
Loading…
Reference in New Issue
Block a user