Enable Project categorization.

This commit is contained in:
2025-07-03 12:14:48 +02:00
committed by Jens Luedicke
parent 2888e66f49
commit edb8fd6673
5 changed files with 1328 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
<div class="mode-switcher">
<button class="mode-btn {% if mode == 'personal' %}active{% endif %}"
onclick="switchMode('personal')">Personal</button>
{% if g.user.team_id and g.user.role.value in ['Team Leader', 'Supervisor', 'Administrator'] %}
{% if g.user.team_id and g.user.role in [Role.TEAM_LEADER, Role.SUPERVISOR, Role.ADMIN] %}
<button class="mode-btn {% if mode == 'team' %}active{% endif %}"
onclick="switchMode('team')">Team</button>
{% endif %}