mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 08:13:16 +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>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-sm-6 {% if suffixes|length == 1 %} align-self-center {% endif %}"
|
<div class="col-sm-6"
|
||||||
style="padding-left: 5px">
|
style="padding-left: 5px">
|
||||||
{% if suffixes|length > 1 %}
|
<select class="form-control" name="suffix">
|
||||||
<select class="form-control" name="suffix">
|
{% for suffix in suffixes %}
|
||||||
{% for suffix in suffixes %}
|
<option value="{{ suffix[1] }}">
|
||||||
<option value="{{ suffix[1] }}">
|
{% if suffix[0] %}
|
||||||
{% if suffix[0] %}
|
{{ suffix[1] }} (your domain)
|
||||||
{{ suffix[1] }} (your domain)
|
{% else %}
|
||||||
{% else %}
|
{{ suffix[1] }}
|
||||||
{{ suffix[1] }}
|
{% endif %}
|
||||||
{% endif %}
|
</option>
|
||||||
</option>
|
{% endfor %}
|
||||||
{% endfor %}
|
</select>
|
||||||
</select>
|
|
||||||
{% else %}
|
|
||||||
<span>{{ suffixes[0][1] }}</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue