Files
bike_admin/app/templates/bikes/edit.html
T
2026-09-09 17:49:01 +01:00

17 lines
632 B
HTML

{% extends "base.html" %}
{% block title %}Edit bike - bike-admin{% 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 %}