35 lines
1.8 KiB
Django/Jinja
35 lines
1.8 KiB
Django/Jinja
{% extends 'base.html.j2' %}
|
|
{% block title %}Create New Product | Sigl{% endblock %}
|
|
{% block header %}
|
|
<div class="flex flex-col justify-start items-start sm:flex-row sm:justify-between sm:items-center sm:py-1">
|
|
<div class="text-sm w-full text-gray-800 py-1 border-b sm:border-none">Create New Product</span></span></div>
|
|
</div>
|
|
{% endblock %}
|
|
{% block main %}
|
|
<form method="post">
|
|
<div class="py-2 px-4 flex flex-col">
|
|
<div class="flex flex-col pb-4">
|
|
<label for="name" class="py-1 text-xs text-gray-700 font-semibold">Product Name:</label>
|
|
<input type="text" name="name" id="name" class="p-1 text-sm border border-gray-200 rounded" />
|
|
</div>
|
|
<div class="flex flex-col pb-4">
|
|
<label for="category" class="py-1 text-xs text-gray-700 font-semibold">Product Category:</label>
|
|
<input type="text" name="category" id="category" class="p-1 text-sm border border-gray-200 rounded" />
|
|
</div>
|
|
<div class="flex flex-col pb-4">
|
|
<label for="notes" class="py-1 text-xs text-gray-700 font-semibold">Notes:</label>
|
|
<textarea name="notes" id="notes" class="p-1 text-sm border border-gray-200 rounded"></textarea>
|
|
</div>
|
|
<div class="flex items-center justify-between w-full">
|
|
<div class="flex justify-start items-start">
|
|
<a href="{{ url_for('products.home') }}" class="px-2 py-1 text-sm text-white bg-gray-600 hover:bg-gray-700 border rounded flex justify-between items-center">
|
|
Cancel
|
|
</a>
|
|
</div>
|
|
<div class="flex justify-end">
|
|
<button type="submit" class="px-2 py-1 border rounded text-sm text-white bg-blue-600 hover:bg-blue-700">Create</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock %} |