Skip to content

Commit

Permalink
[#2375] Allow extra html in autoforms
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 16, 2012
1 parent 36bd991 commit 35f9b0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckan/templates/macros/autoform.html
Expand Up @@ -45,6 +45,12 @@
{% call form.select(name, id=id, label=label, options=item.options, selected=value, error=error) %}
{% if item.extra_info %}{{ form.info(item.extra_info) }}{% endif %}
{% endcall %}
{% elif control == 'html' %}
<div class="control-group control-medium">
<div class="controls">
{{ item.html }}
</div>
</div>
{% else %}
{% call form[control](name, id=id, label=label, placeholder=placeholder, value=value, error=error, classes=classes) %}
{% if item.extra_info %}{{ form.info(item.extra_info) }}{% endif %}
Expand Down

0 comments on commit 35f9b0e

Please sign in to comment.