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-22 14:07:52 +01:00
<div class="alert admin-realm-failed-change-status"></div>
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-03-20 23:18:34 +01:00
<div class="inline-block organization-permissions-parent">
<div class="input-group admin-restricted-to-domain">
<label class="checkbox">
<input type="checkbox" name="realm_restricted_to_domain" id="id_realm_restricted_to_domain"
2018-04-03 10:07:23 +02:00
{{ # if realm_restricted_to_domain }} checked="checked" {{ / if }} />
2018-03-20 23:18:34 +01:00
<span></span>
</label>
<label for="id_realm_restricted_to_domain" id="realm_restricted_to_domains_label" class="inline-block" />
{{ # if is_admin }}
<a data-toggle="modal" href="#realm_domains_modal"> {{ t "[Configure]" }} </a>
{{ / if }}
</div>
2017-05-18 14:06:57 +02:00
2018-03-20 23:18:34 +01:00
<div class="input-group admin-disallow-disposable-email-addresses {{ # if realm_restricted_to_domain }} control-label-disabled {{ / if }} ">
<label class="checkbox">
<input type="checkbox" name="realm_disallow_disposable_email_addresses" id="id_realm_disallow_disposable_email_addresses"
2018-04-03 10:07:23 +02:00
{{ # if realm_disallow_disposable_email_addresses }} checked="checked" {{ / if }} {{ # if realm_restricted_to_domain }} disabled="disabled" {{ / if }} />
2018-03-20 23:18:34 +01:00
<span></span>
</label>
<label for="id_realm_disallow_disposable_email_addresses" id="id_realm_disallow_disposable_email_addresses_label" class="inline-block">
{{ t "Prevent users from signing up using disposable email addresses" }}
</label>
<i class="icon-vector-info-sign settings-info-icon realm_disallow_disposable_email_addresses_tooltip" data-toggle="tooltip" title=" {{ t 'Disallow new signups using disposable email addresses, such as those generated by mailinator.com.' }} "></i>
</div>
2018-03-05 19:19:19 +01:00
2018-04-01 11:32:13 +02:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "realm_invite_required"
"prefix" "id_"
"is_checked" realm_invite_required
"label" admin_settings_label.realm_invite_required}}
2017-05-18 14:06:57 +02:00
2018-03-20 23:18:34 +01:00
<div class="input-group disableable {{ # unless realm_invite_required }} control-label-disabled {{ / unless }} ">
<label class="checkbox">
<input type="checkbox" name="realm_invite_by_admins_only" id="id_realm_invite_by_admins_only"
2018-04-03 10:07:23 +02:00
{{ # unless realm_invite_required }} disabled="disabled" {{ / unless }}
{{ # if realm_invite_by_admins_only }} checked="checked" {{ / if }} />
2018-03-20 23:18:34 +01:00
<span></span>
</label>
<label for="id_realm_invite_by_admins_only" id="id_realm_invite_by_admins_only_label" class="inline-block">
{{ t "Only admins can invite new users" }}
</label>
</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}}
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">
<label for="realm_create_stream_permission" class="dropdown-title"> {{ t "Who can create streams" }} </label>
<select name="realm_create_stream_permission" id="id_realm_create_stream_permission">
<option value="by_anyone"> {{ t "Everyone" }} </option>
<option value="by_admins_only"> {{ t "Admins only" }} </option>
<option value="by_admin_user_with_three_days_old"> {{ t "All admins, and users with accounts at least 3 days old." }} </option>
<option value="by_admin_user_with_custom_time"> {{ t "All admins, and users with accounts at least N days old." }} </option>
</select>
</div>
<div class="inline-block">
<label for="aitin" class="inline-block"> {{ t "Minimum account age (N)" }} :</label>
<input type="text" id="id_realm_waiting_period_threshold"
2018-04-03 10:07:23 +02:00
name="realm_waiting_period_threshold"
class="admin-realm-message-content-edit-limit-minutes"
value=" {{ realm_waiting_period_threshold }} "/>
2018-03-20 23:18:34 +01:00
</div>
2018-01-29 16:10:54 +01:00
2018-03-20 23:18:34 +01:00
<div class="input-group">
<label for="realm_bot_creation_policy"> {{ t "Who can add bots" }} </label>
<select name="realm_bot_creation_policy" id="id_realm_bot_creation_policy">
{{ # each bot_creation_policy_values }}
<option value=' {{ this .code }} '> {{ this .description }} </option>
{{ / each }}
</select>
</div>
2018-01-29 16:10:54 +01:00
2018-03-20 23:18:34 +01:00
<div class="inline-block">
<label for="realm_add_emoji_by_admins_only" class="dropdown-title"> {{ t "Who can add custom emoji" }} </label>
<select name="realm_add_emoji_by_admins_only" id="id_realm_add_emoji_by_admins_only">
<option value="by_anyone"> {{ t "Everyone" }} </option>
<option value="by_admins_only"> {{ t "Admins only" }} </option>
</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>