- Add client_detail route in pages.py with 404 on unknown client_id
- Build grouped dict {client.name: [printers]} for printer_list partial reuse
- Pass clients + driver_data for edit modal compatibility
- Create client_detail.html extending base.html, includes printer_list partial
12 lines
225 B
HTML
12 lines
225 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h1>{{ client.name }}</h1>
|
|
<p><a href="/clients">← All Clients</a></p>
|
|
|
|
<section>
|
|
<h2>Printers</h2>
|
|
{% include "partials/printer_list.html" %}
|
|
</section>
|
|
{% endblock %}
|