Move charge logging to bulk panel, remove per-row button

This commit is contained in:
2026-04-15 03:42:11 -05:00
parent 4b534db605
commit 75d0e05f59
+1 -9
View File
@@ -185,7 +185,7 @@
onclick="confirmInstallDevice(this)">Install in device</button>
</span>
<span style="display:flex;gap:0.35rem;align-items:center;flex-wrap:wrap;">
<input type="date" name="charged_date" id="bulk-charged-date"
<input type="date" name="charged_date" id="bulk-charged-date" value="{{ today.isoformat() }}"
style="padding:0.25rem 0.5rem;font-size:0.85rem;border:1px solid #cbd5e1;border-radius:4px;">
<label style="font-size:0.85rem;display:flex;align-items:center;gap:0.25rem;cursor:pointer;">
<input type="checkbox" name="increment_cycles" id="bulk-increment-cycles" value="1" checked>
@@ -271,14 +271,6 @@
<td data-label="Actions" style="white-space:nowrap;">
<a class="btn btn-sm btn-secondary" href="{{ url_for('battery_detail', battery_id=b.id) }}">View</a>
{% if not b.is_retired() %}
<form class="inline" method="post" action="{{ url_for('battery_charge_log_add', battery_id=b.id) }}"
title="Log charge for today">
<input type="hidden" name="charged_date" value="{{ today.isoformat() }}">
<button class="btn btn-sm btn-secondary" type="submit">&#10003; Charged</button>
</form>
{% endif %}
{% if b.is_available() %}
<select id="qas-{{ b.id }}"
style="padding:0.2rem 0.3rem;font-size:0.8rem;border:1px solid #cbd5e1;border-radius:4px;max-width:110px;vertical-align:middle;">