{{t "Joining the organization" }}

{{> settings_save_discard_widget section_name="join-settings" }}
{{> settings_checkbox setting_name="realm_invite_required" prefix="id_" is_checked=realm_invite_required label=admin_settings_label.realm_invite_required}}
{{~! Squash whitespace so that placeholder is displayed when empty. ~}}

{{#if is_owner }} {{t "[Configure]" }} {{/if}}
{{!-- This setting is hidden unless `custom_period` --}}

{{t "Channel permissions" }}

{{> settings_save_discard_widget section_name="stream-permissions" }}
{{> ../dropdown_widget_with_label widget_name="realm_can_create_public_channel_group" label=(t 'Who can create public channels') value_type="number"}} {{> upgrade_tip_widget }} {{> settings_checkbox setting_name="realm_enable_spectator_access" prefix="id_" is_checked=realm_enable_spectator_access label=admin_settings_label.realm_enable_spectator_access is_disabled=disable_enable_spectator_access_setting help_link="/help/public-access-option"}} {{> ../dropdown_widget_with_label widget_name="realm_can_create_web_public_channel_group" label=(t 'Who can create web-public channels') value_type="number"}} {{> ../dropdown_widget_with_label widget_name="realm_can_create_private_channel_group" label=(t 'Who can create private channels') value_type="number"}}

{{t "Direct message permissions" }} {{> ../help_link_widget link="/help/restrict-direct-messages" }}

{{> settings_save_discard_widget section_name="direct-message-permissions" }}
{{> ../dropdown_widget_with_label widget_name="realm_direct_message_permission_group" label=(t 'Who can authorize a direct message conversation') value_type="number" }} {{> ../dropdown_widget_with_label widget_name="realm_direct_message_initiator_group" label=(t 'Who can start a direct message conversation') value_type="number" }}

{{t "Message editing" }} {{> ../help_link_widget link="/help/restrict-message-editing-and-deletion" }}

{{> settings_save_discard_widget section_name="msg-editing" }}
{{> settings_checkbox setting_name="realm_allow_message_editing" prefix="id_" is_checked=realm_allow_message_editing label=admin_settings_label.realm_allow_message_editing}} {{> settings_checkbox setting_name="realm_allow_edit_history" prefix="id_" is_checked=realm_allow_edit_history label=admin_settings_label.realm_allow_edit_history}}

{{t "Moving messages" }} {{> ../help_link_widget link="/help/restrict-moving-messages" }}

{{> settings_save_discard_widget section_name="moving-msgs" }}
{{> ../dropdown_widget_with_label widget_name="realm_can_move_messages_between_channels_group" label=(t 'Who can move messages to another channel') value_type="number" }}

{{t "Message deletion" }} {{> ../help_link_widget link="/help/delete-a-message" }}

{{> settings_save_discard_widget section_name="msg-deletion" }}
{{> ../dropdown_widget_with_label widget_name="realm_can_delete_any_message_group" label=(t 'Who can delete any message') value_type="number" }} {{> ../dropdown_widget_with_label widget_name="realm_can_delete_own_message_group" label=(t 'Who can delete their own messages') value_type="number" }}

{{t "User identity" }} {{> ../help_link_widget link="/help/restrict-name-and-email-changes" }}

{{> settings_save_discard_widget section_name="user-identity" }}
{{> settings_checkbox setting_name="realm_require_unique_names" prefix="id_" is_checked=realm_require_unique_names label=admin_settings_label.realm_require_unique_names}} {{> settings_checkbox setting_name="realm_name_changes_disabled" prefix="id_" is_checked=realm_name_changes_disabled label=admin_settings_label.realm_name_changes_disabled}} {{> settings_checkbox setting_name="realm_email_changes_disabled" prefix="id_" is_checked=realm_email_changes_disabled label=admin_settings_label.realm_email_changes_disabled}} {{> settings_checkbox setting_name="realm_avatar_changes_disabled" prefix="id_" is_checked=realm_avatar_changes_disabled label=admin_settings_label.realm_avatar_changes_disabled}}

{{t "Guests" }}

{{> settings_save_discard_widget section_name="guest-settings" }}
{{> settings_checkbox setting_name="realm_enable_guest_user_indicator" prefix="id_" is_checked=realm_enable_guest_user_indicator label=admin_settings_label.realm_enable_guest_user_indicator}} {{> ../dropdown_widget_with_label widget_name="realm_can_access_all_users_group" label=(t 'Who can view all other users in the organization') value_type="number" help_link="/help/guest-users#configure-whether-guests-can-see-all-other-users"}}

{{t "Other permissions" }}

{{> settings_save_discard_widget section_name="other-permissions" }}
{{> ../dropdown_widget_with_label widget_name="realm_can_create_groups" label=(t 'Who can create user groups') value_type="number" is_setting_disabled=(not is_owner)}} {{> ../dropdown_widget_with_label widget_name="realm_can_manage_all_groups" label=(t 'Who can manage user groups') value_type="number" is_setting_disabled=(not is_owner)}} {{> ../dropdown_widget_with_label widget_name="realm_can_add_custom_emoji_group" label=(t 'Who can add custom emoji') value_type="number"}}