Add variation descriptions and allow to order addons

This commit is contained in:
Raphael Michel
2017-05-02 00:12:22 +02:00
parent 55ce83a642
commit d389e4390f
11 changed files with 174 additions and 18 deletions

View File

@@ -101,7 +101,10 @@
<a href="#" data-toggle="variations">
<strong>{{ item.name }}</strong>
</a>
{% if item.description %}<p>{{ item.description|localize|rich_text }}</p>
{% if item.description %}
<div class="product-description">
{{ item.description|localize|rich_text }}
</div>
{% endif %}
{% if item.min_per_order %}
<p><small>
@@ -134,6 +137,11 @@
<div class="row-fluid product-row variation">
<div class="col-md-8 col-xs-12">
{{ var }}
{% if var.description %}
<div class="variation-description">
{{ var.description|localize|rich_text }}
</div>
{% endif %}
{% if event.settings.show_quota_left %}
{% include "pretixpresale/event/fragment_quota_left.html" with avail=var.cached_availability %}
{% endif %}
@@ -201,7 +209,10 @@
{% endif %}
<strong>{{ item.name }}</strong>
{% if item.description %}
<p class="description">{{ item.description|localize|rich_text }}</p>{% endif %}
<div class="product-description">
{{ item.description|localize|rich_text }}
</div>
{% endif %}
{% if event.settings.show_quota_left %}
{% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %}
{% endif %}

View File

@@ -37,7 +37,10 @@
{% endif %}
<strong>{{ item.name }}</strong>
{% if item.description %}
<p>{{ item.description|localize|rich_text }}</p>{% endif %}
<div class="product-description">
{{ item.description|localize|rich_text }}
</div>
{% endif %}
</div>
<div class="col-md-2 col-xs-6 price">
{% if item.min_price != item.max_price or item.free_price %}
@@ -57,6 +60,11 @@
<div class="row-fluid product-row variation">
<div class="col-md-8 col-xs-12">
{{ var }}
{% if var.description %}
<div class="variation-description">
{{ var.description|localize|rich_text }}
</div>
{% endif %}
</div>
<div class="col-md-2 col-xs-6 price">
{% if item.free_price %}
@@ -116,7 +124,10 @@
{% endif %}
<strong>{{ item.name }}</strong>
{% if item.description %}
<p class="description">{{ item.description|localize|rich_text }}</p>{% endif %}
<div class="product-description">
{{ item.description|localize|rich_text }}
</div>
{% endif %}
</div>
<div class="col-md-2 col-xs-6 price">
{% if item.free_price %}