misc: don't display "Manually enter..." checkbox on disabled widget (#48953)

This commit is contained in:
Frédéric Péters 2020-11-29 11:04:41 +01:00
parent c5d9257bc1
commit fda0fe2080
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
{% load i18n %}
{% include "django/forms/widgets/select.html" %}
{% if not 'disabled' in widget.attrs %}
<div>
<label><input id="manual-address" type="checkbox">{% trans "Manually enter the address" %}</label>
</div>
{% endif %}