mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
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.
115 lines
5.4 KiB
HTML
115 lines
5.4 KiB
HTML
<div class="realm-creation-editable-inputs {% if user_registration_form and not form.realm_subdomain.errors %}hide{% endif %}">
|
|
<div class="input-box">
|
|
<div class="inline-block relative">
|
|
<input id="id_team_name" class="required" type="text"
|
|
value="{% if form.realm_name.value() %}{{ form.realm_name.value() }}{% endif %}"
|
|
name="realm_name" maxlength="{{ MAX_REALM_NAME_LENGTH }}" required {% if not user_registration_form %}autofocus{% endif %} />
|
|
</div>
|
|
<label for="id_team_name" class="inline-block label-title">
|
|
{{ _('Organization name') }}
|
|
<a href="/help/create-your-organization-profile" target="_blank" rel="noopener noreferrer">
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
</a>
|
|
</label>
|
|
{% if form.realm_name.errors %}
|
|
{% for error in form.realm_name.errors %}
|
|
<p class="help-inline text-error">{{ error }}</p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="input-box">
|
|
<div class="inline-block relative">
|
|
<select name="realm_type" id="realm_type" required>
|
|
<option disabled selected value>-- {{ _("Select one") }} --</option>
|
|
{% for realm_type in sorted_realm_types %}
|
|
{% if not realm_type.hidden %}
|
|
<option value="{{ realm_type.id }}" {% if form.realm_type.value() == realm_type.id %}selected{% endif %} >{{ _(realm_type.name) }}</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<label for="realm_type" class="inline-block label-title">{{ _('Organization type') }}</label>
|
|
</div>
|
|
|
|
<div class="input-box">
|
|
<div class="inline-block relative">
|
|
<select name="realm_default_language" id="realm_default_language">
|
|
{% for language in language_list %}
|
|
<option value="{{ language.code }}" {% if form.realm_default_language.value() == language.code %}selected{% endif %} >{{ _(language.name) }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<label for="realm_default_language" class="inline-block label-title">
|
|
{{ _('Organization language') }}
|
|
<a href="/help/configure-organization-language" target="_blank" rel="noopener noreferrer">
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
</a>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="input-box">
|
|
<label class="static org-url">
|
|
{{ _('Organization URL') }}
|
|
</label>
|
|
{% if root_domain_available %}
|
|
<label class="checkbox static" for="realm_in_root_domain">
|
|
<input type="checkbox" name="realm_in_root_domain" id="realm_in_root_domain"
|
|
{% if not form.realm_subdomain.value() and not form.realm_subdomain.errors %}checked="checked"{% endif %}/>
|
|
<span class="rendered-checkbox"></span>
|
|
{% trans %}Use {{ external_host }}{% endtrans %}
|
|
</label>
|
|
{% endif %}
|
|
|
|
<div id="subdomain_section" {% if root_domain_available and
|
|
not form.realm_subdomain.errors and not form.realm_subdomain.value() %}style="display: none;"{% endif %}>
|
|
<div class="or"><span>{{ _('OR') }}</span></div>
|
|
<div class="inline-block relative">
|
|
<input id="id_team_subdomain"
|
|
class="{% if root_domain_landing_page %}required{% endif %} subdomain" type="text"
|
|
placeholder="acme"
|
|
value="{% if form.realm_subdomain.value() %}{{ form.realm_subdomain.value() }}{% endif %}"
|
|
name="realm_subdomain" maxlength="{{ MAX_REALM_SUBDOMAIN_LENGTH }}"
|
|
{% if root_domain_landing_page %}required{% endif %} />
|
|
<label for="id_team_subdomain" class="realm_subdomain_label">.{{ external_host }}</label>
|
|
<p id="id_team_subdomain_error_client" class="error help-inline text-error"></p>
|
|
</div>
|
|
{% if form.realm_subdomain.errors %}
|
|
{% for error in form.realm_subdomain.errors %}
|
|
<p class="error help-inline text-error team_subdomain_error_server">{{ error }}</p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% 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"
|
|
{% 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
|
|
<a href="/help/import-from-mattermost">Mattermost</a> or
|
|
<a href="/help/import-from-rocketchat">Rocket.Chat</a>.
|
|
{% endtrans %}
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
<label for="import_from" class="inline-block">
|
|
{{ _('Import chat history?') }}
|
|
</label>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|