Skip to content

Home Information - Your home, your data, organized.

Python

UI Uniformity and Tweaks (#229)

Tony Cb511c3ac1162
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index f5730307..2feb6da5 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -18,10 +18,6 @@ assignees: ''
### Developer Notes
-**Implementation suggestions and technical details:**
-
-*(This section is optional but helpful for complex features. Include implementation guidance, key files to modify, architectural considerations, and success criteria that would assist developers working on this feature.)*
-
---
### Checklist
diff --git a/.github/ISSUE_TEMPLATE/operations.md b/.github/ISSUE_TEMPLATE/operations.md
index a09c331f..cb05f6e0 100644
--- a/.github/ISSUE_TEMPLATE/operations.md
+++ b/.github/ISSUE_TEMPLATE/operations.md
@@ -15,10 +15,6 @@ assignees: ''
2. Step 2
3. Step 3
-### Related System/Component
-
-### Logs / Screenshots (if applicable)
-
### Suggested Fix (if applicable)
---
diff --git a/.github/ISSUE_TEMPLATE/refactor.md b/.github/ISSUE_TEMPLATE/refactor.md
index de3c6a5e..68f5e59a 100644
--- a/.github/ISSUE_TEMPLATE/refactor.md
+++ b/.github/ISSUE_TEMPLATE/refactor.md
@@ -11,10 +11,6 @@ assignees: ''
### What part of the code needs refactoring?
### Why should this be refactored?
-- Code is difficult to understand or maintain.
-- Code violates best practices.
-- There is significant duplication or inefficiency.
--->
### Expected Outcome
diff --git a/.github/ISSUE_TEMPLATE/tests.md b/.github/ISSUE_TEMPLATE/tests.md
index b7bf49ce..c908ca80 100644
--- a/.github/ISSUE_TEMPLATE/tests.md
+++ b/.github/ISSUE_TEMPLATE/tests.md
@@ -19,8 +19,6 @@ assignees: ''
2. Step 2
3. Step 3
-### Related Test Files
-
### Additional Context
---
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 72269999..67677c0b 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,7 +1,5 @@
## Pull Request: [Short Title]
-
-
### Issue Link
Closes #ISSUE_NUMBER
@@ -13,9 +11,10 @@ Closes #ISSUE_NUMBER
- [ ] **Feature** (New functionality)
- [ ] **Bugfix** (Fixes an issue)
- [ ] **Docs** (Documentation updates)
-- [ ] **Ops** (Infrastructure, CI/CD, build tools)
+- [ ] **Ops** (Infrastructure, CI/CD, build tools)
+
- [ ] **Tests** (Adding/improving tests)
-- [ ] **Refactor** (Code improvements without changing functionality)
+- [ ] **Refactor** (Code/Style improvements without changing functionality)
- [ ] **Tweak** (Minor UI or code improvements)
---
@@ -44,21 +43,6 @@ Closes #ISSUE_NUMBER
- [ ] Docs updated if applicable.
- [ ] No breaking changes introduced.
----
-
-## Related PRs
-
-
----
-
-## Screenshots (if applicable)
-
-
----
-
-## Additional Notes
-
-
---
### **Ready for Review?**
diff --git a/src/hi/apps/alert/templates/alert/modals/alert_details.html b/src/hi/apps/alert/templates/alert/modals/alert_details.html
index c0222465..aaa64b34 100644
--- a/src/hi/apps/alert/templates/alert/modals/alert_details.html
+++ b/src/hi/apps/alert/templates/alert/modals/alert_details.html
@@ -4,6 +4,8 @@
{% load video_tags %}
{% load icons %}
+{% block header_class %}bg-secondary{% endblock %}
+
{% block title_text %}
{{ alert.title }}
{% endblock %}
diff --git a/src/hi/apps/collection/migrations/0002_alter_collection_order_id_and_more.py b/src/hi/apps/collection/migrations/0002_alter_collection_order_id_and_more.py
new file mode 100644
index 00000000..e6ad3bcd
--- /dev/null
+++ b/src/hi/apps/collection/migrations/0002_alter_collection_order_id_and_more.py
@@ -0,0 +1,25 @@
+# Generated by Django 4.2.24 on 2025-09-25 12:36
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("collection", "0001_initial"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="collection",
+ name="order_id",
+ field=models.PositiveIntegerField(
+ db_index=True, default=0, verbose_name="Position"
+ ),
+ ),
+ migrations.AlterField(
+ model_name="collectionentity",
+ name="order_id",
+ field=models.PositiveIntegerField(default=0, verbose_name="Position"),
+ ),
+ ]
diff --git a/src/hi/apps/collection/templates/collection/edit/modals/collection_add.html b/src/hi/apps/collection/templates/collection/edit/modals/collection_add.html
index 5e509858..2cc79bd4 100644
--- a/src/hi/apps/collection/templates/collection/edit/modals/collection_add.html
+++ b/src/hi/apps/collection/templates/collection/edit/modals/collection_add.html
@@ -25,9 +25,9 @@ New Collection
{% endblock %}
{% block action_right %}
-<button id="hi-add-collection-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-add-collection-button" type="submit" class="btn btn-primary"
name="action" value="add">
- {% icon "plus" size="sm" css_class="hi-icon-left" %}ADD
+ {% icon "plus" size="md" css_class="hi-icon-left" %}ADD
</button>
{% endblock %}
diff --git a/src/hi/apps/collection/templates/collection/edit/modals/collection_delete.html b/src/hi/apps/collection/templates/collection/edit/modals/collection_delete.html
index 656e227f..297dcf00 100644
--- a/src/hi/apps/collection/templates/collection/edit/modals/collection_delete.html
+++ b/src/hi/apps/collection/templates/collection/edit/modals/collection_delete.html
@@ -1,4 +1,7 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
+
+{% block header_class %}bg-secondary{% endblock %}
{% block title_text %}
Delete Collection?
@@ -21,9 +24,9 @@ Delete Collection?
method="post" class="form"
data-async="true" >
{% csrf_token %}
- <button id="hi-delete-collection-button" type="submit" class="btn btn-lg btn-danger"
- name="action" value="confirm">
- DELETE
+ <button id="hi-delete-collection-button" type="submit" class="btn btn-danger"
+ name="action" value="confirm">
+ {% icon "delete" size="md" css_class="hi-icon-left" %}DELETE
</button>
</form>
{% endblock %}
diff --git a/src/hi/apps/collection/templates/collection/edit/panes/collection_entity_toggle.html b/src/hi/apps/collection/templates/collection/edit/panes/collection_entity_toggle.html
index 5df2f56c..1fe0dd5b 100644
--- a/src/hi/apps/collection/templates/collection/edit/panes/collection_entity_toggle.html
+++ b/src/hi/apps/collection/templates/collection/edit/panes/collection_entity_toggle.html
@@ -1,3 +1,4 @@
+{% load integration_tags %}
<div id="hi-entity-toggle-collection-{{ entity.id }}"
class="{{ DIVID.ENTITY_PICKER_FILTERABLE_ITEM_CLASS }} entity-item-row{% if is_unused %} unused{% elif exists_in_collection %} in-view{% endif %}"
data-entity-id="{{ entity.id }}"
@@ -15,7 +16,7 @@
{% if exists_in_collection %}checked{% endif %}
onchange-async="true" >
<label for="entity-toggle-collection-checkbox-{{ entity.id }}" class="entity-item-label">
- {{ entity.name }} <span class="entity-item-id">[{{ entity.integration_id }}]</span>
+ {{ entity.name }} <span class="entity-item-id">[{% integration_display_name entity %}]</span>
</label>
</form>
</div>
diff --git a/src/hi/apps/collection/templates/collection/edit/panes/collection_form.html b/src/hi/apps/collection/templates/collection/edit/panes/collection_form.html
index 94ade67f..098d61f8 100644
--- a/src/hi/apps/collection/templates/collection/edit/panes/collection_form.html
+++ b/src/hi/apps/collection/templates/collection/edit/panes/collection_form.html
@@ -45,7 +45,7 @@
{% if collection_form.order_id %}
<div class="sidebar-form-field">
<label for="{{ collection_form.order_id.id_for_label }}" class="sidebar-form-label">{{ collection_form.order_id.label }}</label>
- <input type="number" id="{{ collection_form.order_id.id_for_label }}" name="{{ collection_form.order_id.name }}" value="{{ collection_form.order_id.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" id="{{ collection_form.order_id.id_for_label }}" name="{{ collection_form.order_id.name }}" value="{{ collection_form.order_id.value }}" class="sidebar-form-input">
{% if collection_form.order_id.errors %}
<div class="sidebar-form-error">{{ collection_form.order_id.errors }}</div>
{% endif %}
diff --git a/src/hi/apps/collection/tests/test_views.py b/src/hi/apps/collection/tests/test_views.py
index 1754d394..d58202ff 100644
--- a/src/hi/apps/collection/tests/test_views.py
+++ b/src/hi/apps/collection/tests/test_views.py
@@ -98,7 +98,6 @@ class TestCollectionViewView(DualModeViewTestCase):
entity_type_str='SWITCH'
)
# Create collection-entity relationships
- from hi.apps.collection.models import CollectionEntity
CollectionEntity.objects.create(
collection=self.collection,
entity=self.entity1,
@@ -232,34 +231,3 @@ class TestCollectionDetailsView(DualModeViewTestCase):
self.assertEqual(response.status_code, 404)
-class TestCollectionViewContextVariables(DualModeViewTestCase):
- """
- Tests for grid class and entity display category context variables.
- """
-
- def setUp(self):
- super().setUp()
-
- # Create test collection
- self.collection = Collection.objects.create(
- name='Test Collection',
- collection_type_str='ROOM',
- collection_view_type_str='MAIN'
- )
-
- # Create entities with different characteristics
- self.plain_entity = Entity.objects.create(
- name='Plain Entity',
- entity_type_str='GENERAL',
- has_video_stream=False,
- )
- self.video_entity = Entity.objects.create(
- name='Video Entity',
- entity_type_str='CAMERA',
- has_video_stream=True,
- )
-
- # Add entities to collection
- CollectionEntity.objects.create(collection=self.collection, entity=self.plain_entity, order_id=1)
- CollectionEntity.objects.create(collection=self.collection, entity=self.video_entity, order_id=2)
-
diff --git a/src/hi/apps/common/templates/common/modals/processing_result.html b/src/hi/apps/common/templates/common/modals/processing_result.html
index d777ab51..f0142206 100644
--- a/src/hi/apps/common/templates/common/modals/processing_result.html
+++ b/src/hi/apps/common/templates/common/modals/processing_result.html
@@ -1,5 +1,7 @@
{% extends "modals/action_refresh.html" %}
+{% block modal_dialog_class %}hi-modal-dialog-600{% endblock %}
+
{% block title_text %}
{{ processing_result.title }}
{% endblock %}
diff --git a/src/hi/apps/common/templates/common/panes/processing_result.html b/src/hi/apps/common/templates/common/panes/processing_result.html
index 2e6c829c..df787e59 100644
--- a/src/hi/apps/common/templates/common/panes/processing_result.html
+++ b/src/hi/apps/common/templates/common/panes/processing_result.html
@@ -12,7 +12,7 @@
{% endif %}
{% if processing_result.message_list %}
-<div class="alert alert-info">
+<div class="text-primary">
<ul>
{% for message in processing_result.message_list %}
<li>{{ message }}</li>
diff --git a/src/hi/apps/common/templatetags/icons.py b/src/hi/apps/common/templatetags/icons.py
index 92f87316..f8e0e981 100644
--- a/src/hi/apps/common/templatetags/icons.py
+++ b/src/hi/apps/common/templatetags/icons.py
@@ -19,6 +19,8 @@ register = template.Library()
# Define available icon names to prevent arbitrary file inclusion
AVAILABLE_ICONS = {
+ 'audio-disabled',
+ 'audio-enabled',
'camera',
'cancel',
'check-circle',
@@ -33,10 +35,12 @@ AVAILABLE_ICONS = {
'cloud',
'collection',
'delete',
+ 'disabled',
'edit',
'exclamation-circle',
'eye',
'eye-off',
+ 'forecast',
'history',
'home',
'info-circle',
@@ -56,9 +60,11 @@ AVAILABLE_ICONS = {
'save',
'settings',
'shield',
+ 'sleep',
'sync',
'tasks',
'times-circle',
+ 'unlock',
'upload',
'video',
'view',
diff --git a/src/hi/apps/console/templates/console/modals/console_unlock.html b/src/hi/apps/console/templates/console/modals/console_unlock.html
index 27b42c18..4e8af551 100644
--- a/src/hi/apps/console/templates/console/modals/console_unlock.html
+++ b/src/hi/apps/console/templates/console/modals/console_unlock.html
@@ -1,4 +1,5 @@
{% extends "modals/action_1.html" %}
+{% load icons %}
{% block preamble %}
<form action="{% url 'console_unlock' %}" method="post" class="form" data-async="true">
@@ -16,7 +17,7 @@
{% block action_center %}
<button id="hi-console-unlock-button" type="submit" class="btn btn-lg btn-primary"
name="action" value="unlock">
- UNLOCK
+ {% icon "unlock" size="sm" css_class="hi-icon-left" %}UNLOCK
</button>
{% endblock %}
diff --git a/src/hi/apps/console/templates/console/modals/set_lock_password.html b/src/hi/apps/console/templates/console/modals/set_lock_password.html
index 7924f1f2..25eb7a60 100644
--- a/src/hi/apps/console/templates/console/modals/set_lock_password.html
+++ b/src/hi/apps/console/templates/console/modals/set_lock_password.html
@@ -1,4 +1,5 @@
{% extends "modals/action_1.html" %}
+{% load icons %}
{% block preamble %}
<form action="{% url 'console_set_lock_password' %}" method="post" class="form" data-async="true">
@@ -19,7 +20,7 @@
{% block action_center %}
<button id="hi-console-set-lock-password-button" type="submit" class="btn btn-lg btn-primary"
name="action" value="set">
- SET PASSWORD
+ {% icon "unlock" size="sm" css_class="hi-icon-left" %}SET PASSWORD
</button>
{% endblock %}
diff --git a/src/hi/apps/console/templates/console/panes/audio_control.html b/src/hi/apps/console/templates/console/panes/audio_control.html
index c707fab6..ddb67d94 100644
--- a/src/hi/apps/console/templates/console/panes/audio_control.html
+++ b/src/hi/apps/console/templates/console/panes/audio_control.html
@@ -1,3 +1,4 @@
+{% load icons %}
<div id="hi-audio-state-toggle">
<button id="hi-audio-state-enabled"
role="button"
@@ -5,7 +6,7 @@
class="btn btn-primary btn-control"
onclick="Hi.audio.handleAudioButtonClick();"
title="Sounds enabled. Tap to Disable">
- Sounds: On
+ {% icon "audio-enabled" size="sm" css_class="hi-icon-left" %}Sounds: On
</button>
<button id="hi-audio-state-disabled"
role="button"
@@ -13,7 +14,7 @@
class="btn btn-secondary btn-control"
onclick="Hi.audio.handleAudioButtonClick();"
title="Sounds disabled. Tap to enable">
- Sounds: Off
+ {% icon "audio-disabled" size="sm" css_class="hi-icon-left" %}Sounds: Off
</button>
<button id="hi-audio-state-blocked"
role="button"
@@ -21,6 +22,6 @@
class="btn btn-danger btn-control"
onclick="Hi.audio.handleAudioButtonClick();"
title="Browser blocked audio. Click for help">
- Sounds: Blocked
+ {% icon "exclamation-circle" size="sm" css_class="hi-icon-left" %}Sounds: Blocked
</button>
</div>
diff --git a/src/hi/apps/console/templates/console/panes/console_lock_button.html b/src/hi/apps/console/templates/console/panes/console_lock_button.html
index c1a96e66..d4825f88 100644
--- a/src/hi/apps/console/templates/console/panes/console_lock_button.html
+++ b/src/hi/apps/console/templates/console/panes/console_lock_button.html
@@ -1,10 +1,11 @@
+{% load icons %}
<div id="hi-console-lock-button">
<form action="{% url 'console_lock' %}" method="post" class="form" data-async="true">
{% csrf_token %}
<button type="submit" id="hi-console-lock-button" role="button"
class="btn btn-primary btn-control"
title="Console Unlocked. Tap to Lock">
- LOCK
+ {% icon "lock" size="sm" css_class="hi-icon-left" %}LOCK
</button>
</form>
</div>
diff --git a/src/hi/apps/console/templates/console/panes/sleep_mode_control.html b/src/hi/apps/console/templates/console/panes/sleep_mode_control.html
index 08f57fb7..4d5f4d98 100644
--- a/src/hi/apps/console/templates/console/panes/sleep_mode_control.html
+++ b/src/hi/apps/console/templates/console/panes/sleep_mode_control.html
@@ -1,2 +1,5 @@
+{% load icons %}
<button class="btn btn-primary btn-control" role="button"
- onclick="Hi.settings.enableSleepMode();">SLEEP</button>
+onclick="Hi.settings.enableSleepMode();">
+ {% icon "sleep" size="sm" css_class="hi-icon-left" %}SLEEP
+</button>
diff --git a/src/hi/apps/entity/templates/entity/edit/modals/entity_add.html b/src/hi/apps/entity/templates/entity/edit/modals/entity_add.html
index d6faf822..91caa39e 100644
--- a/src/hi/apps/entity/templates/entity/edit/modals/entity_add.html
+++ b/src/hi/apps/entity/templates/entity/edit/modals/entity_add.html
@@ -1,4 +1,5 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
{% block preamble %}
<form action="{% url 'entity_edit_entity_add' %}" method="post"
@@ -17,9 +18,9 @@ New Item
{% endblock %}
{% block action_right %}
-<button id="hi-add-entity-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-add-entity-button" type="submit" class="btn btn-primary"
name="action" value="add">
- ADD
+ {% icon "plus" size="sm" css_class="hi-icon-left" %}ADD
</button>
{% endblock %}
diff --git a/src/hi/apps/entity/templates/entity/edit/modals/entity_delete.html b/src/hi/apps/entity/templates/entity/edit/modals/entity_delete.html
index bc1520fb..94faf3bc 100644
--- a/src/hi/apps/entity/templates/entity/edit/modals/entity_delete.html
+++ b/src/hi/apps/entity/templates/entity/edit/modals/entity_delete.html
@@ -1,4 +1,7 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
+
+{% block header_class %}bg-secondary{% endblock %}
{% block title_text %}
Delete Item?
@@ -22,9 +25,9 @@ Delete Item?
method="post" class="form"
data-async="true" >
{% csrf_token %}
- <button id="hi-delete-entity-button" type="submit" class="btn btn-lg btn-danger"
- name="action" value="confirm">
- DELETE
+ <button id="hi-delete-entity-button" type="submit" class="btn btn-danger"
+ name="action" value="confirm">
+ {% icon "delete" size="md" css_class="hi-icon-left" %}DELETE
</button>
</form>
{% endblock %}
diff --git a/src/hi/apps/entity/templates/entity/edit/modals/manage_pairings.html b/src/hi/apps/entity/templates/entity/edit/modals/manage_pairings.html
index e5b61820..686cc8df 100644
--- a/src/hi/apps/entity/templates/entity/edit/modals/manage_pairings.html
+++ b/src/hi/apps/entity/templates/entity/edit/modals/manage_pairings.html
@@ -1,4 +1,5 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
{% block modal_dialog_class %}hi-modal-dialog-600{% endblock %}
@@ -46,9 +47,9 @@
{% endblock %}
{% block action_right %}
- <button id="hi-principal-manage-button" type="submit" class="btn btn-lg btn-primary"
+ <button id="hi-principal-manage-button" type="submit" class="btn btn-primary"
name="action" value="submit">
- SUBMIT
+ {% icon "save" size="md" css_class="hi-icon-left" %}SUBMIT
</button>
{% endblock %}
diff --git a/src/hi/apps/entity/templates/entity/edit/panes/entity_edit_mode_panel.html b/src/hi/apps/entity/templates/entity/edit/panes/entity_edit_mode_panel.html
index 54f93b26..9fb56b78 100644
--- a/src/hi/apps/entity/templates/entity/edit/panes/entity_edit_mode_panel.html
+++ b/src/hi/apps/entity/templates/entity/edit/panes/entity_edit_mode_panel.html
@@ -1,4 +1,5 @@
{% load icons %}
+{% load integration_tags %}
<div class="d-flex justify-content-between mt-2">
<div class="h4">Item Layout</div>
<div class="">
@@ -9,16 +10,16 @@
</div>
</div>
-<div id="{{ DIVID.ENTITY_PROPERTIES_PANE }}">
- {% include "entity/edit/panes/entity_properties_edit.html" %}
-</div>
-
{% if entity.integration_id %}
<div class="my-2">
- <div class="h6">Integration: <strong>{{ entity.integration_id }}</strong></div>
+ <div class="text-muted">From: <strong>{% integration_display_name entity %}</strong></div>
</div>
{% endif %}
+<div id="{{ DIVID.ENTITY_PROPERTIES_PANE }}">
+ {% include "entity/edit/panes/entity_properties_edit.html" %}
+</div>
+
{% if entity.can_user_delete %}
<div class="my-2">
<a href="{% url 'entity_edit_entity_delete' entity_id=entity.id %}"
diff --git a/src/hi/apps/entity/templates/entity/modals/entity_state_history.html b/src/hi/apps/entity/templates/entity/modals/entity_state_history.html
index 38b06900..71a5db12 100644
--- a/src/hi/apps/entity/templates/entity/modals/entity_state_history.html
+++ b/src/hi/apps/entity/templates/entity/modals/entity_state_history.html
@@ -1,5 +1,6 @@
{% extends "modals/action_3.html" %}
{% load common_tags %}
+{% load icons %}
{% block title_text %}
{{ entity.name }}: History
@@ -35,7 +36,7 @@
<a class="btn btn-primary"
href="{% url 'entity_edit' entity_id=entity.id %}"
data-async="modal">
- EDIT
+ {% icon "edit" size="sm" css_class="hi-icon-left" %}EDIT
</a>
{% endblock %}
@@ -43,11 +44,11 @@
<a class="btn btn-primary"
href="{% url 'entity_status' entity_id=entity.id %}"
data-async="modal">
- STATUS
+ {% icon "info-circle" size="sm" css_class="hi-icon-left" %}STATUS
</a>
{% endblock %}
{% block action_right %}
<a id="hi-modal-done" role="button" {% if autofocus %}autofocus="autofocus"{% endif %}
- class="btn btn-secondary" href="#" data-dismiss="modal">DONE</a>
+ class="btn btn-primary" href="#" data-dismiss="modal">DONE</a>
{% endblock %}
diff --git a/src/hi/apps/entity/templates/entity/modals/entity_status.html b/src/hi/apps/entity/templates/entity/modals/entity_status.html
index 95fad37c..4f2ea57f 100644
--- a/src/hi/apps/entity/templates/entity/modals/entity_status.html
+++ b/src/hi/apps/entity/templates/entity/modals/entity_status.html
@@ -1,4 +1,5 @@
{% extends "modals/action_3.html" %}
+{% load icons %}
{% load video_tags %}
{% load integration_tags %}
@@ -37,15 +38,15 @@ Status
<a class="btn btn-primary"
href="{% url 'entity_edit' entity_id=entity.id %}"
data-async="modal">
- EDIT
+ {% icon "edit" size="sm" css_class="hi-icon-left" %}EDIT
</a>
{% endblock %}
{% block action_center %}
-<a class="btn btn-outline-primary"
+<a class="btn btn-primary"
href="{% url 'entity_state_history' entity_id=entity.id %}"
data-async="modal">
- HISTORY
+ {% icon "history" size="sm" css_class="hi-icon-left" %}HISTORY
</a>
{% endblock %}
diff --git a/src/hi/apps/event/templates/event/edit/modals/event_definition_add.html b/src/hi/apps/event/templates/event/edit/modals/event_definition_add.html
index 2e071119..da08eddb 100644
--- a/src/hi/apps/event/templates/event/edit/modals/event_definition_add.html
+++ b/src/hi/apps/event/templates/event/edit/modals/event_definition_add.html
@@ -1,6 +1,8 @@
{% extends "modals/action_with_cancel.html" %}
{% load icons %}
+{% block modal_dialog_class %}hi-modal-dialog-600{% endblock %}
+
{% block preamble %}
<form action="{% url 'event_definition_add' %}"
method="post" enctype="multipart/form-data"
@@ -19,7 +21,7 @@ New Trigger Rule
{% endblock %}
{% block action_right %}
-<button id="hi-add-event-definition-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-add-event-definition-button" type="submit" class="btn btn-primary"
name="action" value="add">
{% icon "plus" size="sm" css_class="hi-icon-left" %}ADD
</button>
diff --git a/src/hi/apps/event/templates/event/edit/modals/event_definition_delete.html b/src/hi/apps/event/templates/event/edit/modals/event_definition_delete.html
index e277a942..79940628 100644
--- a/src/hi/apps/event/templates/event/edit/modals/event_definition_delete.html
+++ b/src/hi/apps/event/templates/event/edit/modals/event_definition_delete.html
@@ -1,4 +1,7 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
+
+{% block header_class %}bg-secondary{% endblock %}
{% block preamble %}
<form action="{% url 'event_definition_delete' id=event_definition.id %}"
@@ -20,23 +23,23 @@ Please confirm that you want to delete this trigger rule.
<li>Name: {{ event_definition.name }}</li>
<li>Clauses
<ul>
- {% for event_clause in event_definition.event_clauses.all %}
- <li>{{ event_clause.entity_state.name }} = {{ event_clause.value }} ({{ event_clause.entity_state.entity_state_type.label }})</li>
- {% endfor %}
+ {% for event_clause in event_definition.event_clauses.all %}
+ <li>{{ event_clause.entity_state.name }} = {{ event_clause.value }} ({{ event_clause.entity_state.entity_state_type.label }})</li>
+ {% endfor %}
</ul>
</li>
<li>Alarm Actions
<ul>
- {% for alarm_action in event_definition.alarm_actions.all %}
- <li>Alarm: {{ alarm_action.security_level.label }} = {{ alarm_action.alarm_level.label }}</li>
- {% endfor %}
+ {% for alarm_action in event_definition.alarm_actions.all %}
+ <li>Alarm: {{ alarm_action.security_level.label }} = {{ alarm_action.alarm_level.label }}</li>
+ {% endfor %}
</ul>
</li>
<li>Control Actions
<ul>
- {% for control_action in event_definition.control_actions.all %}
- <li>Control: {{ control_action.controller.name }} = {{ control_action.value }}</li>
- {% endfor %}
+ {% for control_action in event_definition.control_actions.all %}
+ <li>Control: {{ control_action.controller.name }} = {{ control_action.value }}</li>
+ {% endfor %}
</ul>
</li>
</ul>
@@ -47,9 +50,9 @@ Please confirm that you want to delete this trigger rule.
{% endblock %}
{% block action_right %}
-<button id="hi-delete-event-definition-button" type="submit" class="btn btn-lg btn-danger"
- name="action" value="delete">
- DELETE
+<button id="hi-delete-event-definition-button" type="submit" class="btn btn-danger"
+ name="action" value="delete">
+ {% icon "delete" size="sm" css_class="hi-icon-left" %}DELETE
</button>
{% endblock %}
diff --git a/src/hi/apps/event/templates/event/edit/modals/event_definition_edit.html b/src/hi/apps/event/templates/event/edit/modals/event_definition_edit.html
index 884de75e..e61a66fc 100644
--- a/src/hi/apps/event/templates/event/edit/modals/event_definition_edit.html
+++ b/src/hi/apps/event/templates/event/edit/modals/event_definition_edit.html
@@ -1,6 +1,8 @@
{% extends "modals/action_with_cancel.html" %}
{% load icons %}
+{% block modal_dialog_class %}hi-modal-dialog-600{% endblock %}
+
{% block preamble %}
<form action="{% url 'event_definition_edit' id=event_definition.id %}"
method="post" enctype="multipart/form-data"
@@ -19,7 +21,7 @@ Edit Trigger Rule
{% endblock %}
{% block action_right %}
-<button id="hi-edit-event-definition-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-edit-event-definition-button" type="submit" class="btn btn-primary"
name="action" value="edit">
{% icon "save" size="sm" css_class="hi-icon-left" %}UPDATE
</button>
diff --git a/src/hi/apps/event/templates/event/panes/event_definitions.html b/src/hi/apps/event/templates/event/panes/event_definitions.html
index bb1ec39e..0d20542e 100644
--- a/src/hi/apps/event/templates/event/panes/event_definitions.html
+++ b/src/hi/apps/event/templates/event/panes/event_definitions.html
@@ -6,7 +6,7 @@
<div class="d-flex justify-content-between my-1">
<div class="h3">Trigger Rules</div>
<div>
- <a role="button" class="btn btn-primary"
+ <a role="button" class="btn btn-outline-primary"
href="{% url 'event_definition_add' %}"
data-async="modal" >
{% icon "plus" size="sm" css_class="hi-icon-left" %}ADD NEW RULE
diff --git a/src/hi/apps/location/migrations/0003_alter_location_order_id_alter_locationview_order_id.py b/src/hi/apps/location/migrations/0003_alter_location_order_id_alter_locationview_order_id.py
new file mode 100644
index 00000000..306bbfab
--- /dev/null
+++ b/src/hi/apps/location/migrations/0003_alter_location_order_id_alter_locationview_order_id.py
@@ -0,0 +1,27 @@
+# Generated by Django 4.2.24 on 2025-09-25 12:36
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("location", "0002_locationattributehistory"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="location",
+ name="order_id",
+ field=models.PositiveIntegerField(
+ db_index=True, default=0, verbose_name="Position"
+ ),
+ ),
+ migrations.AlterField(
+ model_name="locationview",
+ name="order_id",
+ field=models.PositiveIntegerField(
+ db_index=True, default=0, verbose_name="Position"
+ ),
+ ),
+ ]
diff --git a/src/hi/apps/location/templates/location/edit/modals/location_add.html b/src/hi/apps/location/templates/location/edit/modals/location_add.html
index 0304e61d..0fe7b597 100644
--- a/src/hi/apps/location/templates/location/edit/modals/location_add.html
+++ b/src/hi/apps/location/templates/location/edit/modals/location_add.html
@@ -18,7 +18,7 @@ New Space
{% endblock %}
{% block action_right %}
-<button id="hi-add-location-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-add-location-button" type="submit" class="btn btn-primary"
name="action" value="add">
{% icon "plus" size="sm" css_class="hi-icon-left" %}ADD
</button>
diff --git a/src/hi/apps/location/templates/location/edit/modals/location_add_first.html b/src/hi/apps/location/templates/location/edit/modals/location_add_first.html
index 2d5c5702..b07f75fd 100644
--- a/src/hi/apps/location/templates/location/edit/modals/location_add_first.html
+++ b/src/hi/apps/location/templates/location/edit/modals/location_add_first.html
@@ -18,7 +18,7 @@ Create Your Space
{% endblock %}
{% block action_right %}
-<button id="hi-add-location-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-add-location-button" type="submit" class="btn btn-primary"
name="action" value="add">
{% icon "plus" size="sm" css_class="hi-icon-left" %}CREATE
</button>
diff --git a/src/hi/apps/location/templates/location/edit/modals/location_delete.html b/src/hi/apps/location/templates/location/edit/modals/location_delete.html
index 0b34128d..9bffc41a 100644
--- a/src/hi/apps/location/templates/location/edit/modals/location_delete.html
+++ b/src/hi/apps/location/templates/location/edit/modals/location_delete.html
@@ -1,4 +1,7 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
+
+{% block header_class %}bg-secondary{% endblock %}
{% block title_text %}
Delete Space?
@@ -21,9 +24,9 @@ Delete Space?
method="post" class="form"
data-async="true" >
{% csrf_token %}
- <button id="hi-delete-location-button" type="submit" class="btn btn-lg btn-danger"
+ <button id="hi-delete-location-button" type="submit" class="btn btn-danger"
name="action" value="confirm">
- DELETE
+ {% icon "delete" size="sm" css_class="hi-icon-left" %}DELETE
</button>
</form>
{% endblock %}
diff --git a/src/hi/apps/location/templates/location/edit/modals/location_svg_replace.html b/src/hi/apps/location/templates/location/edit/modals/location_svg_replace.html
index 66926bbc..1909bd12 100644
--- a/src/hi/apps/location/templates/location/edit/modals/location_svg_replace.html
+++ b/src/hi/apps/location/templates/location/edit/modals/location_svg_replace.html
@@ -1,4 +1,5 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
{% block preamble %}
<form action="{% url 'location_edit_svg_replace' location_id=location.id %}"
@@ -18,9 +19,9 @@ Replace Space Background Image
{% endblock %}
{% block action_right %}
-<button id="hi-svg-replace-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-svg-replace-button" type="submit" class="btn btn-primary"
name="action" value="replace">
- UPDATE
+ {% icon "save" size="sm" css_class="hi-icon-left" %}UPDATE
</button>
{% endblock %}
diff --git a/src/hi/apps/location/templates/location/edit/modals/location_view_add.html b/src/hi/apps/location/templates/location/edit/modals/location_view_add.html
index 7a45bf3a..4b4fb6b6 100644
--- a/src/hi/apps/location/templates/location/edit/modals/location_view_add.html
+++ b/src/hi/apps/location/templates/location/edit/modals/location_view_add.html
@@ -18,7 +18,7 @@ New View for {{ location.name }}
{% endblock %}
{% block action_right %}
-<button id="hi-add-location-view-button" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-add-location-view-button" type="submit" class="btn btn-primary"
name="action" value="add">
{% icon "plus" size="sm" css_class="hi-icon-left" %}ADD
</button>
diff --git a/src/hi/apps/location/templates/location/edit/modals/location_view_delete.html b/src/hi/apps/location/templates/location/edit/modals/location_view_delete.html
index 7f8aeb17..94227956 100644
--- a/src/hi/apps/location/templates/location/edit/modals/location_view_delete.html
+++ b/src/hi/apps/location/templates/location/edit/modals/location_view_delete.html
@@ -1,4 +1,7 @@
{% extends "modals/action_with_cancel.html" %}
+{% load icons %}
+
+{% block header_class %}bg-secondary{% endblock %}
{% block title_text %}
Delete View?
@@ -21,9 +24,9 @@ Delete View?
method="post" class="form"
data-async="true" >
{% csrf_token %}
- <button id="hi-delete-location-view-button" type="submit" class="btn btn-lg btn-danger"
+ <button id="hi-delete-location-view-button" type="submit" class="btn btn-danger"
name="action" value="confirm">
- DELETE
+ {% icon "delete" size="sm" css_class="hi-icon-left" %}DELETE
</button>
</form>
{% endblock %}
diff --git a/src/hi/apps/location/templates/location/edit/panes/location_edit_form.html b/src/hi/apps/location/templates/location/edit/panes/location_edit_form.html
index 5dafe8ce..3feaf8ea 100644
--- a/src/hi/apps/location/templates/location/edit/panes/location_edit_form.html
+++ b/src/hi/apps/location/templates/location/edit/panes/location_edit_form.html
@@ -20,7 +20,7 @@
<div class="sidebar-form-field">
<label for="{{ location_edit_form.order_id.id_for_label }}" class="sidebar-form-label">{{ location_edit_form.order_id.label }}</label>
- <input type="number" id="{{ location_edit_form.order_id.id_for_label }}" name="{{ location_edit_form.order_id.name }}" value="{{ location_edit_form.order_id.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" id="{{ location_edit_form.order_id.id_for_label }}" name="{{ location_edit_form.order_id.name }}" value="{{ location_edit_form.order_id.value }}" class="sidebar-form-input">
{% if location_edit_form.order_id.errors %}
<div class="sidebar-form-error">{{ location_edit_form.order_id.errors }}</div>
{% endif %}
diff --git a/src/hi/apps/location/templates/location/edit/panes/location_item_position_form.html b/src/hi/apps/location/templates/location/edit/panes/location_item_position_form.html
index 1826d510..758aadcd 100644
--- a/src/hi/apps/location/templates/location/edit/panes/location_item_position_form.html
+++ b/src/hi/apps/location/templates/location/edit/panes/location_item_position_form.html
@@ -13,7 +13,7 @@
<div class="sidebar-form-field">
<label for="{{ location_item_position_form.svg_x.id_for_label }}" class="sidebar-form-label">{{ location_item_position_form.svg_x.label }}</label>
- <input type="number" step="any" id="{{ location_item_position_form.svg_x.id_for_label }}" name="{{ location_item_position_form.svg_x.name }}" value="{{ location_item_position_form.svg_x.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" step="any" id="{{ location_item_position_form.svg_x.id_for_label }}" name="{{ location_item_position_form.svg_x.name }}" value="{{ location_item_position_form.svg_x.value }}" class="sidebar-form-input">
{% if location_item_position_form.svg_x.errors %}
<div class="sidebar-form-error">{{ location_item_position_form.svg_x.errors }}</div>
{% endif %}
@@ -21,7 +21,7 @@
<div class="sidebar-form-field">
<label for="{{ location_item_position_form.svg_y.id_for_label }}" class="sidebar-form-label">{{ location_item_position_form.svg_y.label }}</label>
- <input type="number" step="any" id="{{ location_item_position_form.svg_y.id_for_label }}" name="{{ location_item_position_form.svg_y.name }}" value="{{ location_item_position_form.svg_y.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" step="any" id="{{ location_item_position_form.svg_y.id_for_label }}" name="{{ location_item_position_form.svg_y.name }}" value="{{ location_item_position_form.svg_y.value }}" class="sidebar-form-input">
{% if location_item_position_form.svg_y.errors %}
<div class="sidebar-form-error">{{ location_item_position_form.svg_y.errors }}</div>
{% endif %}
@@ -29,7 +29,7 @@
<div class="sidebar-form-field">
<label for="{{ location_item_position_form.svg_scale.id_for_label }}" class="sidebar-form-label">{{ location_item_position_form.svg_scale.label }}</label>
- <input type="number" step="any" id="{{ location_item_position_form.svg_scale.id_for_label }}" name="{{ location_item_position_form.svg_scale.name }}" value="{{ location_item_position_form.svg_scale.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" step="any" id="{{ location_item_position_form.svg_scale.id_for_label }}" name="{{ location_item_position_form.svg_scale.name }}" value="{{ location_item_position_form.svg_scale.value }}" class="sidebar-form-input">
{% if location_item_position_form.svg_scale.errors %}
<div class="sidebar-form-error">{{ location_item_position_form.svg_scale.errors }}</div>
{% endif %}
@@ -37,7 +37,7 @@
<div class="sidebar-form-field">
<label for="{{ location_item_position_form.svg_rotate.id_for_label }}" class="sidebar-form-label">{{ location_item_position_form.svg_rotate.label }}</label>
- <input type="number" step="any" id="{{ location_item_position_form.svg_rotate.id_for_label }}" name="{{ location_item_position_form.svg_rotate.name }}" value="{{ location_item_position_form.svg_rotate.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" step="any" id="{{ location_item_position_form.svg_rotate.id_for_label }}" name="{{ location_item_position_form.svg_rotate.name }}" value="{{ location_item_position_form.svg_rotate.value }}" class="sidebar-form-input">
{% if location_item_position_form.svg_rotate.errors %}
<div class="sidebar-form-error">{{ location_item_position_form.svg_rotate.errors }}</div>
{% endif %}
@@ -45,7 +45,7 @@
<div class="sidebar-form-actions">
<button id="hi-add-entity-edit-button" type="submit" class="btn btn-primary btn-block"
- name="action" value="update">
+ name="action" value="update">
{% icon "save" size="sm" css_class="hi-icon-left" %}UPDATE
</button>
</div>
diff --git a/src/hi/apps/location/templates/location/edit/panes/location_view_edit_mode_form.html b/src/hi/apps/location/templates/location/edit/panes/location_view_edit_mode_form.html
index dd6e2cda..06eac803 100644
--- a/src/hi/apps/location/templates/location/edit/panes/location_view_edit_mode_form.html
+++ b/src/hi/apps/location/templates/location/edit/panes/location_view_edit_mode_form.html
@@ -44,7 +44,7 @@
<div class="sidebar-form-field">
<label for="{{ location_view_edit_form.order_id.id_for_label }}" class="sidebar-form-label">{{ location_view_edit_form.order_id.label }}</label>
- <input type="number" id="{{ location_view_edit_form.order_id.id_for_label }}" name="{{ location_view_edit_form.order_id.name }}" value="{{ location_view_edit_form.order_id.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" id="{{ location_view_edit_form.order_id.id_for_label }}" name="{{ location_view_edit_form.order_id.name }}" value="{{ location_view_edit_form.order_id.value }}" class="sidebar-form-input">
{% if location_view_edit_form.order_id.errors %}
<div class="sidebar-form-error">{{ location_view_edit_form.order_id.errors }}</div>
{% endif %}
@@ -60,7 +60,7 @@
<div class="sidebar-form-field">
<label for="{{ location_view_edit_form.svg_rotate.id_for_label }}" class="sidebar-form-label">{{ location_view_edit_form.svg_rotate.label }}</label>
- <input type="number" id="{{ location_view_edit_form.svg_rotate.id_for_label }}" name="{{ location_view_edit_form.svg_rotate.name }}" value="{{ location_view_edit_form.svg_rotate.value|default:'' }}" class="sidebar-form-input">
+ <input type="number" id="{{ location_view_edit_form.svg_rotate.id_for_label }}" name="{{ location_view_edit_form.svg_rotate.name }}" value="{{ location_view_edit_form.svg_rotate.value }}" class="sidebar-form-input">
{% if location_view_edit_form.svg_rotate.errors %}
<div class="sidebar-form-error">{{ location_view_edit_form.svg_rotate.errors }}</div>
{% endif %}
diff --git a/src/hi/apps/location/templates/location/edit/panes/location_view_entity_toggle.html b/src/hi/apps/location/templates/location/edit/panes/location_view_entity_toggle.html
index 78e1126a..8006d015 100644
--- a/src/hi/apps/location/templates/location/edit/panes/location_view_entity_toggle.html
+++ b/src/hi/apps/location/templates/location/edit/panes/location_view_entity_toggle.html
@@ -1,3 +1,4 @@
+{% load integration_tags %}
<div id="hi-entity-toggle-location-{{ entity.id }}"
class="{{ DIVID.ENTITY_PICKER_FILTERABLE_ITEM_CLASS }} entity-item-row{% if is_unused %} unused{% elif exists_in_view %} in-view{% endif %}"
data-entity-id="{{ entity.id }}"
@@ -15,7 +16,7 @@
{% if exists_in_view %}checked{% endif %}
onchange-async="true" >
<label for="entity-toggle-location-checkbox-{{ entity.id }}" class="entity-item-label">
- {{ entity.name }} <span class="entity-item-id">[{{ entity.integration_id }}]</span>
+ {{ entity.name }} <span class="entity-item-id">[{% integration_display_name entity %}]</span>
</label>
</form>
</div>
diff --git a/src/hi/apps/notify/templates/notify/tests/ui/email_preview.html b/src/hi/apps/notify/templates/notify/tests/ui/email_preview.html
index 30841491..463c7681 100644
--- a/src/hi/apps/notify/templates/notify/tests/ui/email_preview.html
+++ b/src/hi/apps/notify/templates/notify/tests/ui/email_preview.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% block title_text %}
Email: {{ view_name }}
@@ -19,7 +19,7 @@ Email: {{ view_name }}
{% autoescape off %}
<iframe srcdoc="{{ body_html|safe }}"
- style="width: 100%; height: 50vh; border: 1px solid #ccc;"
+ style="width: 100%; height: 50vh; border: 1px solid #ccc;"
sandbox="allow-same-origin allow-scripts">
</iframe>
{% endautoescape %}
diff --git a/src/hi/apps/notify/templates/notify/tests/ui/send_email_success.html b/src/hi/apps/notify/templates/notify/tests/ui/send_email_success.html
index 5f2f5b74..2c618742 100644
--- a/src/hi/apps/notify/templates/notify/tests/ui/send_email_success.html
+++ b/src/hi/apps/notify/templates/notify/tests/ui/send_email_success.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% block title_text %}
Email Sent
diff --git a/src/hi/apps/profiles/templates/profiles/modals/edit_reference_help.html b/src/hi/apps/profiles/templates/profiles/modals/edit_reference_help.html
index 8c8e2397..ce1fcd1d 100644
--- a/src/hi/apps/profiles/templates/profiles/modals/edit_reference_help.html
+++ b/src/hi/apps/profiles/templates/profiles/modals/edit_reference_help.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% load icons %}
{% block modal_dialog_class %}hi-modal-dialog-700{% endblock %}
diff --git a/src/hi/apps/profiles/templates/profiles/modals/view_reference_help.html b/src/hi/apps/profiles/templates/profiles/modals/view_reference_help.html
index 7eb526e6..523af5df 100644
--- a/src/hi/apps/profiles/templates/profiles/modals/view_reference_help.html
+++ b/src/hi/apps/profiles/templates/profiles/modals/view_reference_help.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% load icons %}
{% block modal_dialog_class %}hi-modal-dialog-700{% endblock %}
diff --git a/src/hi/apps/profiles/templates/profiles/tests/devtools/modals/snapshot_select.html b/src/hi/apps/profiles/templates/profiles/tests/devtools/modals/snapshot_select.html
index 9da2efe2..847ff28a 100644
--- a/src/hi/apps/profiles/templates/profiles/tests/devtools/modals/snapshot_select.html
+++ b/src/hi/apps/profiles/templates/profiles/tests/devtools/modals/snapshot_select.html
@@ -46,7 +46,7 @@ Generate Profile Snapshot
{% endblock %}
{% block action_right %}
-<button id="hi-generate-snapshot-button" type="submit" class="btn btn-lg btn-success"
+<button id="hi-generate-snapshot-button" type="submit" class="btn btn-success"
name="action" value="generate">
{% icon "camera" size="sm" css_class="hi-icon-left" %}GENERATE
</button>
@@ -54,4 +54,4 @@ Generate Profile Snapshot
{% block postamble %}
</form>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/hi/apps/sense/templates/sense/modals/sensor_history_details.html b/src/hi/apps/sense/templates/sense/modals/sensor_history_details.html
index bf7d8f07..92d3b255 100644
--- a/src/hi/apps/sense/templates/sense/modals/sensor_history_details.html
+++ b/src/hi/apps/sense/templates/sense/modals/sensor_history_details.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% load video_tags %}
{% block title_text %}
diff --git a/src/hi/apps/system/templates/system/modals/api_health_status.html b/src/hi/apps/system/templates/system/modals/api_health_status.html
index fc5fd98d..d004baf6 100644
--- a/src/hi/apps/system/templates/system/modals/api_health_status.html
+++ b/src/hi/apps/system/templates/system/modals/api_health_status.html
@@ -4,7 +4,6 @@
{% block modal_dialog_class %}hi-modal-dialog-800{% endblock %}
{% block title_text %}
-{% icon "shield" size="sm" css_class="mr-2" %}
{{ api_health_status.provider_name }} Health
{% endblock %}
diff --git a/src/hi/apps/system/templates/system/modals/health_status.html b/src/hi/apps/system/templates/system/modals/health_status.html
index ef995c78..417a7dc3 100644
--- a/src/hi/apps/system/templates/system/modals/health_status.html
+++ b/src/hi/apps/system/templates/system/modals/health_status.html
@@ -4,7 +4,6 @@
{% block modal_dialog_class %}hi-modal-dialog-800{% endblock %}
{% block title_text %}
-{% icon "shield" size="sm" css_class="mr-2" %}
{{ health_status_provider.health_status.provider_name }} Health
{% endblock %}
diff --git a/src/hi/apps/system/templates/system/panes/system_info.html b/src/hi/apps/system/templates/system/panes/system_info.html
index ed6b26f7..2a7390bd 100644
--- a/src/hi/apps/system/templates/system/panes/system_info.html
+++ b/src/hi/apps/system/templates/system/panes/system_info.html
@@ -41,6 +41,8 @@
<div class="col-lg-6 col-md-12 mb-3">
{% include "system/panes/health_status_card.html" with health_status_provider=integration_provider %}
</div>
+ {% empty %}
+ <div class="col-12 text-secondary"><em>No integrations enabled.</em></div>
{% endfor %}
</div>
diff --git a/src/hi/apps/user/templates/user/tests/ui/send_email_success.html b/src/hi/apps/user/templates/user/tests/ui/send_email_success.html
index 5f2f5b74..2c618742 100644
--- a/src/hi/apps/user/templates/user/tests/ui/send_email_success.html
+++ b/src/hi/apps/user/templates/user/tests/ui/send_email_success.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% block title_text %}
Email Sent
diff --git a/src/hi/apps/weather/monitors.py b/src/hi/apps/weather/monitors.py
index 4b07b388..2dc1019e 100644
--- a/src/hi/apps/weather/monitors.py
+++ b/src/hi/apps/weather/monitors.py
@@ -95,7 +95,7 @@ class WeatherMonitor( PeriodicMonitor, AlertMixin, SettingsMixin ):
if task_list:
await asyncio.gather( *task_list )
- message = f'Ran {len(task_list)} integrations, {disabled_count} disabled.'
+ message = f'Used {len(task_list)} weather sources, {disabled_count} disabled.'
self.record_healthy( message )
weather_source_manager.record_healthy( message )
else:
diff --git a/src/hi/apps/weather/templates/weather/modals/astronomical_details.html b/src/hi/apps/weather/templates/weather/modals/astronomical_details.html
index 041098dd..5768373f 100644
--- a/src/hi/apps/weather/templates/weather/modals/astronomical_details.html
+++ b/src/hi/apps/weather/templates/weather/modals/astronomical_details.html
@@ -1,4 +1,6 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
+
+{% block modal_dialog_class %}hi-modal-dialog-600{% endblock %}
{% block title_text %}
Astronomical
diff --git a/src/hi/apps/weather/templates/weather/modals/conditions_details.html b/src/hi/apps/weather/templates/weather/modals/conditions_details.html
index 9f8fddf2..7e50472b 100644
--- a/src/hi/apps/weather/templates/weather/modals/conditions_details.html
+++ b/src/hi/apps/weather/templates/weather/modals/conditions_details.html
@@ -1,4 +1,6 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
+
+{% block modal_dialog_class %}hi-modal-dialog-600{% endblock %}
{% block title_text %}
Current Conditions
diff --git a/src/hi/apps/weather/templates/weather/modals/forecast.html b/src/hi/apps/weather/templates/weather/modals/forecast.html
index afee2b81..bbe2856f 100644
--- a/src/hi/apps/weather/templates/weather/modals/forecast.html
+++ b/src/hi/apps/weather/templates/weather/modals/forecast.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% block modal_dialog_class %}hi-modal-dialog-800{% endblock %}
@@ -33,32 +33,32 @@ Weather Forecast
<div class="container">
<div class="scroll-container">
<div class="row flex-nowrap">
- {% for daily_forecast_interval in interval_daily_forecast_list %}
- <div class="weather-forecast-daily-col col-1 border p-3">
- {% include "weather/panes/daily_forecast_card.html" with daily_forecast_interval=daily_forecast_interval %}
- </div>
- {% empty %}
- <div class="alert alert-info">No forecast daily data available.</div>
- {% endfor %}
- </div>
+ {% for daily_forecast_interval in interval_daily_forecast_list %}
+ <div class="weather-forecast-daily-col col-1 border p-3">
+ {% include "weather/panes/daily_forecast_card.html" with daily_forecast_interval=daily_forecast_interval %}
+ </div>
+ {% empty %}
+ <div class="alert alert-info">No forecast daily data available.</div>
+ {% endfor %}
+ </div>
</div>
</div>
</div>
<div id="forecast-hourly-content" role="tabpanel"
- class="tab-pane fade"
+ class="tab-pane fade"
aria-labelledby="hi-forecast-tab-hourly">
<div class="table-responsive">
<table class="table table-striped">
- <thead>
- {% include "weather/panes/hourly_forecast_row_header.html" %}
- </thead>
- <tbody>
- {% for hourly_forecast_interval in interval_hourly_forecast_list %}
- {% include "weather/panes/hourly_forecast_row.html" with hourly_forecast_interval=hourly_forecast_interval %}
- {% empty %}
- <tr><td colspan="99"><div class="alert alert-info">No forecast hourly data available.</div></td></tr>
- {% endfor %}
- </tbody>
+ <thead>
+ {% include "weather/panes/hourly_forecast_row_header.html" %}
+ </thead>
+ <tbody>
+ {% for hourly_forecast_interval in interval_hourly_forecast_list %}
+ {% include "weather/panes/hourly_forecast_row.html" with hourly_forecast_interval=hourly_forecast_interval %}
+ {% empty %}
+ <tr><td colspan="99"><div class="alert alert-info">No forecast hourly data available.</div></td></tr>
+ {% endfor %}
+ </tbody>
</table>
</div>
</div>
diff --git a/src/hi/apps/weather/templates/weather/modals/history.html b/src/hi/apps/weather/templates/weather/modals/history.html
index 63735210..341c8d26 100644
--- a/src/hi/apps/weather/templates/weather/modals/history.html
+++ b/src/hi/apps/weather/templates/weather/modals/history.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% block modal_dialog_class %}hi-modal-dialog-800{% endblock %}
diff --git a/src/hi/apps/weather/templates/weather/panes/weather_overview.html b/src/hi/apps/weather/templates/weather/panes/weather_overview.html
index bc5a73ec..e6056b38 100644
--- a/src/hi/apps/weather/templates/weather/panes/weather_overview.html
+++ b/src/hi/apps/weather/templates/weather/panes/weather_overview.html
@@ -1,3 +1,4 @@
+{% load icons %}
<div id="{{ DIVID.WEATHER_OVERVIEW }}">
<a class="clickable-card" href="{% url 'weather_current_conditions_details' %}" data-async="modal">
{% include "weather/panes/conditions.html" with conditions=weather_overview_data.current_conditions_data weather_stats=weather_overview_data.todays_weather_stats %}
@@ -9,8 +10,12 @@
</div>
<div class="d-flex justify-content-around my-2">
<div><a role="button" href="{% url 'weather_forecast' %}"
- class="btn btn-sm btn-outline-primary" data-async="modal">FORECAST</a></div>
+ class="btn btn-sm btn-outline-primary" data-async="modal">
+ {% icon "forecast" size="sm" css_class="hi-icon-left" %}FORECAST
+ </a></div>
<div><a role="button" href="{% url 'weather_history' %}"
- class="btn btn-sm btn-outline-primary" data-async="modal">HISTORY</a></div>
+ class="btn btn-sm btn-outline-primary" data-async="modal">
+ {% icon "history" size="sm" css_class="hi-icon-left" %}HISTORY
+ </a></div>
</div>
</div>
diff --git a/src/hi/apps/weather/weather_source_manager.py b/src/hi/apps/weather/weather_source_manager.py
index 9247bc97..88387291 100644
--- a/src/hi/apps/weather/weather_source_manager.py
+++ b/src/hi/apps/weather/weather_source_manager.py
@@ -12,6 +12,6 @@ class WeatherSourceManager( Singleton, AggregateHealthProvider ):
def get_provider_info(cls) -> ProviderInfo:
return ProviderInfo(
provider_id = 'hi.apps.weather.weather_sources',
- provider_name = 'Weather API Monitor',
+ provider_name = 'Weather API Manager',
description = '',
)
diff --git a/src/hi/integrations/templates/integrations/modals/integration_disable.html b/src/hi/integrations/templates/integrations/modals/integration_disable.html
index 29e58049..8f1caf87 100644
--- a/src/hi/integrations/templates/integrations/modals/integration_disable.html
+++ b/src/hi/integrations/templates/integrations/modals/integration_disable.html
@@ -1,5 +1,7 @@
{% extends "modals/action_with_cancel.html" %}
+{% block header_class %}bg-secondary{% endblock %}
+
{% block preamble %}
<form action="{% url 'integrations_disable' integration_id=integration_data.integration_id %}"
method="post" enctype="multipart/form-data"
@@ -17,8 +19,8 @@
{% endblock %}
{% block action_right %}
- <button id="hi-integration-disable" type="submit" class="btn btn-lg btn-warning"
- name="action" value="enable">
+ <button id="hi-integration-disable" type="submit" class="btn btn-warning"
+ name="action" value="enable">
DISABLE
</button>
{% endblock %}
diff --git a/src/hi/integrations/templates/integrations/modals/integrations_select.html b/src/hi/integrations/templates/integrations/modals/integrations_select.html
index c44e8c75..76fa5e80 100644
--- a/src/hi/integrations/templates/integrations/modals/integrations_select.html
+++ b/src/hi/integrations/templates/integrations/modals/integrations_select.html
@@ -1,4 +1,7 @@
{% extends "modals/action_done.html" %}
+{% load icons %}
+
+{% block modal_dialog_class %}hi-modal-dialog-600{% endblock %}
{% block title_text %}
Select Integrations
@@ -13,20 +16,28 @@ Select Integrations
</div>
<div class="col-3">
{% if integration_data.integration.is_enabled %}
- <span class="text-success">ENABLED</span>
+ <span class="text-weight-bold text-primary">
+ {% icon "save" size="sm" css_class="hi-icon-left" %}ENABLED
+ </span>
{% else %}
- <span class="text-danger">DISABLED</span>
+ <span class="text-secondary">
+ {% icon "eye-off" size="sm" css_class="hi-icon-left" %}DISABLED
+ </span>
{% endif %}
</div>
<div class="col-3">
{% if integration_data.integration.is_enabled %}
<a href="{% url 'integrations_disable' integration_id=integration_data.integration.integration_id %}"
- role="button" class="btn btn-danger btn-control" data-async="modal">DISABLE</a>
+ role="button" class="btn btn-secondary btn-control" data-async="modal">
+ {% icon "eye-off" size="sm" css_class="hi-icon-left" %}DISABLE
+ </a>
{% else %}
<a href="{% url 'integrations_enable' integration_id=integration_data.integration.integration_id %}"
- class="btn btn-primary btn-control" role="button" data-async="modal">ENABLE</a>
+ class="btn btn-primary btn-control" role="button" data-async="modal">
+ {% icon "eye" size="sm" css_class="hi-icon-left" %}ENABLE
+ </a>
{% endif %}
</div>
</div>
diff --git a/src/hi/integrations/templates/integrations/pages/integration_manage.html b/src/hi/integrations/templates/integrations/pages/integration_manage.html
index 5b3ba35e..8210ee74 100644
--- a/src/hi/integrations/templates/integrations/pages/integration_manage.html
+++ b/src/hi/integrations/templates/integrations/pages/integration_manage.html
@@ -9,7 +9,7 @@
<a class="btn btn-sm btn-outline-secondary w-100" role="button"
href="{% url 'integrations_select' %}"
data-async="modal">
- <i class="fas fa-cog mr-1"></i>Manage
+ {% icon "settings" size="sm" css_class="hi-icon-left" %}Manage
</a>
</div>
{% for integration_data in core.integration_data_list %}
diff --git a/src/hi/integrations/templates/integrations/panes/integration_edit_content_body.html b/src/hi/integrations/templates/integrations/panes/integration_edit_content_body.html
index fa247636..88703c0b 100644
--- a/src/hi/integrations/templates/integrations/panes/integration_edit_content_body.html
+++ b/src/hi/integrations/templates/integrations/panes/integration_edit_content_body.html
@@ -7,7 +7,7 @@
{% block additional_actions %}
{% if show_modal_cancel %}
<a id="hi-modal-cancel" role="button" {% if autofocus %}autofocus="autofocus"{% endif %}
- class="btn btn-tertiary" href="#" data-dismiss="modal">
+ class="btn btn-outline-tertiary" href="#" data-dismiss="modal">
{% icon "cancel" size="sm" css_class="hi-icon-left" %}CANCEL
</a>
{% endif %}
diff --git a/src/hi/services/hass/templates/hass/panes/hass_manage.html b/src/hi/services/hass/templates/hass/panes/hass_manage.html
index 755338ee..685ae368 100644
--- a/src/hi/services/hass/templates/hass/panes/hass_manage.html
+++ b/src/hi/services/hass/templates/hass/panes/hass_manage.html
@@ -1,4 +1,5 @@
{% load static %}
+{% load icons %}
<div class="d-flex justify-content-between">
<div class="h3 integration-title">
<img class="img-fluid"
@@ -13,9 +14,9 @@
<button type="submit" class="btn btn-outline-secondary" role="button"
name="action" value="sync" >
{% if has_entities %}
- RE-SYNC
+ {% icon "sync" size="sm" css_class="hi-icon-left" %}RE-SYNC
{% else %}
- IMPORT
+ {% icon "upload" size="sm" css_class="hi-icon-left" %}IMPORT
{% endif %}
</button>
</form>
diff --git a/src/hi/services/zoneminder/templates/zoneminder/panes/zm_manage.html b/src/hi/services/zoneminder/templates/zoneminder/panes/zm_manage.html
index c8b1a0ab..47a7b8cd 100644
--- a/src/hi/services/zoneminder/templates/zoneminder/panes/zm_manage.html
+++ b/src/hi/services/zoneminder/templates/zoneminder/panes/zm_manage.html
@@ -1,4 +1,6 @@
{% load static %}
+{% load icons %}
+
<div class="d-flex justify-content-between">
<div class="h3 integration-title">
<img class="img-fluid"
@@ -13,9 +15,9 @@
<button type="submit" class="btn btn btn-outline-secondary" role="button"
name="action" value="sync" >
{% if has_entities %}
- RE-SYNC
+ {% icon "sync" size="sm" css_class="hi-icon-left" %}RE-SYNC
{% else %}
- IMPORT
+ {% icon "upload" size="sm" css_class="hi-icon-left" %}IMPORT
{% endif %}
</button>
</form>
diff --git a/src/hi/simulator/templates/simulator/modals/sim_entity_add.html b/src/hi/simulator/templates/simulator/modals/sim_entity_add.html
index e6680612..ac474e55 100644
--- a/src/hi/simulator/templates/simulator/modals/sim_entity_add.html
+++ b/src/hi/simulator/templates/simulator/modals/sim_entity_add.html
@@ -18,7 +18,7 @@ Add {{ simulator.label }} Entity
{% endblock %}
{% block action_right %}
-<button id="hi-simulator-entity-add-submit" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-simulator-entity-add-submit" type="submit" class="btn btn-primary"
name="action" value="add">
ADD
</button>
diff --git a/src/hi/simulator/templates/simulator/modals/sim_entity_delete.html b/src/hi/simulator/templates/simulator/modals/sim_entity_delete.html
index 73575d29..e2d0997c 100644
--- a/src/hi/simulator/templates/simulator/modals/sim_entity_delete.html
+++ b/src/hi/simulator/templates/simulator/modals/sim_entity_delete.html
@@ -20,8 +20,8 @@ Delete {{ sim_entity.name }}?
{% endblock %}
{% block action_right %}
-<button id="hi-simulator-entity-delete-submit" type="submit" class="btn btn-lg btn-danger"
- name="action" value="delete">
+<button id="hi-simulator-entity-delete-submit" type="submit" class="btn btn-danger"
+ name="action" value="delete">
DELETE
</button>
{% endblock %}
diff --git a/src/hi/simulator/templates/simulator/modals/sim_entity_edit.html b/src/hi/simulator/templates/simulator/modals/sim_entity_edit.html
index 3d6add1c..e0d53dc0 100644
--- a/src/hi/simulator/templates/simulator/modals/sim_entity_edit.html
+++ b/src/hi/simulator/templates/simulator/modals/sim_entity_edit.html
@@ -18,7 +18,7 @@ Edit Entity
{% endblock %}
{% block action_right %}
-<button id="hi-simulator-entity-edit-submit" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-simulator-entity-edit-submit" type="submit" class="btn btn-primary"
name="action" value="edit">
{% icon "save" size="sm" css_class="hi-icon-left" %}UPDATE
</button>
diff --git a/src/hi/simulator/templates/simulator/modals/sim_profile_create.html b/src/hi/simulator/templates/simulator/modals/sim_profile_create.html
index 76a85534..ec2d41d9 100644
--- a/src/hi/simulator/templates/simulator/modals/sim_profile_create.html
+++ b/src/hi/simulator/templates/simulator/modals/sim_profile_create.html
@@ -16,7 +16,7 @@ Create Simulator Profile
{% endblock %}
{% block action_right %}
-<button id="hi-simulator-profile-create-submit" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-simulator-profile-create-submit" type="submit" class="btn btn-primary"
name="action" value="create">
{% icon "plus" size="sm" css_class="hi-icon-left" %}CREATE
</button>
diff --git a/src/hi/simulator/templates/simulator/modals/sim_profile_delete.html b/src/hi/simulator/templates/simulator/modals/sim_profile_delete.html
index 548d9112..7d9b9d3f 100644
--- a/src/hi/simulator/templates/simulator/modals/sim_profile_delete.html
+++ b/src/hi/simulator/templates/simulator/modals/sim_profile_delete.html
@@ -20,8 +20,8 @@ Delete Simulation Profile?
{% endblock %}
{% block action_right %}
-<button id="hi-simulator-profile-delete-submit" type="submit" class="btn btn-lg btn-danger"
- name="action" value="delete">
+<button id="hi-simulator-profile-delete-submit" type="submit" class="btn btn-danger"
+ name="action" value="delete">
DELETE
</button>
{% endblock %}
diff --git a/src/hi/simulator/templates/simulator/modals/sim_profile_edit.html b/src/hi/simulator/templates/simulator/modals/sim_profile_edit.html
index 2806e202..4b7609f9 100644
--- a/src/hi/simulator/templates/simulator/modals/sim_profile_edit.html
+++ b/src/hi/simulator/templates/simulator/modals/sim_profile_edit.html
@@ -16,7 +16,7 @@ Edit Simulator Profile
{% endblock %}
{% block action_right %}
-<button id="hi-simulator-profile-edit-submit" type="submit" class="btn btn-lg btn-primary"
+<button id="hi-simulator-profile-edit-submit" type="submit" class="btn btn-primary"
name="action" value="edit">
{% icon "save" size="sm" css_class="hi-icon-left" %}UPDATE
</button>
diff --git a/src/hi/static/css/main.css b/src/hi/static/css/main.css
index 9699d1bb..7756b91b 100644
--- a/src/hi/static/css/main.css
+++ b/src/hi/static/css/main.css
@@ -26,7 +26,7 @@
--muted-color: #7e7e81;
--on-muted-color: #ffffff;
--line-color: #cccccc;
- /* Restore original edit variables */
+
--edit-primary-bg-color: #dffeff;
--edit-secondary-bg-color: #ffd0c3;
--edit-tertiary-bg-color: #f0f0f0;
@@ -305,6 +305,23 @@ a.clickable-card:active {
box-shadow: 0 0 0 0.2rem rgba(244, 95, 54, 0.25) !important;
}
+.btn-outline-tertiary {
+ color: var(--tertiary-color) !important;
+ border-color: var(--tertiary-highlight-color) !important;
+ background-color: var(--muted-bg-light) !important;
+}
+.btn-outline-tertiary:hover,
+.btn-outline-tertiary:focus,
+.btn-outline-tertiary:active,
+.btn-outline-tertiary.active {
+ color: var(--on-tertiary-color) !important;
+ background-color: var(--tertiary-color) !important;
+ border-color: var(--tertiary-highlight-color) !important;
+}
+.btn-outline-tertiary:focus {
+ box-shadow: 0 0 0 0.2rem rgba(244, 95, 54, 0.25) !important;
+}
+
.btn-outline-danger {
color: var(--error-color) !important;
border-color: var(--error-color) !important;
diff --git a/src/hi/templates/icons/audio-disabled.html b/src/hi/templates/icons/audio-disabled.html
new file mode 100644
index 00000000..402a0dc0
--- /dev/null
+++ b/src/hi/templates/icons/audio-disabled.html
@@ -0,0 +1,4 @@
+<svg class="{{ class_attr }}" viewBox="0 0 24 24" fill="currentColor" {{ accessibility_attrs }}>
+ <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"/>
+ <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" transform="translate(6,0) scale(0.6)"/>
+</svg>
\ No newline at end of file
diff --git a/src/hi/templates/icons/audio-enabled.html b/src/hi/templates/icons/audio-enabled.html
new file mode 100644
index 00000000..83d541b1
--- /dev/null
+++ b/src/hi/templates/icons/audio-enabled.html
@@ -0,0 +1,3 @@
+<svg class="{{ class_attr }}" viewBox="0 0 24 24" fill="currentColor" {{ accessibility_attrs }}>
+ <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>
+</svg>
\ No newline at end of file
diff --git a/src/hi/templates/icons/disabled.html b/src/hi/templates/icons/disabled.html
new file mode 100644
index 00000000..d77afe52
--- /dev/null
+++ b/src/hi/templates/icons/disabled.html
@@ -0,0 +1,3 @@
+<svg class="{{ class_attr }}" viewBox="0 0 24 24" fill="currentColor" {{ accessibility_attrs }}>
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z"/>
+</svg>
\ No newline at end of file
diff --git a/src/hi/templates/icons/forecast.html b/src/hi/templates/icons/forecast.html
new file mode 100644
index 00000000..3edceb6f
--- /dev/null
+++ b/src/hi/templates/icons/forecast.html
@@ -0,0 +1,4 @@
+<svg class="{{ class_attr }}" viewBox="0 0 24 24" fill="currentColor" {{ accessibility_attrs }}>
+ <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"/>
+ <path d="M14 16l2 2 4-4-1.41-1.41L16 15.17l-.59-.58L14 16z"/>
+</svg>
\ No newline at end of file
diff --git a/src/hi/templates/icons/sleep.html b/src/hi/templates/icons/sleep.html
new file mode 100644
index 00000000..94c552ac
--- /dev/null
+++ b/src/hi/templates/icons/sleep.html
@@ -0,0 +1,3 @@
+<svg class="{{ class_attr }}" viewBox="0 0 24 24" fill="currentColor" {{ accessibility_attrs }}>
+ <path d="M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09M21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11M18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z"/>
+</svg>
\ No newline at end of file
diff --git a/src/hi/templates/icons/unlock.html b/src/hi/templates/icons/unlock.html
new file mode 100644
index 00000000..c709687b
--- /dev/null
+++ b/src/hi/templates/icons/unlock.html
@@ -0,0 +1,3 @@
+<svg class="{{ class_attr }}" viewBox="0 0 24 24" fill="currentColor" {{ accessibility_attrs }}>
+ <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2z"/>
+</svg>
\ No newline at end of file
diff --git a/src/hi/templates/modals/action_2_with_cancel.html b/src/hi/templates/modals/action_2_with_cancel.html
index 421297f7..c87837c9 100644
--- a/src/hi/templates/modals/action_2_with_cancel.html
+++ b/src/hi/templates/modals/action_2_with_cancel.html
@@ -2,5 +2,5 @@
{% block action_left %}
<a id="hi-modal-cancel" role="button" {% if autofocus %}autofocus="autofocus"{% endif %}
- class="btn btn-tertiary" href="#" data-dismiss="modal">CANCEL</a>
+ class="btn btn-outline-tertiary" href="#" data-dismiss="modal">CANCEL</a>
{% endblock %}
diff --git a/src/hi/templates/modals/action_done.html b/src/hi/templates/modals/action_done.html
index 484b0798..664744af 100644
--- a/src/hi/templates/modals/action_done.html
+++ b/src/hi/templates/modals/action_done.html
@@ -2,5 +2,5 @@
{% block action_center %}
<a id="hi-modal-done" role="button" {% if autofocus %}autofocus="autofocus"{% endif %}
- class="btn btn-secondary" href="#" data-dismiss="modal">DONE</a>
+ class="btn btn-primary" href="#" data-dismiss="modal">DONE</a>
{% endblock %}
diff --git a/src/hi/templates/modals/action_ok.html b/src/hi/templates/modals/action_ok.html
index 6fae226d..69f18905 100644
--- a/src/hi/templates/modals/action_ok.html
+++ b/src/hi/templates/modals/action_ok.html
@@ -2,5 +2,5 @@
{% block action_center %}
<a id="hi-modal-ok" role="button" {% if autofocus %}autofocus="autofocus"{% endif %}
- class="btn btn-secondary" href="#" data-dismiss="modal">OK</a>
+ class="btn btn-primary" href="#" data-dismiss="modal">OK</a>
{% endblock %}
diff --git a/src/hi/templates/modals/action_refresh.html b/src/hi/templates/modals/action_refresh.html
index bf3e3f23..bf2d9dbe 100644
--- a/src/hi/templates/modals/action_refresh.html
+++ b/src/hi/templates/modals/action_refresh.html
@@ -2,5 +2,5 @@
{% block action_center %}
<a id="hi-modal-refresh" role="button" {% if autofocus %}autofocus="autofocus"{% endif %}
- class="btn btn-secondary" href="#" data-dismiss="modal" onclick="window.location.reload()">OK</a>
+ class="btn btn-primary" href="#" data-dismiss="modal" onclick="window.location.reload()">OK</a>
{% endblock %}
diff --git a/src/hi/templates/modals/action_with_cancel.html b/src/hi/templates/modals/action_with_cancel.html
index 0eb5f81f..8d56345d 100644
--- a/src/hi/templates/modals/action_with_cancel.html
+++ b/src/hi/templates/modals/action_with_cancel.html
@@ -3,7 +3,7 @@
{% block action_left %}
<a id="hi-modal-cancel" role="button" {% if autofocus %}autofocus="autofocus"{% endif %}
- class="btn btn-tertiary" href="#" data-dismiss="modal">
+ class="btn btn-outline-tertiary" href="#" data-dismiss="modal">
{% icon "cancel" size="sm" css_class="hi-icon-left" %}CANCEL
</a>
{% endblock %}
diff --git a/src/hi/templates/panes/bottom_buttons.html b/src/hi/templates/panes/bottom_buttons.html
index 3312b887..a1929eae 100644
--- a/src/hi/templates/panes/bottom_buttons.html
+++ b/src/hi/templates/panes/bottom_buttons.html
@@ -1,3 +1,4 @@
+{% load icons %}
<div class="p-1">
<div class="d-flex justify-content-between">
{% include "collection/panes/collection_buttons.html" %}
@@ -7,7 +8,7 @@
<a href="{% url 'profiles_edit_reference_help' %}"
class="btn btn-tertiary btn-control" role="button"
data-async="true" >
- EDIT HELP
+ {% icon "question-circle" size="sm" css_class="hi-icon-left" %}EDIT HELP
</a>
</div>
{% else %}
@@ -24,7 +25,7 @@
<a href="{% url 'config_home' %}"
class="btn btn-tertiary btn-control" role="button"
data-async="true" >
- CONFIGURE
+ {% icon "settings" size="sm" css_class="hi-icon-left" %}CONFIGURE
</a>
</div>
{% endif %}
diff --git a/src/hi/templates/panes/top_buttons.html b/src/hi/templates/panes/top_buttons.html
index c0c1277a..489da8ec 100644
--- a/src/hi/templates/panes/top_buttons.html
+++ b/src/hi/templates/panes/top_buttons.html
@@ -32,12 +32,12 @@
{% if request.view_parameters.is_editing %}
<a href="{% url 'edit_end' %}"
class="btn btn-tertiary btn-control" role="button" >
- EXIT EDIT
+ {% icon "close" size="sm" css_class="hi-icon-left" %}EXIT EDIT
</a>
{% else %}
<a href="{% url 'edit_start' %}"
class="btn btn-tertiary btn-control" role="button" >
- EDIT
+ {% icon "edit" size="sm" css_class="hi-icon-left" %}EDIT
</a>
{% endif %}
</div>
diff --git a/src/hi/testing/templates/testing/ui/modals/email_preview.html b/src/hi/testing/templates/testing/ui/modals/email_preview.html
index 30841491..463c7681 100644
--- a/src/hi/testing/templates/testing/ui/modals/email_preview.html
+++ b/src/hi/testing/templates/testing/ui/modals/email_preview.html
@@ -1,4 +1,4 @@
-{% extends "modals/action_ok.html" %}
+{% extends "modals/action_done.html" %}
{% block title_text %}
Email: {{ view_name }}
@@ -19,7 +19,7 @@ Email: {{ view_name }}
{% autoescape off %}
<iframe srcdoc="{{ body_html|safe }}"
- style="width: 100%; height: 50vh; border: 1px solid #ccc;"
+ style="width: 100%; height: 50vh; border: 1px solid #ccc;"
sandbox="allow-same-origin allow-scripts">
</iframe>
{% endautoescape %}