From 7b948b68c30e131d9e3cc9c15b6abdfb988e08c5 Mon Sep 17 00:00:00 2001 From: Kawa Date: Wed, 15 Apr 2026 11:10:44 +0200 Subject: [PATCH] =?UTF-8?q?feat(11-02):=20UIE-01=20edit=20modal=20?= =?UTF-8?q?=E2=80=94=20Edit=20button=20per=20row,=20Pico=20dialog,=20E2E?= =?UTF-8?q?=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create printer_edit_modal.html: native dialog with HTMX PATCH form, Alpine.js portEdited=true - Update printer_list.html Actions td: include edit modal partial before Delete button - Create tests/e2e/test_printer_edit.py: modal open/pre-fill and submit/list-update E2E tests - Fix E2E row targeting to use locator(tr, has=a:has-text) for session-scoped server safety --- .../partials/printer_edit_modal.html | 101 ++++++++++++++++++ imptune/templates/partials/printer_list.html | 1 + tests/e2e/test_printer_edit.py | 62 +++++++++++ 3 files changed, 164 insertions(+) create mode 100644 imptune/templates/partials/printer_edit_modal.html create mode 100644 tests/e2e/test_printer_edit.py diff --git a/imptune/templates/partials/printer_edit_modal.html b/imptune/templates/partials/printer_edit_modal.html new file mode 100644 index 0000000..5253e70 --- /dev/null +++ b/imptune/templates/partials/printer_edit_modal.html @@ -0,0 +1,101 @@ + + + + + +
+
+ +

Edit Printer

+
+
+
+ + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+
+
diff --git a/imptune/templates/partials/printer_list.html b/imptune/templates/partials/printer_list.html index 8970497..c16a2ba 100644 --- a/imptune/templates/partials/printer_list.html +++ b/imptune/templates/partials/printer_list.html @@ -31,6 +31,7 @@ {{ p.paper_size }} {{ 'Yes' if p.collate else 'No' }} + {% include "partials/printer_edit_modal.html" %}