added star to admin tab, changed form order in admin tab
This commit is contained in:
parent
1f75194fad
commit
6bc87b605c
2 changed files with 5 additions and 2 deletions
|
|
@ -135,8 +135,10 @@ class AdminForm(forms.Form):
|
|||
self._request = kwargs.pop('request', None)
|
||||
self._users = kwargs.pop('users', [])
|
||||
choices = [(x, x) for x in self._users]
|
||||
choices.insert(0, ('', 'Select username ...'))
|
||||
super(AdminForm, self).__init__(*args, **kwargs)
|
||||
self.fields['username'] = forms.ChoiceField(choices=choices)
|
||||
self.fields.insert(0, 'username', forms.ChoiceField(choices=choices,
|
||||
help_text=_('Select the username for whom you want to reset the password.')))
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super(AdminForm, self).clean()
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@
|
|||
{% if group.name == 'ldap_admins' %}
|
||||
{% url account.views.admin as admin_url %}
|
||||
<li class="{% if request.path == admin_url %}active{% endif %}">
|
||||
<a href="{{ admin_url }}">{% trans "Admin" %}</a>
|
||||
<a href="{{ admin_url }}"><i class="icon icon-white icon-star"></i>
|
||||
{% trans "Admin" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue