mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-29 19:32:14 +00:00
Fix Power MIC being lost on RA edit
Why it is subtly different to the Event Update behaviour? Who knows
This commit is contained in:
@@ -67,8 +67,8 @@
|
||||
class="col-sm-8 control-label">{{ form.power_mic.help_text }}</label>
|
||||
<div class="col-sm-8">
|
||||
<select id="{{ form.power_mic.id_for_label }}" name="{{ form.power_mic.name }}" class="form-control selectpicker" data-live-search="true" data-sourceurl="{% url 'api_secure' model='profile' %}?fields=first_name,last_name,initials">
|
||||
{% if power_mic %}
|
||||
<option value="{{form.power_mic.value}}" selected="selected" >{{ power_mic.name }}</option>
|
||||
{% if object.power_mic %}
|
||||
<option value="{{object.power_mic.pk}}" selected="selected">{{ object.power_mic.name }}</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user