Move charge logging to bulk panel, remove per-row button
This commit is contained in:
@@ -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,15 +271,7 @@
|
||||
<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">✓ Charged</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% if b.is_available() %}
|
||||
{% 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;">
|
||||
<option value="">— assign —</option>
|
||||
|
||||
Reference in New Issue
Block a user