mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
always use dropdown list for alias suffix
This commit is contained in:
parent
b5357d0f4e
commit
3f2f2cabf4
1 changed files with 12 additions and 16 deletions
|
@ -32,23 +32,19 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-6 {% if suffixes|length == 1 %} align-self-center {% endif %}"
|
||||
<div class="col-sm-6"
|
||||
style="padding-left: 5px">
|
||||
{% if suffixes|length > 1 %}
|
||||
<select class="form-control" name="suffix">
|
||||
{% for suffix in suffixes %}
|
||||
<option value="{{ suffix[1] }}">
|
||||
{% if suffix[0] %}
|
||||
{{ suffix[1] }} (your domain)
|
||||
{% else %}
|
||||
{{ suffix[1] }}
|
||||
{% endif %}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
<span>{{ suffixes[0][1] }}</span>
|
||||
{% endif %}
|
||||
<select class="form-control" name="suffix">
|
||||
{% for suffix in suffixes %}
|
||||
<option value="{{ suffix[1] }}">
|
||||
{% if suffix[0] %}
|
||||
{{ suffix[1] }} (your domain)
|
||||
{% else %}
|
||||
{{ suffix[1] }}
|
||||
{% endif %}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue