fix: odometer sync is Pi→Server only — portal displays read-only value from DB

This commit is contained in:
Mathieu Moran
2026-08-11 22:14:46 -04:00
parent 7de8948e08
commit d35cea367f
4 changed files with 29 additions and 16 deletions
+2 -2
View File
@@ -104,8 +104,8 @@
</div>
<div class="col-12 col-md-6">
<label class="form-label" for="odometer_baseline">Odometer baseline (km)</label>
<input class="form-control" id="odometer_baseline" name="odometer_baseline" type="number" inputmode="decimal" min="0" max="999999" step="0.1" disabled>
<div class="form-text">Enter the car's current odometer reading. The app adds trip distances to this baseline. Synced to the Pi on next config sync.</div>
<input class="form-control text-muted" id="odometer_baseline" name="odometer_baseline" type="number" inputmode="decimal" min="0" max="999999" step="0.1" readonly>
<div class="form-text">Synced from the Pi — cannot be edited here. The Pi adds trip distances to this baseline.</div>
</div>
</div>
</form>