mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
realm_creation: Disable import from input.
We are not processing this input at the POST endpoint, this commit just disables the selection from changing. It is not easy to process changing "import from" at this stage, but we can possible allow that in a future refactor.
This commit is contained in:
@@ -87,11 +87,16 @@
|
||||
{% if is_realm_import_enabled %}
|
||||
<div class="input-box">
|
||||
<div class="inline-block" id="realm-creation-import-from-wrapper">
|
||||
<select id="import_from" name="import_from">
|
||||
<select id="import_from" name="import_from"
|
||||
{% if user_registration_form %}
|
||||
disabled
|
||||
{% endif %}
|
||||
>
|
||||
{% for key, choice in import_from_choices %}
|
||||
<option value="{{ key }}" {% if key == "none" %}selected{% endif %}>{{ _(choice) }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% if not user_registration_form %}
|
||||
<p class="extra-info-realm-creation-import-from registration-form-hint">
|
||||
{% trans %}
|
||||
Learn how to import from
|
||||
@@ -99,6 +104,7 @@
|
||||
<a href="/help/import-from-rocketchat">Rocket.Chat</a>.
|
||||
{% endtrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<label for="import_from" class="inline-block">
|
||||
{{ _('Import chat history?') }}
|
||||
|
||||
@@ -1499,6 +1499,10 @@ button#register_auth_button_gitlab {
|
||||
}
|
||||
}
|
||||
|
||||
#realm-creation-import-from-wrapper #import_from[disabled] {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
#realm-creation-import-from-wrapper .extra-info-realm-creation-import-from {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user