[Django 1.11] Port AddOnVariationField

This commit is contained in:
Raphael Michel
2017-05-25 17:12:34 +02:00
parent 0f2875e89a
commit 8694e1901a
2 changed files with 30 additions and 45 deletions

View File

@@ -0,0 +1,3 @@
{% load rich_text %}
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>{% include "django/forms/widgets/input.html" %} {{ widget.label }}</label> {% if widget.attrs.description %}<span class="fa fa-info-circle toggle-variation-description"></span>
<div class="variation-description addon-variation-description">{{ widget.attrs.description|rich_text }}</div>{% endif %}