Fix doublespace listing of Groups on AddList form
This commit is contained in:
parent
b3194da825
commit
e4643eea26
4 changed files with 6 additions and 9 deletions
|
@ -21,12 +21,7 @@
|
|||
</div>
|
||||
<div class="form-group">
|
||||
<label for="id_group">Group</label>
|
||||
<select id="id_group" name ="group" class="custom-select size="3" mb-3">
|
||||
{% for g in form.group %}
|
||||
{{ g }}
|
||||
<option value="{{ g.id }}">{{ g.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{{form.group}}
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label for="id_assigned_to">Assigned To</label>
|
||||
{# See todo.forms.AddItemForm #}
|
||||
{# See todo.forms.AddEditItemForm #}
|
||||
{{form.assigned_to}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{% regroup lists by group as section_list %}
|
||||
{% for group in section_list %}
|
||||
<h3>Group: {{ group.grouper }}</h3>
|
||||
<ul class="list-group">
|
||||
<ul class="list-group mb-4">
|
||||
{% for item in group.list %}
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<a href="{% url 'todo:list_detail' item.id item.slug %}">{{ item.name }}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue