Skip to content

Commit

Permalink
Merge pull request #1595 from hwaring/master
Browse files Browse the repository at this point in the history
Fix documentation for form.select in macro/form.html
  • Loading branch information
joetsoi committed May 5, 2014
2 parents 84da02f + 8c5ec7f commit 7742c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/macros/form.html
Expand Up @@ -79,7 +79,7 @@
Examples:

{% import 'macros/form.html' as form %}
{{ form.select('year', label=_('Year'), options={2010: 2010, 2011: 2011}, selected=2011, error=errors.year) }}
{{ form.select('year', label=_('Year'), options=[{'name':2010, 'value': 2010},{'name': 2011, 'value': 2011}], selected=2011, error=errors.year) }}

#}
{% macro select(name, id='', label='', options='', selected='', error='', classes=[], attrs={}, is_required=false) %}
Expand Down

0 comments on commit 7742c38

Please sign in to comment.