diff --git a/CHANGELOG.md b/CHANGELOG.md index c027e85c..4c94c537 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,34 @@ accepts both, but the store flags the old spelling as deprecated ## Unreleased +### Web UI: Schedule and General are ES-module pages (stage 3) + +- The Schedule and General tabs follow stage 2 (#727): their inline + `
@@ -216,7 +195,7 @@ the password inputs keep their own labels. #} -
+ {% if web_login.enabled %}
@@ -251,7 +230,7 @@ {% if web_login.enabled %}

Turn login off

- +
created {{ (token.created_at or '')[:10] }}
@@ -289,7 +267,7 @@

No tokens yet.

{% endfor %}
- +
@@ -312,131 +290,5 @@
- {% endif %} + diff --git a/web_interface/templates/v3/partials/schedule.html b/web_interface/templates/v3/partials/schedule.html index 8b376983..5ed53ea6 100644 --- a/web_interface/templates/v3/partials/schedule.html +++ b/web_interface/templates/v3/partials/schedule.html @@ -1,4 +1,13 @@ {% import 'v3/partials/_macros.html' as ui %} +{# No inline script: static/v3/js/pages/schedule.js draws both schedule + pickers from the data-*-config attributes, reports each form's save and + keeps the dim brightness label current. The page registry + (static/v3/js/core/registry.js) starts it when this root appears and stops + it when the partial is swapped away. The forms carry data-reports-result so + app.js leaves the save notification to the page. #} +

Schedule Settings

@@ -12,7 +21,7 @@ hx-ext="json-enc" hx-headers='{"Content-Type": "application/json"}' hx-swap="none" - hx-on:htmx:after-request="handleScheduleResponse(event)" + data-reports-result class="space-y-6"> @@ -41,7 +50,7 @@ hx-ext="json-enc" hx-headers='{"Content-Type": "application/json"}' hx-swap="none" - hx-on:htmx:after-request="handleDimScheduleResponse(event)" + data-reports-result class="space-y-6"> @@ -56,8 +65,7 @@ min="0" max="100" value="{{ dim_schedule_config.dim_brightness | default(30) }}" - class="flex-1 h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-blue-600" - oninput="document.getElementById('dim_brightness_display').textContent = this.value + '%'"> + class="flex-1 h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-blue-600"> {{ dim_schedule_config.dim_brightness | default(30) }}% @@ -77,198 +85,4 @@
- - +