mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-05-18 17:42:53 +02:00
21 lines
616 B
HTML
21 lines
616 B
HTML
{% extends "common/base.html" %}
|
|
{% load crispy_forms_tags purchase %}
|
|
{% block content %}
|
|
{% if object %}
|
|
{% if not object.payment_method %}
|
|
<div class="alert alert-warning" role="alert">Missing payment method.</div>
|
|
{% endif %}
|
|
<h1>{{ object }}</h1>
|
|
<p>{{ object.created_at }}</p>
|
|
{% else %}
|
|
<h1>New basket</h1>
|
|
{% endif %}
|
|
{% crispy form %}
|
|
{% if object %}
|
|
<div>
|
|
Price: {{ object.price|currency }}
|
|
</div>
|
|
<a href="{% url "purchase:new" %}" class="btn btn-secondary">New</a>
|
|
{% endif %}
|
|
{% endblock %}
|