Add dashcam USB file browser
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% from "components.html" import data_table %}
|
||||
|
||||
{% block title %}Dashcam - Yaris OBD{% endblock %}
|
||||
|
||||
@@ -14,6 +15,36 @@
|
||||
<button id="dash-import-btn" class="btn btn-primary" type="button" disabled>Import videos</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header py-3 d-flex flex-wrap align-items-center justify-content-between gap-2">
|
||||
<div>
|
||||
<p class="text-primary m-0 fw-bold">Files on dashcam</p>
|
||||
<small id="dash-file-summary" class="text-muted">Scanning...</small>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<button id="dash-files-refresh-btn" class="btn btn-sm btn-secondary" type="button">
|
||||
<i class="fas fa-sync-alt me-1"></i>Refresh
|
||||
</button>
|
||||
<button id="dash-delete-all-btn" class="btn btn-sm btn-danger" type="button"
|
||||
data-confirm="Permanently delete every video from the dashcam? This cannot be undone." disabled>
|
||||
<i class="fas fa-trash me-1"></i>Delete all
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
{{ data_table(
|
||||
"dashcam-file-list",
|
||||
[
|
||||
{"key": "path", "label": "File", "sortable": true},
|
||||
{"key": "size", "label": "Size", "sortable": true},
|
||||
{"key": "modified", "label": "Modified", "sortable": true},
|
||||
{"key": "actions", "label": "Actions", "sortable": false}
|
||||
],
|
||||
"No videos found",
|
||||
"Connect the dashcam in USB storage mode, then refresh this list."
|
||||
) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header py-3">
|
||||
<p class="text-primary m-0 fw-bold">Import results</p>
|
||||
|
||||
Reference in New Issue
Block a user