mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 20:09:25 +00:00
Add page for clubs and inactive clubs
This commit is contained in:
@ -117,6 +117,12 @@ class ClubTabsMixin(TabedViewMixin):
|
||||
'slug': 'edit',
|
||||
'name': _("Edit"),
|
||||
})
|
||||
if self.object.page:
|
||||
tab_list.append({
|
||||
'url': reverse('core:page_edit', kwargs={'page_name': self.object.page.get_full_name()}),
|
||||
'slug': 'page_edit',
|
||||
'name': _('Edit club page')
|
||||
})
|
||||
tab_list.append({
|
||||
'url': reverse('club:club_sellings', kwargs={'club_id': self.object.id}),
|
||||
'slug': 'sellings',
|
||||
@ -348,7 +354,7 @@ class ClubEditPropView(ClubTabsMixin, CanEditPropMixin, UpdateView):
|
||||
"""
|
||||
model = Club
|
||||
pk_url_kwarg = "club_id"
|
||||
fields = ['name', 'unix_name', 'parent']
|
||||
fields = ['name', 'unix_name', 'parent', 'is_active']
|
||||
template_name = 'core/edit.jinja'
|
||||
current_tab = "props"
|
||||
|
||||
|
Reference in New Issue
Block a user