forked from CGM_Public/pretix_original
Add gates (groups of check-in devices) (#1825)
This commit is contained in:
@@ -454,8 +454,23 @@ def get_organizer_navigation(request):
|
||||
'url': reverse('control:organizer.devices', kwargs={
|
||||
'organizer': request.organizer.slug
|
||||
}),
|
||||
'active': 'organizer.device' in url.url_name,
|
||||
'icon': 'tablet',
|
||||
'children': [
|
||||
{
|
||||
'label': _('Devices'),
|
||||
'url': reverse('control:organizer.devices', kwargs={
|
||||
'organizer': request.organizer.slug
|
||||
}),
|
||||
'active': 'organizer.device' in url.url_name,
|
||||
},
|
||||
{
|
||||
'label': _('Gates'),
|
||||
'url': reverse('control:organizer.gates', kwargs={
|
||||
'organizer': request.organizer.slug
|
||||
}),
|
||||
'active': 'organizer.gate' in url.url_name,
|
||||
}
|
||||
]
|
||||
})
|
||||
if 'can_manage_gift_cards' in request.orgapermset:
|
||||
nav.append({
|
||||
|
||||
Reference in New Issue
Block a user