Add Team Roles feature.

This commit is contained in:
Jens Luedicke
2025-06-28 22:39:28 +02:00
parent e7593dc840
commit d8ec7d636e
11 changed files with 672 additions and 37 deletions

View File

@@ -20,6 +20,29 @@
<input type="password" id="password" name="password" class="form-control">
</div>
<div class="form-group">
<label for="role">Role</label>
<select id="role" name="role" class="form-control">
{% for role in roles %}
<option value="{{ role.name }}" {% if user.role == role %}selected{% endif %}>
{{ role.name.replace('_', ' ').title() }}
</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label for="team_id">Team</label>
<select id="team_id" name="team_id" class="form-control">
<option value="">-- No Team --</option>
{% for team in teams %}
<option value="{{ team.id }}" {% if user.team_id == team.id %}selected{% endif %}>
{{ team.name }}
</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label class="checkbox-container">
<input type="checkbox" name="is_admin" {% if user.is_admin %}checked{% endif %}> Administrator privileges