2017-05-18 14:06:57 +02:00
|
|
|
|
<div id="organization-permissions" data-name="organization-permissions" class="settings-section">
|
2017-05-25 00:50:07 +02:00
|
|
|
|
<form class="form-horizontal admin-realm-form org-permissions-form">
|
2017-05-18 14:06:57 +02:00
|
|
|
|
|
2018-03-20 23:18:34 +01:00
|
|
|
|
<div id="org-org-join" class="org-subsection-parent">
|
|
|
|
|
<div class="subsection-header">
|
|
|
|
|
<h3>{{t "Joining the organization" }}</h3>
|
2018-03-23 16:21:40 +01:00
|
|
|
|
{{ partial "settings-save-discard-widget" "section_name" "org-join" }}
|
2017-05-18 14:06:57 +02:00
|
|
|
|
</div>
|
2018-04-05 00:54:31 +02:00
|
|
|
|
<div class="m-10 inline-block organization-permissions-parent">
|
|
|
|
|
<div class="input-group">
|
2018-04-30 18:26:59 +02:00
|
|
|
|
<label for="realm_user_invite_restriction" class="dropdown-title">{{t "Are invitations required for joining the organization?" }}</label>
|
2019-04-04 16:36:12 +02:00
|
|
|
|
<select name="realm_user_invite_restriction" id="id_realm_user_invite_restriction" class="prop-element">
|
2018-04-30 18:26:59 +02:00
|
|
|
|
<option value="no_invite_required">{{t "No" }}</option>
|
2018-10-30 06:53:05 +01:00
|
|
|
|
<option value="by_anyone">{{t "Yes. Members and admins can send invitations." }}</option>
|
|
|
|
|
<option value="by_admins_only">{{t "Yes. Only admins can send invitations." }}</option>
|
2018-04-30 18:26:59 +02:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-group">
|
2018-05-02 20:03:52 +02:00
|
|
|
|
<label for="realm_org_join_restrictions" class="dropdown-title">{{t "Restrict email domains of new users?" }}</label>
|
2019-04-04 16:36:12 +02:00
|
|
|
|
<select name="realm_org_join_restrictions" id="id_realm_org_join_restrictions" class="prop-element">
|
2018-04-05 00:54:31 +02:00
|
|
|
|
<option value="no_restriction">{{t "No restrictions" }}</option>
|
|
|
|
|
<option value="no_disposable_email">{{t "Don’t allow disposable email addresses" }}</option>
|
|
|
|
|
<option value="only_selected_domain">{{t "Restrict to a list of domains" }}</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2018-04-28 19:22:56 +02:00
|
|
|
|
<div class="dependent-block">
|
2018-04-05 00:54:31 +02:00
|
|
|
|
<p id="allowed_domains_label" class="inline-block"></p>
|
2018-03-20 23:18:34 +01:00
|
|
|
|
{{#if is_admin }}
|
|
|
|
|
<a data-toggle="modal" href="#realm_domains_modal">{{t "[Configure]" }}</a>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2017-05-18 14:06:57 +02:00
|
|
|
|
</div>
|
2017-07-12 23:32:14 +02:00
|
|
|
|
</div>
|
2017-05-18 14:06:57 +02:00
|
|
|
|
|
2018-03-20 23:18:34 +01:00
|
|
|
|
<div id="org-user-identity" class="org-subsection-parent">
|
|
|
|
|
<div class="subsection-header">
|
|
|
|
|
<h3>{{t "User identity" }}</h3>
|
2018-03-23 16:21:40 +01:00
|
|
|
|
{{ partial "settings-save-discard-widget" "section_name" "user-identity" }}
|
2017-05-18 14:06:57 +02:00
|
|
|
|
</div>
|
2018-03-20 23:18:34 +01:00
|
|
|
|
<div class="inline-block organization-permissions-parent">
|
2018-04-01 11:32:13 +02:00
|
|
|
|
{{partial "settings_checkbox"
|
2018-04-03 10:09:00 +02:00
|
|
|
|
"setting_name" "realm_name_changes_disabled"
|
|
|
|
|
"prefix" "id_"
|
|
|
|
|
"is_checked" realm_name_changes_disabled
|
|
|
|
|
"label" admin_settings_label.realm_name_changes_disabled}}
|
2017-05-18 14:06:57 +02:00
|
|
|
|
|
2018-04-01 11:32:13 +02:00
|
|
|
|
{{partial "settings_checkbox"
|
2018-04-03 10:09:00 +02:00
|
|
|
|
"setting_name" "realm_email_changes_disabled"
|
|
|
|
|
"prefix" "id_"
|
|
|
|
|
"is_checked" realm_email_changes_disabled
|
|
|
|
|
"label" admin_settings_label.realm_email_changes_disabled}}
|
2019-04-23 04:51:04 +02:00
|
|
|
|
|
|
|
|
|
{{partial "settings_checkbox"
|
|
|
|
|
"setting_name" "realm_avatar_changes_disabled"
|
|
|
|
|
"prefix" "id_"
|
|
|
|
|
"is_checked" realm_avatar_changes_disabled
|
|
|
|
|
"label" admin_settings_label.realm_avatar_changes_disabled}}
|
2017-05-18 14:06:57 +02:00
|
|
|
|
</div>
|
2017-07-12 23:32:14 +02:00
|
|
|
|
</div>
|
2017-05-18 14:06:57 +02:00
|
|
|
|
|
2018-03-20 23:18:34 +01:00
|
|
|
|
<div id="org-other-permissions" class="org-subsection-parent">
|
|
|
|
|
<div class="subsection-header">
|
|
|
|
|
<h3>{{t "Other permissions" }}</h3>
|
2018-03-23 16:21:40 +01:00
|
|
|
|
{{ partial "settings-save-discard-widget" "section_name" "other-permissions" }}
|
2017-08-18 01:23:55 +02:00
|
|
|
|
</div>
|
2018-03-20 23:18:34 +01:00
|
|
|
|
<div class="m-10 inline-block organization-permissions-parent">
|
|
|
|
|
<div class="input-group">
|
2019-05-07 19:06:05 +02:00
|
|
|
|
<label for="realm_waiting_period_setting" class="dropdown-title">
|
|
|
|
|
{{t "Waiting period before new members turn into full members" }}
|
2019-06-10 03:03:04 +02:00
|
|
|
|
<a href="/help/restrict-permissions-of-new-members" target="_blank">
|
|
|
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
|
|
|
</a>
|
2019-05-07 19:06:05 +02:00
|
|
|
|
</label>
|
|
|
|
|
<select name="realm_waiting_period_setting" id="id_realm_waiting_period_setting" class="prop-element">
|
|
|
|
|
<option value="none">{{t "None" }}</option>
|
|
|
|
|
<option value="three_days">{{t "3 days" }}</option>
|
|
|
|
|
<option value="custom_days">{{t "Custom" }}</option>
|
2018-03-20 23:18:34 +01:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2019-05-07 19:06:05 +02:00
|
|
|
|
{{!-- This setting is hidden unless `custom_days` --}}
|
2018-04-28 19:22:56 +02:00
|
|
|
|
<div class="dependent-block">
|
2019-05-07 19:06:05 +02:00
|
|
|
|
<label for="aitin" class="inline-block">{{t "Waiting period (days)" }}:</label>
|
2018-03-20 23:18:34 +01:00
|
|
|
|
<input type="text" id="id_realm_waiting_period_threshold"
|
2018-04-03 10:07:23 +02:00
|
|
|
|
name="realm_waiting_period_threshold"
|
2019-04-04 16:36:12 +02:00
|
|
|
|
class="admin-realm-time-limit-input prop-element"
|
2018-04-03 10:07:23 +02:00
|
|
|
|
value="{{ realm_waiting_period_threshold }}"/>
|
2018-03-20 23:18:34 +01:00
|
|
|
|
</div>
|
2018-01-29 16:10:54 +01:00
|
|
|
|
|
2019-05-07 19:06:05 +02:00
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="realm_create_stream_policy" class="dropdown-title">{{t "Who can create streams" }}</label>
|
|
|
|
|
<select name="realm_create_stream_policy" id="id_realm_create_stream_policy" class="prop-element">
|
2019-05-22 07:58:00 +02:00
|
|
|
|
<option value="by_admins_only">{{t "Admins" }}</option>
|
2019-05-07 19:06:05 +02:00
|
|
|
|
<option value="by_full_members">{{t "Admins and full members" }}</option>
|
2019-05-22 07:58:00 +02:00
|
|
|
|
<option value="by_members">{{t "Admins and members" }}</option>
|
2019-05-07 19:06:05 +02:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-04-08 19:23:00 +02:00
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="realm_invite_to_stream_policy" class="dropdown-title">{{t "Who can add users to streams" }}</label>
|
|
|
|
|
<select name="realm_invite_to_stream_policy" id="id_realm_invite_to_stream_policy" class="prop-element">
|
2019-05-22 07:58:00 +02:00
|
|
|
|
<option value="by_admins_only">{{t "Admins" }}</option>
|
2019-05-07 19:06:05 +02:00
|
|
|
|
<option value="by_full_members">{{t "Admins and full members" }}</option>
|
2019-05-22 07:58:00 +02:00
|
|
|
|
<option value="by_members">{{t "Admins and members" }}</option>
|
2019-04-08 19:23:00 +02:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
2018-03-20 23:18:34 +01:00
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="realm_bot_creation_policy">{{t "Who can add bots" }}</label>
|
2019-04-04 16:36:12 +02:00
|
|
|
|
<select name="realm_bot_creation_policy" class="setting-widget prop-element" id="id_realm_bot_creation_policy" data-setting-widget-type="integer">
|
2018-03-20 23:18:34 +01:00
|
|
|
|
{{#each bot_creation_policy_values}}
|
|
|
|
|
<option value='{{this.code}}'>{{this.description}}</option>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2018-01-29 16:10:54 +01:00
|
|
|
|
|
2019-02-07 19:01:37 +01:00
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="realm_add_emoji_by_admins_only" class="dropdown-title">{{t "Who can add custom emoji" }}</label>
|
2019-04-04 16:36:12 +02:00
|
|
|
|
<select name="realm_add_emoji_by_admins_only" id="id_realm_add_emoji_by_admins_only" class="prop-element">
|
2019-05-22 07:58:00 +02:00
|
|
|
|
<option value="by_admins_only">{{t "Admins" }}</option>
|
|
|
|
|
<option value="by_anyone">{{t "Admins and members" }}</option>
|
2019-02-07 19:01:37 +01:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-05-21 06:37:40 +02:00
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="realm_email_address_visibility">{{t "Who can access user email addresses (beta)" }}
|
|
|
|
|
<a href="/help/restrict-visibility-of-email-addresses" target="_blank">
|
|
|
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</label>
|
2019-04-04 16:36:12 +02:00
|
|
|
|
<select name="realm_email_address_visibility" class="setting-widget prop-element" id="id_realm_email_address_visibility" data-setting-widget-type="integer">
|
2018-08-03 22:52:21 +02:00
|
|
|
|
{{#each email_address_visibility_values}}
|
|
|
|
|
<option value='{{this.code}}'>{{this.description}}</option>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2017-05-18 14:06:57 +02:00
|
|
|
|
</div>
|
2017-07-12 23:32:14 +02:00
|
|
|
|
</div>
|
2017-05-18 14:06:57 +02:00
|
|
|
|
</form>
|
|
|
|
|
</div>
|