Skip to content

Commit

Permalink
Add translation key for No group
Browse files Browse the repository at this point in the history
  • Loading branch information
amosfolz committed Jul 12, 2019
1 parent 3467690 commit 71b2cd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/sprinkles/admin/locale/en_US/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
'MANAGE' => 'Manage group',
'NAME' => 'Group name',
'NAME_EXPLAIN' => 'Please enter a name for the group',
'NONE' => 'No group',
'NOT_EMPTY' => "You can't do that because there are still users associated with the group <strong>{{name}}</strong>.",
'PAGE_DESCRIPTION' => 'A listing of the groups for your site. Provides management tools for editing and deleting groups.',
'SUMMARY' => 'Group Summary',
Expand Down
3 changes: 2 additions & 1 deletion app/sprinkles/admin/templates/forms/user.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<input type="text" class="form-control" name="theme" value="{{user.group.name}}" disabled>
{% else %}
<select id="input-group" class="form-control js-select2" name="group_id">
<option value="0">No group</option>
<option value="0">{{translate('GROUP.NONE')}}</option>
<option disabled="disabled">-----</option>
{% for group in groups %}
<option value="{{group.id}}" {% if (group.id == user.group_id) %}selected{% endif %}>{{group.name}}</option>
{% endfor %}
Expand Down

0 comments on commit 71b2cd1

Please sign in to comment.