mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-21 05:49:41 +00:00
Select now store selections between forms.Partial: #362
This commit is contained in:
@@ -8,15 +8,7 @@
|
||||
{% if create or edit or duplicate %}
|
||||
<div class="form-group">
|
||||
<label for="{{ form.purchased_from.id_for_label }}">Purchased From</label>
|
||||
<select class="form-control" name="{{ form.purchased_from.name }}" id="{{ form.purchased_from.id_for_label }}">
|
||||
{% for id, choice in form.purchased_from.field.choices %}
|
||||
<option value="{{ id }}"
|
||||
{% if object.purchased_from.id == id %}
|
||||
selected
|
||||
{% endif %}>
|
||||
{{ choice }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% render_field form.purchased_from|add_class:"form-control" %}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user