From 8931888d9efb7492499e86c8920bd7a2a95a3901 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Thu, 9 Oct 2025 10:45:33 -0500 Subject: [PATCH] Minor name update. --- inventory/routes/entry.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inventory/routes/entry.py b/inventory/routes/entry.py index 0999e52..b529297 100644 --- a/inventory/routes/entry.py +++ b/inventory/routes/entry.py @@ -27,7 +27,7 @@ def _fields_for_model(model: str): fields_spec = [ {"name": "label", "type": "display", "label": "", "row": "label", "attrs": {"class": "display-6 mb-3"}, "wrap": {"class": "col"}}, - {"name": "submit", "label": "", "row": "label", "type": "template", "template": "entry_buttons.html", + {"name": "buttons", "label": "", "row": "label", "type": "template", "template": "entry_buttons.html", "wrap": {"class": "col-auto text-end me-2"}, "attrs": {"data-model": model}}, {"name": "name", "row": "names", "label": "Name", "wrap": {"class": "col-3"}, "attrs": {"class": "form-control"}, "label_attrs": {"class": "form-label"}}, @@ -88,8 +88,8 @@ def _fields_for_model(model: str): ] fields_spec = [ {"name": "label", "row": "label", "label": "", "type": "display", - "attrs": {"class": "display-6 mb-3"}, "wrap": {"class": "col"}}, - {"name": "submit", "label": "", "row": "label", "type": "template", "template": "entry_buttons.html", + "attrs": {"class": "display-6 mb-3"}, "wrap": {"class": "col"}, "label_spec": "{label} ({title})"}, + {"name": "buttons", "label": "", "row": "label", "type": "template", "template": "entry_buttons.html", "wrap": {"class": "col-auto text-end me-2"}, "attrs": {"data-model": model}}, {"name": "last_name", "label": "Last Name", "label_attrs": {"class": "form-label"}, "attrs": {"placeholder": "Doe", "class": "form-control"}, "row": "name", "wrap": {"class": "col-3"}}, @@ -134,7 +134,7 @@ def _fields_for_model(model: str): fields_spec = [ {"name": "id", "label": "", "type": "display", "label_spec": "Work Item #{id}", "attrs": {"class": "display-6 mb-3"}, "row": "label", "wrap": {"class": "col"}}, - {"name": "submit", "label": "", "row": "label", "type": "template", "template": "entry_buttons.html", + {"name": "buttons", "label": "", "row": "label", "type": "template", "template": "entry_buttons.html", "wrap": {"class": "col-auto text-end me-2"}, "attrs": {"data-model": model}}, {"name": "contact", "row": "ownership", "wrap": {"class": "col"}, "label": "Contact", "label_spec": "{label}", "attrs": {"class": "form-control"}, "label_attrs": {"class": "form-label"}},