inital checkin
This commit is contained in:
15
templates/raffle/item_form.html
Normal file
15
templates/raffle/item_form.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user