If only one server is available, just give a textbox.
This commit is contained in:
parent
d1bf56ab52
commit
c8c34e8c7c
1 changed files with 10 additions and 6 deletions
|
@ -35,12 +35,16 @@
|
||||||
<label class="control-label" for="host">{% trans %}Server{% endtrans %}</label>
|
<label class="control-label" for="host">{% trans %}Server{% endtrans %}</label>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select id="host" name="host" class="input-xlarge" required="">
|
{% if hosts|length > 1 %}
|
||||||
<option></option>
|
<select id="host" name="host" class="input-xlarge" required="">
|
||||||
{% for host in hosts %}
|
<option></option>
|
||||||
<option>{{ host }}</option>
|
{% for host in hosts %}
|
||||||
{% endfor %}
|
<option>{{ host }}</option>
|
||||||
</select>
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
{% elseif hosts|length == 1 %}
|
||||||
|
<input name="host" id="host" class="input-xlarge" readonly value="{{ hosts[0] }}" type="text" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p class="help-block">{% trans %}Wähle hier einen Servernamen aus. Deine XMPP-ID ist dann <span
|
<p class="help-block">{% trans %}Wähle hier einen Servernamen aus. Deine XMPP-ID ist dann <span
|
||||||
class="xmpp-id-preview">Benutzername@Servername</span>{% endtrans %}</p>
|
class="xmpp-id-preview">Benutzername@Servername</span>{% endtrans %}</p>
|
||||||
|
|
Reference in a new issue