Skip to content

Commit

Permalink
Change default groups list on package new/edit to show title not name
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jul 26, 2012
1 parent 883d8b1 commit 9332f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/package/default_groups_list.html
Expand Up @@ -14,7 +14,7 @@
?>
<div class="checkbox" py:if="'id' in group">
<input type="${'checkbox' if authorized_group else 'hidden'}" name="groups__${num}__id" checked="checked" value="${group['id']}"/>
<label for="groups__${num}__checked">${group.get('name', authorized_group['name'] if authorized_group else '')}</label>
<label for="groups__${num}__checked">${group.get('title', authorized_group['title'] if authorized_group else '')}</label>
<input type="hidden" name="groups__${num}__name" value="${group.get('name', authorized_group['name'] if authorized_group else '')}" />
</div>
</py:for>
Expand All @@ -23,7 +23,7 @@
<select py:if="c.groups_available" id="groups__${len(groups)}__id" name="groups__${len(groups)}__id">
<option selected="selected" value="">(None)</option>
<py:for each="group in c.groups_available">
<option value="${group['id']}" >${group['name']}</option>
<option value="${group['id']}" >${group['title']}</option>
</py:for>
</select>
<em py:if="not c.groups_available">Cannot add any groups.</em>
Expand Down

0 comments on commit 9332f68

Please sign in to comment.