Auto-select active orga in object creators
This commit is contained in:
parent
8123042305
commit
9ff34c5199
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
<select required class="custom-select mr-sm-2" id="organization" name="organization">
|
||||
{% userOrgas as orgas %}
|
||||
{% for choice in orgas %}
|
||||
<option value="{{ choice.id }}">{{ choice.name }}</option>
|
||||
<option {% if user.userstatus.orga == choice %}selected{% endif %} value="{{ choice.id }}">{{ choice.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<select class="custom-select mr-sm-2" id="organization" name="organization">
|
||||
{% userOrgas as organizations %}
|
||||
{% for choice in organizations %}
|
||||
<option value="{{ choice.id }}">{{ choice.name }}</option>
|
||||
<option {% if user.userstatus.orga == choice %}selected{% endif %} value="{{ choice.id }}">{{ choice.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue