Implementing useful UI changes.

This commit is contained in:
Yaro Kasear 2025-09-11 08:12:41 -05:00
parent 7ddfe084ba
commit de5e5b4a43
6 changed files with 181 additions and 38 deletions

View file

@ -21,18 +21,25 @@ def init_index_routes(app):
"fields": [
"start_time",
"contact.last_name",
"contact.first_name",
"work_item.name"
],
"limit": 10
"sort": "start_time"
})
headers = [
"Start Time",
"Contact Last Name",
"Work Item"
]
logs = render_table(work_logs, headers)
return render_template("index.html", logs=logs, headers=headers)
columns = [
{"field": "start_time", "label": "Start", "format": "date"},
{"field": "contact.last_name", "label": "Contact",
"link": {"endpoint": "contact.entry", "params": {"id": "{contact.id}"}}},
{"field": "work_item.name", "label": "Work Item",
"link": {"endpoint": "work_item.entry", "params": {"id": "{work_item.id}"}}},
{"field": "complete", "label": "Status",
"format": "yesno", "classes": {"true":"badge bg-success","false":"badge bg-warning","none":"text-muted"}},
]
logs = render_table(work_logs, columns=columns)
return render_template("index.html", logs=logs, columns=columns)
@bp_index.get("/LICENSE")
def license():