registration: Use select instead of radio in import settings.

This commit is contained in:
Vishnu Ks 2018-05-25 14:53:39 +00:00 committed by Tim Abbott
parent 13fe5582d5
commit 2ada226008
2 changed files with 16 additions and 15 deletions

View File

@ -963,7 +963,14 @@ button.login-google-button {
top: 5px;
}
#source_realm_radio {
#source_realm_select_section {
position: relative;
top: 30px;
top: 40px;
font-size: 22px;
}
#source_realm_select {
font-size: 1.2rem;
height: 45px;
width: 325px;
}

View File

@ -145,19 +145,13 @@ Form is validated both client-side using jquery-validate (see signup.js) and ser
<div class="input-box">
<label for="source_realm" class="inline-block">{{ _('Do you want to import your user settings from another organization?') }}</label>
</div>
<div id="source_realm_radio" class="input-group m-10 inline-block">
<div class="input-group radio">
<input class="inline-block" type="radio" name="source_realm"
{% if ("source_realm" in form.data and form.data["source_realm"] == "on") or "source_realm" not in form.data %} checked {% endif %} />
<label for="id_radio_none" class="inline-block">None</label>
</div>
{% for membership_realm in membership_realms %}
<div class="input-group radio">
<input class="inline-block" type="radio" name="source_realm" value="{{ membership_realm.string_id }}"
{% if "source_realm" in form.data and membership_realm.string_id == form.data["source_realm"] %} checked {% endif %} />
<label for="id_radio_{{ membership_realm.string_id }}" class="inline-block">{{ membership_realm.name }}</label>
</div>
{% endfor %}
<div id="source_realm_select_section" class="input-group m-10 inline-block">
<select class="select" name="source_realm" id="source_realm_select">
<option value="on" {% if ("source_realm" in form.data and form.data["source_realm"] == "on") or "source_realm" not in form.data %} selected {% endif %}>None</option>
{% for membership_realm in membership_realms %}
<option value="{{ membership_realm.string_id }}" {% if "source_realm" in form.data and membership_realm.string_id == form.data["source_realm"] %} selected {% endif %}>{{ membership_realm.name }}</option>
{% endfor %}
</select>
</div>
{% endif %}
</section>