Formatting changes

This commit is contained in:
Tyler Todd 2023-02-17 23:07:36 +00:00
parent 9b696a42a4
commit 9a7bd27fe3

View File

@ -109,17 +109,18 @@
</p>
<p>Hover over the red domain names to show the associated account. Click on domains to move between columns.</p>
<div class="form-group col-2">
<select multiple="multiple" class="form-control" id="account_domains"
name="account_domains">
<select multiple="multiple" class="form-control" id="account_domains" name="account_domains">
{% for domain in domains %}
{% if account != None and domain.account_id != None and account.id != domain.account_id %}
{% with account_id=domain.account_id %}
<option style="color: red" data-toggle="tooltip" title="Associated with: {{ accounts[account_id].name }}"
value="{{ domain.name }}">{{ domain.name }}</option>
<option style="color: red" data-toggle="tooltip" title="Associated with: {{ accounts[account_id].name }}" value="{{ domain.name }}">
{{ domain.name }}
</option>
{% endwith %}
{% else %}
<option {% if account.id == domain.account_id %}selected{% endif %}
value="{{ domain.name }}">{{ domain.name }}</option>
<option {% if account.id == domain.account_id %}selected{% endif %} value="{{ domain.name }}">
{{ domain.name }}
</option>
{% endif %}
{% endfor %}
</select>