- User-facing brand "bike-admin" -> "volundr" (page titles, top bar, login header, FastAPI title, README/AGENTS). Directory, remote, BIKE_ADMIN_* env prefix and bike_admin.db filename are unchanged. - Add deploy/: systemd unit (bike-admin.service) and a production .env template (env.production.example).
17 lines
629 B
HTML
17 lines
629 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Edit bike - volundr{% endblock %}
|
|
{% block content %}
|
|
<div class="page-head"><h1>Edit {{ bike.name }}</h1></div>
|
|
<div class="card">
|
|
{% include "components/bike_form.html" with context %}
|
|
</div>
|
|
<div class="danger-zone">
|
|
<h2 class="muted">Danger zone</h2>
|
|
<form method="post" action="/bikes/{{ bike.id }}/delete"
|
|
onsubmit="if(!confirm('Delete this bike and all its events? This cannot be undone.'))return false;">
|
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
|
<button class="btn btn-danger" type="submit">Delete bike</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|