Fix some organization bugs
This commit is contained in:
parent
a711fb9768
commit
3c99a2c477
4 changed files with 1 additions and 6 deletions
|
@ -665,13 +665,13 @@ OrganizationRequestFormSet = modelformset_factory(
|
||||||
|
|
||||||
|
|
||||||
class OrganizationRequestBaseView(
|
class OrganizationRequestBaseView(
|
||||||
|
AdminOrganizationMixin,
|
||||||
DetailView,
|
DetailView,
|
||||||
OrganizationHomeView,
|
OrganizationHomeView,
|
||||||
TitleMixin,
|
TitleMixin,
|
||||||
LoginRequiredMixin,
|
LoginRequiredMixin,
|
||||||
SingleObjectTemplateResponseMixin,
|
SingleObjectTemplateResponseMixin,
|
||||||
SingleObjectMixin,
|
SingleObjectMixin,
|
||||||
AdminOrganizationMixin,
|
|
||||||
):
|
):
|
||||||
model = Organization
|
model = Organization
|
||||||
slug_field = "key"
|
slug_field = "key"
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
height: 300px;
|
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
|
@ -39,9 +39,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ make_tab_item('public', 'fa fa-globe', request.path + '?tab=public', _('Public')) }}
|
{{ make_tab_item('public', 'fa fa-globe', request.path + '?tab=public', _('Public')) }}
|
||||||
{{ make_tab_item('private', 'fa fa-lock', request.path + '?tab=private', _('Private')) }}
|
{{ make_tab_item('private', 'fa fa-lock', request.path + '?tab=private', _('Private')) }}
|
||||||
{% if request.user.is_superuser %}
|
|
||||||
{{ make_tab_item('import', 'fa fa-table', url('import_users'), _('Import'), force_new_page=True) }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<div class="left-sidebar">
|
<div class="left-sidebar">
|
||||||
{{ make_tab_item('list', 'fa fa-trophy', url('user_list'), _('Leaderboard')) }}
|
{{ make_tab_item('list', 'fa fa-trophy', url('user_list'), _('Leaderboard')) }}
|
||||||
{{ make_tab_item('friends', 'fa fa-users', url('user_list') + '?friend=true', _('Friends')) }}
|
{{ make_tab_item('friends', 'fa fa-users', url('user_list') + '?friend=true', _('Friends')) }}
|
||||||
{{ make_tab_item('organizations', 'fa fa-university', url('organization_list'), _('Groups')) }}
|
|
||||||
{% if request.user.is_superuser %}
|
{% if request.user.is_superuser %}
|
||||||
{{ make_tab_item('import', 'fa fa-table', url('import_users'), _('Import'), force_new_page=True) }}
|
{{ make_tab_item('import', 'fa fa-table', url('import_users'), _('Import'), force_new_page=True) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue