Neue Verwaltung der Gruppenzuordnung 1:n

This commit is contained in:
concierge committed 2026-10-30 09:02:46 +01:00
1 parent fa02a7ade0
commit 02c017d53d
34 files changed
+1306 -251

No files matched your search

+5 -10
View File
@@ -3,7 +3,7 @@ Haupt-Views
"""
from flask import (
Blueprint, render_template, g, redirect, url_for, request, jsonify,
make_response, session
make_response, session, current_app
)
from cmbnet.auth import login_required, role_required
@@ -65,28 +65,23 @@ def manifest(tenant=None, **kwargs):
"""Liefert das Web-App-Manifest für die mobilen Views."""
account = getattr(g, 'current_account', None)
role = account['role'] if account else session.get('role')
title = current_app.config.get('DISPLAY_TITLE', '20*C+M+B+27')
if role == 'Dispatcher':
start_url = url_for('views.dispatcher_mobil', tenant=tenant)
name = 'CMBNet Dispatcher'
short_name = 'CMB Dispo'
elif role == 'Gruppe':
start_url = url_for('views.gruppen', tenant=tenant)
name = 'CMBNet Gruppe'
short_name = 'CMB Gruppe'
else:
start_url = url_for('views.index', tenant=tenant)
name = 'CMBNet'
short_name = 'CMBNet'
icon_192 = url_for('static', filename='img/icon-192.png')
icon_512 = url_for('static', filename='img/icon-512.png')
payload = {
'id': start_url,
'name': name,
'short_name': short_name,
'description': 'CMBNet – mobile Einsatzansicht',
'name': title,
'short_name': title,
'description': f'{title} – mobile Einsatzansicht',
'lang': 'de',
'start_url': start_url,
'scope': url_for('views.index', tenant=tenant),