Fix #1270 -- Provide preview for fonts in display settings

This commit is contained in:
Raphael Michel
2019-05-28 10:07:42 +02:00
parent 363826e294
commit 28a5519881
8 changed files with 23 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
{% load i18n %}{% if widget.wrap_label %}<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %} class="preload-font"
data-family="{{ widget.label }}" data-style="regular">{% endif %}{% include "django/forms/widgets/input.html" %}{% if widget.wrap_label %} <strong>{{ widget.label }}</strong><br>{% trans "The quick brown fox jumps over the lazy dog." context "typography" %}</label>{% endif %}