Skip to content

Commit

Permalink
[#2695] Add select2 to all resource select boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jul 24, 2012
1 parent dd4a78a commit 0c723f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/package/snippets/package_basic_fields.html
Expand Up @@ -18,8 +18,8 @@
{% set error = errors.license_id %}
<label class="control-label" for="field-license">{{ _("License") }}</label>
<div class="controls">
<select id="field-license" name="license_id">
{% for licence_desc, licence_id in licences if licence_desc %}
<select id="field-license" name="license_id" data-module="autocomplete">
{% for licence_desc, licence_id in licences|sort if licence_desc %}
<option value="{{ licence_id }}" {% if data.get('license_id', '') == licence_id %}selected="selected"{% endif %}>{{ licence_desc }}</option>
{% endfor %}
</select>
Expand Down
Expand Up @@ -6,7 +6,7 @@
{% set groups = h.dict_list_reduce(data.groups, 'id') %}
<label for="field-groups" class="control-label">{{ _('Add to Groups') }}</label>
<div class="controls">
<select id="field-groups" name="groups__{{ groups | count }}__id">
<select id="field-groups" name="groups__{{ groups | count }}__id" data-module="autocomplete">
<option value="">{{ _('Select a group...') }}</option>
{% for group in groups_available %}
<option value="{{ group.id }}" {% if group.id in groups %}selected="selected"{% endif %}>{{ group.name }}</option>
Expand Down

0 comments on commit 0c723f7

Please sign in to comment.