2017-02-09 08:10:58 +01:00
|
|
|
<div id="organization-settings" data-name="organization-settings" class="settings-section">
|
2016-10-05 02:34:45 +02:00
|
|
|
<form class="form-horizontal admin-realm-form">
|
|
|
|
<div class="alert" id="admin-realm-name-status"></div>
|
2017-03-18 20:19:44 +01:00
|
|
|
<div class="alert" id="admin-realm-description-status"></div>
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="alert" id="admin-realm-restricted-to-domain-status"></div>
|
|
|
|
<div class="alert" id="admin-realm-invite-required-status"></div>
|
|
|
|
<div class="alert" id="admin-realm-invite-by-admins-only-status"></div>
|
2017-03-13 14:42:03 +01:00
|
|
|
<div class="alert" id="admin-realm-inline-image-preview-status"></div>
|
|
|
|
<div class="alert" id="admin-realm-inline-url-embed-preview-status"></div>
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="alert" id="admin-realm-create-stream-by-admins-only-status"></div>
|
2016-12-20 15:41:30 +01:00
|
|
|
<div class="alert" id="admin-realm-add-emoji-by-admins-only-status"></div>
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="alert" id="admin-realm-message-editing-status"></div>
|
|
|
|
<div class="alert" id="admin-realm-default-language-status"></div>
|
2016-11-29 08:57:35 +01:00
|
|
|
<div class="alert" id="admin-realm-waiting_period_threshold_status"></div>
|
2017-03-13 18:33:49 +01:00
|
|
|
<div class="alert" id="admin-realm-name-changes-disabled-status"></div>
|
2017-03-04 06:39:45 +01:00
|
|
|
<div class="alert" id="admin-realm-email-changes-disabled-status"></div>
|
2016-10-05 02:34:45 +02:00
|
|
|
|
2017-04-21 01:10:59 +02:00
|
|
|
<div class="m-10 inline-block organization-settings-parent">
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="input-group admin-realm">
|
|
|
|
<label for="realm_name">{{t "Your organization's name" }}</label>
|
|
|
|
<input type="text" id="id_realm_name" name="realm_name" class="admin-realm-name"
|
|
|
|
value="{{ realm_name }}" />
|
|
|
|
</div>
|
2017-03-18 20:19:44 +01:00
|
|
|
<div class="input-group admin-realm">
|
|
|
|
<label for="realm_description">{{t "Your organization's description" }}</label>
|
2017-05-11 22:52:14 +02:00
|
|
|
<textarea id="id_realm_description" name="realm_description" class="admin-realm-description"
|
|
|
|
maxlength="1000">{{ realm_description }}
|
|
|
|
</textarea>
|
2017-03-18 20:19:44 +01:00
|
|
|
</div>
|
2017-01-18 02:58:41 +01:00
|
|
|
<div class="input-group admin-restricted-to-domain">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" name="realm_restricted_to_domain" id="id_realm_restricted_to_domain"
|
|
|
|
{{#if realm_restricted_to_domain}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_restricted_to_domain" id="realm_restricted_to_domains_label" class="inline-block"
|
|
|
|
title="{{#tr this}}If checked, only users with an e-mail address ending in these domains will be able to join the organization.{{/tr}}">
|
2016-10-05 02:34:45 +02:00
|
|
|
</label>
|
2017-02-21 21:34:13 +01:00
|
|
|
{{#if is_admin }}
|
2017-03-31 22:40:48 +02:00
|
|
|
<a data-toggle="modal" href="#realm_domains_modal">{{t "[Add or Change]" }}</a>
|
2017-02-21 21:34:13 +01:00
|
|
|
{{/if}}
|
2016-10-05 02:34:45 +02:00
|
|
|
</div>
|
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" name="realm_invite_required" id="id_realm_invite_required"
|
|
|
|
{{#if realm_invite_required}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_invite_required" id="realm_restricted_to_domains_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, users must be invited in order to join your organization.' }}">
|
|
|
|
{{t "E-mail invitation required" }}
|
|
|
|
</label>
|
2016-10-05 02:34:45 +02:00
|
|
|
</div>
|
|
|
|
<div class="input-group disableable {{#unless realm_invite_required}}control-label-disabled{{/unless}}">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" name="realm_invite_by_admins_only" id="id_realm_invite_by_admins_only"
|
|
|
|
{{#unless realm_invite_required}}disabled="disabled"{{/unless}}
|
|
|
|
{{#if realm_invite_by_admins_only}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_invite_by_admins_only" id="id_realm_invite_by_admins_only_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, only administrators may invite new users.' }}">
|
|
|
|
{{t "Only admins may invite" }}
|
|
|
|
</label>
|
2016-10-05 02:34:45 +02:00
|
|
|
</div>
|
2017-03-13 14:42:03 +01:00
|
|
|
{{#if server_inline_image_preview}}
|
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" id="id_realm_inline_image_preview" name="realm_inline_image_preview"
|
|
|
|
{{#if realm_inline_image_preview}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_inline_image_preview" id="id_realm_inline_image_preview_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, image previews will be shown.' }}">
|
|
|
|
{{t "Show previews of uploaded and linked images" }}
|
|
|
|
</label>
|
2017-03-13 14:42:03 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if server_inline_url_embed_preview}}
|
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" id="id_realm_inline_url_embed_preview" name="realm_inline_url_embed_preview"
|
|
|
|
{{#if realm_inline_url_embed_preview}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_inline_url_embed_preview" id="id_realm_inline_url_embed_preview_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, previews of linked websites will be shown.' }}">
|
|
|
|
{{t "Show previews of linked websites" }}
|
|
|
|
</label>
|
2017-03-13 14:42:03 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" id="id_realm_create_stream_by_admins_only" name="realm_create_stream_by_admins_only"
|
|
|
|
{{#if realm_create_stream_by_admins_only}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_create_stream_by_admins_only" id="id_realm_create_stream_by_admins_only_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, only administrators may create new streams.' }}">
|
|
|
|
{{t "Only admins may create streams" }}
|
|
|
|
</label>
|
2017-03-13 18:33:49 +01:00
|
|
|
</div>
|
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" id="id_realm_name_changes_disabled" name="realm_name_changes_disabled"
|
|
|
|
{{#if realm_name_changes_disabled}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_name_changes_disabled" id="id_realm_name_changes_disabled_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, users will be unable to change their name.' }}">
|
|
|
|
{{t "Prevent users from changing their name" }}
|
|
|
|
</label>
|
2016-10-05 02:34:45 +02:00
|
|
|
</div>
|
2017-03-04 06:39:45 +01:00
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" id="id_realm_email_changes_disabled" name="realm_email_changes_disabled"
|
|
|
|
{{#if realm_email_changes_disabled}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_email_changes_disabled" id="id_realm_email_changes_disabled_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, users will be unable to change their email address.' }}">
|
|
|
|
{{t "Prevent users from changing their email address" }}
|
|
|
|
</label>
|
2017-03-04 06:39:45 +01:00
|
|
|
</div>
|
2016-12-20 15:41:30 +01:00
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" id="id_realm_add_emoji_by_admins_only" name="realm_add_emoji_by_admins_only"
|
|
|
|
{{#if realm_add_emoji_by_admins_only}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_add_emoji_by_admins_only" id="id_realm_add_emoji_by_admins_only_label" class="inline-block"
|
|
|
|
title="{{t 'If checked, only administrators may add new emoji.'}}">
|
|
|
|
{{t "Only admins may add emoji" }}
|
|
|
|
</label>
|
2016-12-20 15:41:30 +01:00
|
|
|
</div>
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="input-group">
|
2017-04-21 01:10:59 +02:00
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" id="id_realm_allow_message_editing" name="realm_allow_message_editing"
|
|
|
|
{{#if realm_allow_message_editing}}checked="checked"{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="id_realm_allow_message_editing" class="inline-block"
|
|
|
|
title="{{t 'If checked, users can edit the content and topics of their old messages.' }}">
|
|
|
|
{{t "Users can edit old messages" }}
|
|
|
|
</label>
|
2016-10-05 02:34:45 +02:00
|
|
|
</div>
|
|
|
|
<div class="input-group disableable {{#unless realm_allow_message_editing}}control-label-disabled{{/unless}}">
|
|
|
|
<label for="realm_message_content_edit_limit_minutes"
|
|
|
|
id="id_realm_message_content_edit_limit_minutes_label"
|
|
|
|
title="{{t 'If non-zero, users can edit their message for this many minutes after it is sent. If zero, users can edit all their past messages.' }}">
|
|
|
|
{{t 'Message edit limit in minutes (0 for no limit)' }}
|
|
|
|
</label>
|
|
|
|
<input type="text" id="id_realm_message_content_edit_limit_minutes"
|
|
|
|
name="realm_message_content_edit_limit_minutes"
|
|
|
|
class="admin-realm-message-content-edit-limit-minutes"
|
|
|
|
value="{{ realm_message_content_edit_limit_minutes }}"
|
|
|
|
{{#unless realm_allow_message_editing}}disabled="disabled"{{/unless}} />
|
|
|
|
</div>
|
2016-11-30 10:42:58 +01:00
|
|
|
{{#if false}}
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="realm_message_retention_days"
|
|
|
|
id="id_realm_message_retention_days_label"
|
2017-04-13 21:59:52 +02:00
|
|
|
title="{{t 'Messages older than the configured number of days will be automatically deleted' }}">
|
|
|
|
{{t 'Messages retention period in days (blank means messages are retained forever)' }}
|
2016-11-30 10:42:58 +01:00
|
|
|
</label>
|
|
|
|
<input type="text" id="id_realm_message_retention_days"
|
|
|
|
name="realm_message_retention_days"
|
|
|
|
class="admin-realm-message-retention-days"
|
|
|
|
value="{{ realm_message_retention_days }}"/>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="input-group">
|
2017-01-15 20:28:35 +01:00
|
|
|
<label for="realm_default_language">{{t "Default language" }}:</label>
|
2016-10-05 02:34:45 +02:00
|
|
|
<select name="realm_default_language" id="id_realm_default_language">
|
|
|
|
{{#each language_list}}
|
|
|
|
<option value='{{this.code}}'>{{this.name}}</option>
|
|
|
|
{{/each}}
|
|
|
|
</select>
|
|
|
|
</div>
|
2016-11-29 08:57:35 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="realm_waiting_period_threshold">{{t "Waiting period for stream creation (in days)" }}</label>
|
|
|
|
<input type="text" id="id_realm_waiting_period_threshold"
|
|
|
|
name="realm_waiting_period_threshold"
|
|
|
|
class="admin-realm-message-content-edit-limit-minutes"
|
|
|
|
value="{{ realm_waiting_period_threshold }}"/>
|
|
|
|
</div>
|
2017-04-16 10:20:01 +02:00
|
|
|
{{#if is_admin }}
|
2016-10-05 02:34:45 +02:00
|
|
|
<div class="input-group organization-submission">
|
2017-03-18 10:44:00 +01:00
|
|
|
<button type="submit" class="button white rounded sea-green">
|
|
|
|
{{t 'Save changes' }}
|
|
|
|
</button>
|
2016-10-05 02:34:45 +02:00
|
|
|
</div>
|
2017-04-16 10:20:01 +02:00
|
|
|
{{/if}}
|
2017-02-21 03:41:20 +01:00
|
|
|
</div>
|
|
|
|
<div class="realm-icon-section box-shadow border-radius">
|
|
|
|
<div class="inline-block">
|
2017-02-26 20:35:23 +01:00
|
|
|
<img id="realm-settings-icon" src="{{ realm_icon_url }}"/>
|
2017-02-21 03:41:20 +01:00
|
|
|
<div id="realm_icon_file_input_error" class="text-error"></div>
|
|
|
|
<input type="file" name="realm_icon_file_input" class="notvisible"
|
|
|
|
id="realm_icon_file_input" value="{{t 'Upload icon' }}"/>
|
|
|
|
<div id="upload_icon_spinner"></div>
|
|
|
|
</div>
|
|
|
|
<div class="inline-block">
|
2017-03-18 10:44:00 +01:00
|
|
|
<button class="button white rounded sea-green w-200 m-t-10 block input-size"
|
2017-02-26 21:42:58 +01:00
|
|
|
id="realm_icon_upload_button">{{t 'Upload new icon' }}</button>
|
2017-03-18 10:44:00 +01:00
|
|
|
<button class="button white rounded btn-danger w-200 m-t-10 block input-size"
|
2017-02-21 03:41:20 +01:00
|
|
|
id="realm_icon_delete_button">{{t 'Delete icon' }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-10-05 02:34:45 +02:00
|
|
|
</form>
|
|
|
|
</div>
|