@@ -32,16 +32,19 @@
| {{ p.port_name }} |
{{ p.driver.original_filename if p.driver_id else '—' }} |
{{ p.duplex_mode }} |
- {{ 'Yes' if p.color_mode else 'No' }} |
+ {{ 'Yes' if p.color_mode else 'No' }} |
{{ p.paper_size }} |
- {{ 'Yes' if p.collate else 'No' }} |
+ {{ 'Yes' if p.collate else 'No' }} |
{% include "partials/printer_edit_modal.html" %}
|
diff --git a/imptune/templates/printer_detail.html b/imptune/templates/printer_detail.html
index 81633a3..444676d 100644
--- a/imptune/templates/printer_detail.html
+++ b/imptune/templates/printer_detail.html
@@ -2,77 +2,81 @@
{% block content %}
{{ printer.name }}
- Configuration
+ Configuration
- - IP Address
- {{ printer.ip_address }}
- - Port Name
- {{ printer.port_name }}
- - Duplex Mode
- {{ printer.duplex_mode }}
- - Color Mode
- {{ "Color" if printer.color_mode else "Grayscale" }}
- - Paper Size
- {{ printer.paper_size }}
- - Collate
- {{ "Yes" if printer.collate else "No" }}
- - Client
- {{ printer.client.name if printer.client_id else "Unassigned" }}
+ - IP Address
- {{ printer.ip_address }}
+ - Port Name
- {{ printer.port_name }}
+ - Duplex Mode
- {{ printer.duplex_mode }}
+ - Color Mode
+ {% if printer.color_mode %}- Color
{% else %}- Grayscale
{% endif %}
+ - Paper Size
- {{ printer.paper_size }}
+ - Collate
+ {% if printer.collate %}- Yes
{% else %}- No
{% endif %}
+ - Client
+ {% if printer.client_id %}- {{ printer.client.name }}
{% else %}- Unassigned
{% endif %}
- Driver
+ Driver
{% if printer.driver_id %}
- - Package
- {{ printer.driver.original_filename }}
- - Driver Name(s)
- {{ driver_names | join(", ") }}
- - Architecture
- {{ printer.driver.architecture or "Unknown" }}
+ - Package
- {{ printer.driver.original_filename }}
+ - Driver Name(s)
- {{ driver_names | join(", ") }}
+ - Architecture
+ - {% if printer.driver.architecture %}{{ printer.driver.architecture }}{% else %}Unknown{% endif %}
{% else %}
- No driver assigned
+ No driver assigned
{% endif %}
{% if has_driver %}
- Intune Commands
+ Intune Commands
-
+
{{ install_cmd }}
+ " x-text="copiedInstall ? $store.i18n.t('copied') : $store.i18n.t('copy')" class="secondary outline">Copy
-
+
{{ uninstall_cmd }}
+ " x-text="copiedUninstall ? $store.i18n.t('copied') : $store.i18n.t('copy')" class="secondary outline">Copy
- Scripts
-
+ Scripts
+
Download Install Script
-
+
Download Uninstall Script
-
+
Download Detect Script
- Export
- Download NinjaRMM ZIP
- Download .intunewin
+ Export
+ Download NinjaRMM ZIP
+ Download .intunewin
{% endif %}
- Icon
+ Icon
{% if has_icon %}
- Icon uploaded
+ Icon uploaded
{% endif %}
- Back to Printers
+ Back to Printers
{% endblock %}
diff --git a/imptune/templates/printers.html b/imptune/templates/printers.html
index 08215a7..854a213 100644
--- a/imptune/templates/printers.html
+++ b/imptune/templates/printers.html
@@ -1,12 +1,12 @@
{% extends "base.html" %}
{% block content %}
-Printers
+Printers
-Add Printer
+Add Printer
- Printer Library
+ Printer Library
{% include "partials/printer_list.html" %}
{% endblock %}
diff --git a/imptune/templates/printers_new.html b/imptune/templates/printers_new.html
index 053a687..8884ba9 100644
--- a/imptune/templates/printers_new.html
+++ b/imptune/templates/printers_new.html
@@ -1,20 +1,20 @@
{% extends "base.html" %}
{% block content %}
-Add Printer
+Add Printer
-← Back to Printer Library
+← Back to Printer Library
diff --git a/tests/test_printer_crud.py b/tests/test_printer_crud.py
index ba70a8a..507c21a 100644
--- a/tests/test_printer_crud.py
+++ b/tests/test_printer_crud.py
@@ -306,9 +306,9 @@ def test_printers_library_no_form(client: TestClient) -> None:
resp = client.get("/printers")
assert resp.status_code == 200
html = resp.text
- # The inline form must be gone
+ # The inline form must be gone — check for the actual form element, not UI label strings
assert 'hx-post="/printers"' not in html
- assert "Save Printer" not in html
+ assert 'action="/printers" method="post"' not in html
def test_patch_printer(client: TestClient) -> None: