This commit is contained in:
lubiana 2025-05-31 21:43:13 +02:00
parent e958163a4a
commit b8a5a1ff58
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
79 changed files with 15113 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{% extends 'layout.twig' %}
{% import 'components/form.twig' as form %}
{% block title %}Edit Drink Type - {{ parent() }}{% endblock %}
{% block content %}
<div class="row mb-4">
<div class="col">
<h2>Edit Drink Type</h2>
</div>
<div class="col-auto">
<a href="/drink-types" class="btn btn-secondary">
<i class="fas fa-arrow-left"></i> Back to List
</a>
</div>
</div>
<div class="card">
<div class="card-body">
{{ form.errors(error) }}
<form action="/drink-types/{{ drinkType.id }}" method="post">
{{ form.input('name', 'Name', drinkType.name, 'text', true) }}
{{ form.textarea('description', 'Description', drinkType.description, false, 3, 'Enter a description of the drink type') }}
{{ form.input('desired_stock', 'Desired Stock', drinkType.desiredStock, 'number', true, '', 'form-control-sm') }}
<div class="form-group mt-4">
{{ form.submit('Update Drink Type') }}
<a href="/drink-types/{{ drinkType.id }}" class="btn btn-link">Cancel</a>
</div>
</form>
</div>
</div>
{% endblock %}