15 lines
642 B
HTML
15 lines
642 B
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="auth-card glassmorphism" style="max-width: 600px;">
|
|
<h2>{% if object %}Edit Item{% else %}Add New Item{% endif %}</h2>
|
|
<form method="post" enctype="multipart/form-data" class="auth-form" style="margin-top: 1.5rem;">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
|
|
<div style="display: flex; gap: 1rem; margin-top: 2rem;">
|
|
<button type="submit" class="btn-primary" style="margin-top: 0;">Save Item</button>
|
|
<a href="{% url 'item_list' %}" class="btn-secondary" style="margin-top: 0;">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %} |