Fix some organization bugs

This commit is contained in:
cuom1999 2024-06-24 20:01:00 -05:00
parent a711fb9768
commit 3c99a2c477
4 changed files with 1 additions and 6 deletions

View file

@ -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"

View file

@ -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;

View file

@ -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 %}

View file

@ -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 %}