Add Team Roles feature.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user