Skip to content

Commit

Permalink
#310 changed 'optional' suffix rendering condition for disabled=False
Browse files Browse the repository at this point in the history
  • Loading branch information
d.choban committed Sep 10, 2018
1 parent 16fcd1b commit abc5ba0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
Always reference the ticket number at the end of the issue description.


## Pending

### Fixed

- field_label: changed 'optional' suffix rendering condition for disabled=False [#310][310]

[310]: //github.com/sanoma/django-arctic/issues/310


## 1.3.2 (2018-07-24)

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{# This template makes it easier to overwrite all the labels for the different form types #}
{{ field.label|safe }}
{% if field.field.widget|typename != 'CheckboxInput' and field.field.widget|typename != 'RadioSelect' %}
{% if not field.field.required %}
{% if not field.field.required and not field.field.disabled %}
<i class="optional-field-text">({% trans 'optional' %})</i>
{% endif %}
{% endif %}
Expand Down

0 comments on commit abc5ba0

Please sign in to comment.