Show energy cost on dashboard
Build and Deploy / build-and-deploy (push) Successful in 25s

This commit is contained in:
Ketan Patel committed 2026-06-20 10:49:06 -04:00
1 parent c7a0ed93ff
commit 94f7ed8411
10 files changed
+73 -10

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
<title>{% block title %}UPS Dashboard{% endblock %}</title>
<meta name="csrf-token" content="{{ request.cookies.get('csrf_token', '') }}" />
<link rel="stylesheet" href="/static/css/base.css?v=5" />
<link rel="stylesheet" href="/static/css/style.css?v=5" />
<link rel="stylesheet" href="/static/css/style.css?v=6" />
{% block head_extra %}{% endblock %}
</head>
<body>
+1 -1
View File
@@ -61,5 +61,5 @@
</div>
{% endblock %}
{% block scripts %}
<script src="/static/js/dashboard.js?v=6"></script>
<script src="/static/js/dashboard.js?v=7"></script>
{% endblock %}
+2 -2
View File
@@ -47,7 +47,7 @@
</div>
<div class="field-row">
<label class="field-label" for="energy-cost">Energy cost per kWh ($)</label>
<input class="field-input" id="energy-cost" type="number" step="0.001" min="0" name="energy_cost_per_kwh">
<input class="field-input" id="energy-cost" type="number" step="0.0001" min="0" name="energy_cost_per_kwh" inputmode="decimal" placeholder="0.1365">
</div>
<div class="form-bar">
<button type="submit" class="btn btn-primary">Save UI Settings</button>
@@ -116,5 +116,5 @@
</div>
{% endblock %}
{% block scripts %}
<script src="/static/js/settings.js?v=4"></script>
<script src="/static/js/settings.js?v=5"></script>
{% endblock %}