2022-04-24 18:59:04 +02:00
|
|
|
{% extends "common/base.html" %}
|
2022-04-25 18:37:26 +02:00
|
|
|
{% load crispy_forms_tags purchase %}
|
2022-04-24 18:59:04 +02:00
|
|
|
{% block content %}
|
|
|
|
{% if object %}
|
|
|
|
<h1>{{ object }}</h1>
|
2022-04-25 18:59:32 +02:00
|
|
|
<p>{{ object.created_at }}</p>
|
2022-04-24 18:59:04 +02:00
|
|
|
{% else %}
|
|
|
|
<h1>New basket</h1>
|
|
|
|
{% endif %}
|
|
|
|
{% crispy form %}
|
|
|
|
{% if object %}
|
|
|
|
<div>
|
2022-04-25 18:37:26 +02:00
|
|
|
Price: {{ object.price|currency }}
|
2022-04-24 18:59:04 +02:00
|
|
|
</div>
|
|
|
|
<a href="{% url "purchase:new" %}" class="btn btn-secondary">New</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|