Reformat product list template

This commit is contained in:
Mark Veidemanis 2022-07-21 13:48:04 +01:00
parent c830b69185
commit 1ff603faba
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 7 additions and 7 deletions

View File

@ -2,23 +2,23 @@
{% for plan in plans %} {% for plan in plans %}
{% if plan not in user_plans %} {% if plan not in user_plans %}
<a href="order?product={{ plan.name }}"> <a href="order?product={{ plan.name }}">
{% endif %} {% endif %}
<div class="product"> <div class="product">
<img src="{% static plan.image %}" alt="Data image"/> <img src="{% static plan.image %}" alt="Data image"/>
<div class="description"> <div class="description">
<h3>{{ plan.description }}</h3> <h3>{{ plan.description }}</h3>
<h5>£{{ plan.cost }}</h5> <h5>£{{ plan.cost }}</h5>
{% if plan in user_plans %} {% if plan in user_plans %}
<h5> (purchased) </h5> <h5> (purchased) </h5>
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% if plan not in user_plans %} {% if plan not in user_plans %}
</a> </a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<script type="text/javascript"> <script type="text/javascript">