Skip to content

Commit

Permalink
Merge pull request #4754 from sivang/fix-checkbox
Browse files Browse the repository at this point in the history
drop leftover code in checkbox template, fixes #4693
  • Loading branch information
amercader committed Apr 30, 2019
2 parents 42da3ce + b60caf7 commit aa1b7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/macros/form.html
Expand Up @@ -51,7 +51,7 @@
<label class="checkbox" for="{{ id or name }}">
<input id="{{ id or name }}" type="checkbox" name="{{ name }}" value="{{ value | empty_and_escape }}" {{ "checked " if checked }} {{ attributes(attrs) }} />
{{ label or name }}
{% if is_required %}{{ input_required() }}{% endif %}
{% if is_required %}<span title="{{ _("This field is required") }}" class="control-required">*</span> {% endif %}
{% if error and error is iterable %}<strong class="error-inline">{{ error|join(', ') }}</strong>{% endif %}
</label>
{{ extra_html }}
Expand Down

0 comments on commit aa1b7d6

Please sign in to comment.