Intitial teams support #147
@ -29,6 +29,26 @@
|
||||
{{ form.errors }}
|
||||
|
||||
<section class="card p-3">
|
||||
{% if user.team_users %}
|
||||
<div class="row mb-3">
|
||||
<div class="col">
|
||||
{# TODO: @back-end process Assign Team with Django #}
|
||||
<label>Assign Team</label><span class="form-required-indicator">*</span>
|
||||
<select class="form-control" id="team" allowempty="false" required>
|
||||
{# TODO: check while option first is not selected #}
|
||||
<option disabled>Select...</option>
|
||||
|
||||
{% for team_member in user.team_users.all %}
|
||||
{% with team=team_member.team %}
|
||||
<option>{{ team.name }}</option>
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
{% include "common/components/field.html" with field=form.description label="Description" placeholder="Describe the extension..." %}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user