2023-03-09 12:30:03 +01:00
|
|
|
<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"
|
|
|
|
placeholder="Acme or Ακμή"
|
|
|
|
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') }}</label>
|
|
|
|
{% if form.realm_name.errors %}
|
|
|
|
{% for error in form.realm_name.errors %}
|
|
|
|
<p class="help-inline text-error">{{ error }}</p>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2023-03-09 08:05:12 +01:00
|
|
|
|
2023-03-09 12:30:03 +01:00
|
|
|
{% if not user_registration_form %}
|
|
|
|
<div class="help-text">
|
|
|
|
{{ _('Shorter is better than longer.') }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-03-09 08:05:12 +01:00
|
|
|
</div>
|
|
|
|
|
2023-03-09 12:30:03 +01:00
|
|
|
<div class="input-box">
|
|
|
|
<div class="inline-block relative">
|
2024-10-19 12:48:31 +02:00
|
|
|
<select name="realm_type" id="realm_type" required>
|
|
|
|
<option disabled selected value>-- {{ _("Select one") }} --</option>
|
2023-03-09 12:30:03 +01:00
|
|
|
{% 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>
|
2023-03-09 08:05:12 +01:00
|
|
|
|
2023-03-09 12:30:03 +01:00
|
|
|
<label for="realm_type" class="inline-block label-title">{{ _('Organization type') }}</label>
|
|
|
|
</div>
|
2023-03-09 08:05:12 +01:00
|
|
|
|
2023-09-12 21:58:58 +02:00
|
|
|
<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>
|
|
|
|
|
2023-03-09 12:30:03 +01:00
|
|
|
<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 %}/>
|
2024-09-04 17:32:16 +02:00
|
|
|
<span class="rendered-checkbox"></span>
|
2023-03-09 12:30:03 +01:00
|
|
|
{% trans %}Use {{ external_host }}{% endtrans %}
|
|
|
|
</label>
|
|
|
|
{% endif %}
|
2023-03-09 08:05:12 +01:00
|
|
|
|
2023-03-09 12:30:03 +01:00
|
|
|
<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 %}
|
2023-03-09 08:05:12 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|