flask_eindproject/app/templates/new.html
2025-06-22 19:42:20 +02:00

20 lines
923 B
HTML

{% include 'header.html' %}
<main class="w-full h-screen flex justify-center items-end md:items-center">
<form action="{{ url_for("new") }}" method="POST" class="border-2 border-base-300 w-full md:w-md p-6 m-4 rounded-lg shadow-lg bg-base-100">
{{ form.hidden_tag() }}
<h1 class="text-3xl font-semibold text-center text-info-content mb-4">New wishlist</h1>
<legend class="fieldset-legend">{{ form.title.label.text }}</legend>
{{ form.title(class="w-full input validator mt-1 mb-4", placeholder="Wishlist Title") }}
<legend class="fieldset-legend">{{ form.description.label.text }}</legend>
{{ form.description(class="w-full textarea validator mt-1 mb-2", placeholder="Wishlist Description") }}
<div class="validator-hint">Please make sure that both inputs are filled.</div>
{{ form.submit(class="btn btn-soft w-full") }}
</form>
</main>
{% include 'footer.html' %}