17 lines
632 B
HTML
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 %}
|