Files
yaris-obd/server/templates/app_upload.html

36 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html data-bs-theme="light" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Publish APK — Yaris OBD</title>
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='yaris.css') }}">
</head>
<body class="bg-light d-flex align-items-center justify-content-center" style="min-height:100vh;">
<div class="card shadow-sm p-4" style="width:100%;max-width:480px;">
<div class="text-center mb-3">
<span class="sidebar-brand-logo" style="color:#1c1c1e;">YARIS-OBD</span>
<div class="badge bg-warning text-dark mt-1">Remote server</div>
</div>
<h5 class="fw-bold mb-1">Publish Android APK</h5>
<p class="text-muted small">
Upload a new build. The Pi mirrors it to the car hotspot on its next
update check, so the phone can install from <code>http://10.42.0.1/app</code>.
</p>
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<div class="mb-3">
<label for="version" class="form-label small fw-semibold">Version</label>
<input type="text" class="form-control" id="version" name="version" placeholder="0.1.0" required>
</div>
<div class="mb-3">
<label for="file" class="form-label small fw-semibold">APK file</label>
<input type="file" class="form-control" id="file" name="file" accept=".apk,application/vnd.android.package-archive" required>
</div>
<button type="submit" class="btn btn-primary w-100">Upload</button>
</form>
</div>
</body>
</html>