mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 02:59:29 +00:00
Use enum for manufacturing status
This commit is contained in:
parent
6336b38cfc
commit
9e3cb4d694
7 changed files with 88 additions and 30 deletions
|
|
@ -37,6 +37,10 @@
|
|||
{% endmacro %}
|
||||
|
||||
{% macro m_status_to_badge(status, class="badge") %}
|
||||
{% if status is enum %}
|
||||
{% set status = status.value %}
|
||||
{% endif %}
|
||||
|
||||
{% if status is not empty %}
|
||||
{% set color = " bg-secondary" %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue