Intitial teams support #147

Merged
Oleg-Komarov merged 34 commits from teams-support into main 2024-05-23 19:43:54 +02:00
Showing only changes of commit f63aea3675 - Show all commits

View File

@ -29,6 +29,26 @@
{{ form.errors }} {{ form.errors }}
<section class="card p-3"> <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> <div>
{% include "common/components/field.html" with field=form.description label="Description" placeholder="Describe the extension..." %} {% include "common/components/field.html" with field=form.description label="Description" placeholder="Describe the extension..." %}
</div> </div>