Fix inventory form.
This commit is contained in:
parent
4afddf3ee6
commit
8b665ca2b5
2 changed files with 2 additions and 4 deletions
|
|
@ -40,8 +40,6 @@ def _fields_for_model(model: str):
|
|||
{"name": "location", "row": "status", "label": "Location", "wrap": {"class": "col"},
|
||||
"attrs": {"class": "form-control"}, "label_attrs": {"class": "form-label"},
|
||||
"label_spec": "{name} - {room_function.description}"},
|
||||
# {"name": "condition", "row": "status", "label": "Condition", "wrap": {"class": "col"},
|
||||
# "attrs": {"class": "form-control"}, "label_attrs": {"class": "form-label"}},
|
||||
{"name": "condition", "label": "Condition", "row": "status", "wrap": {"class": "col"},
|
||||
"type": "select", "options": [
|
||||
{"label": "Deployed", "value": "Deployed"},
|
||||
|
|
@ -66,8 +64,8 @@ def _fields_for_model(model: str):
|
|||
{"name": "names", "order": 20, "attrs": {"class": "row"}, "parent": "everything"},
|
||||
{"name": "device", "order": 30, "attrs": {"class": "row mt-2"}, "parent": "everything"},
|
||||
{"name": "status", "order": 40, "attrs": {"class": "row mt-2"}, "parent": "everything"},
|
||||
{"name": "notes", "order": 45, "attrs": {"class": "row mt-2"}, "parent": "everything"},
|
||||
{"name": "image", "order": 50, "attrs": {"class": "col-4"}, "parent": "kitchen_sink"},
|
||||
{"name": "notes", "order": 55, "attrs": {"class": "row mt-2"}},
|
||||
]
|
||||
|
||||
elif model.lower() == 'user':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue