2023-04-08 13:16:25 +02:00
<form id="invite-user-form">
2023-02-02 17:29:51 +01:00
<div class="setup-tips-container {{ # unless is_admin }} hide {{ / unless }} "></div>
2022-10-11 18:02:39 +02:00
{{ # if development_environment }}
<div class="alert" id="dev_env_msg"></div>
{{ / if }}
2023-04-23 17:55:22 +02:00
{{ # if ( not user_has_email_set ) }}
2023-09-01 12:32:53 +02:00
<div class="tip">
{{ # tr }}
You must <z-link>configure your email</z-link> to access this feature.
{{ #*inline "z-link" }} <a href="/help/demo-organizations#configure-email-for-demo-organization-owner" target="_blank" rel="noopener noreferrer"> {{ > @partial-block }} </a> {{ / inline }}
{{ / tr }}
</div>
2023-04-23 17:55:22 +02:00
{{ else if ( not can_subscribe_other_users ) }}
<div class="invite-stream-notice">
2024-05-15 15:53:33 +02:00
{{ # tr }} The users you invite will be automatically added to <z-link>default channels</z-link> for this organization, as you do not have permission to configure which channels new users join.
2024-05-15 18:22:45 +02:00
{{ #*inline "z-link" }} <a target="_blank" rel="noopener noreferrer" href="#organization/default-channels-list"> {{ > @partial-block }} </a> {{ / inline }}
2023-04-23 17:55:22 +02:00
{{ / tr }}
</div>
{{ / if }}
2022-10-11 18:02:39 +02:00
<div class="input-group">
2024-09-11 21:24:49 +02:00
<div id="invite_users_option_tabs_container"></div>
2023-03-16 11:29:00 +01:00
<div id="invitee_emails_container">
2024-04-01 15:48:08 +02:00
<label for="invitee_emails" class="modal-field-label"> {{ t "Emails (one on each line or comma-separated)" }} </label>
2024-03-23 19:36:45 +01:00
<div class="pill-container">
<div class="input" contenteditable="true"></div>
</div>
2022-10-11 18:02:39 +02:00
</div>
</div>
2024-09-11 21:46:44 +02:00
<div class="input-group" id="receive-invite-acceptance-notification-container">
2024-04-18 19:38:47 +02:00
<label class="checkbox display-block">
<input type="checkbox" id="receive-invite-acceptance-notification" checked/>
2024-09-04 17:32:16 +02:00
<span class="rendered-checkbox"></span>
2024-04-18 19:38:47 +02:00
{{ t "Send me a direct message when my invitation is accepted" }}
</label>
</div>
2022-10-11 18:02:39 +02:00
<div class="input-group">
2024-04-01 15:48:08 +02:00
<label for="expires_in" class="modal-field-label"> {{ t "Invitation expires after" }} </label>
2023-07-26 11:02:02 +02:00
<select id="expires_in" class="invite-user-select modal_select bootstrap-focus-style">
2022-10-11 18:02:39 +02:00
{{ # each expires_in_options }}
<option {{ # if this .default }} selected {{ / if }} name="expires_in" value=" {{ this .value }} "> {{ this .description }} </option>
{{ / each }}
</select>
2024-10-30 21:13:53 +01:00
<p class="time-input-formatted-description"></p>
2024-10-28 05:45:40 +01:00
<div id="custom-invite-expiration-time" class="dependent-settings-block custom-time-input-container">
2024-04-01 15:48:08 +02:00
<label for="expires_in" class="modal-field-label"> {{ t "Custom time" }} </label>
2024-10-27 21:06:37 +01:00
<input type="text" autocomplete="off" name="custom-expiration-time" id="custom-expiration-time-input" class="custom-time-input-value inline-block" value="" maxlength="3"/>
<select class="custom-time-input-unit invite-user-select modal_select bootstrap-focus-style" id="custom-expiration-time-unit">
2022-10-11 18:02:39 +02:00
{{ # each time_choices }}
2024-06-26 20:27:16 +02:00
<option name="custom_time_choice" class="custom_time_choice" value=" {{ this .name }} "> {{ this .description }} </option>
2022-10-11 18:02:39 +02:00
{{ / each }}
</select>
2024-10-30 21:13:53 +01:00
<p class="custom-time-input-formatted-description"></p>
2022-10-11 18:02:39 +02:00
</div>
</div>
<div class="input-group">
2024-04-01 15:48:08 +02:00
<label for="invite_as" class="modal-field-label"> {{ t "Users join as" }}
2022-10-11 18:02:39 +02:00
{{ > help_link_widget link = "/help/roles-and-permissions" }}
</label>
2023-07-26 11:02:02 +02:00
<select id="invite_as" class="invite-user-select modal_select bootstrap-focus-style">
2022-10-11 18:02:39 +02:00
<option name="invite_as" value=" {{ in vite_as_options .guest .code }} "> {{ t "Guests" }} </option>
<option name="invite_as" selected="selected" value=" {{ in vite_as_options .member .code }} "> {{ t "Members" }} </option>
{{ # if is_admin }}
<option name="invite_as" value=" {{ in vite_as_options .moderator .code }} "> {{ t "Moderators" }} </option>
2024-07-23 21:23:37 +02:00
<option name="invite_as" value=" {{ in vite_as_options .admin .code }} "> {{ t "Administrators" }} </option>
2022-10-11 18:02:39 +02:00
{{ / if }}
{{ # if is_owner }}
2024-07-23 21:23:37 +02:00
<option name="invite_as" value=" {{ in vite_as_options .owner .code }} "> {{ t "Owners" }} </option>
2022-10-11 18:02:39 +02:00
{{ / if }}
</select>
</div>
2023-04-23 17:55:22 +02:00
{{ # if can_subscribe_other_users }}
2022-10-11 18:02:39 +02:00
<div>
2024-04-18 15:20:36 +02:00
<label> {{ t "Channels they should join" }} </label>
2022-10-11 18:02:39 +02:00
<div id="streams_to_add">
2023-05-09 11:30:41 +02:00
{{ # if show_select_default_streams_option }}
2024-09-11 21:46:44 +02:00
<div class="select_default_streams">
2024-01-24 14:03:43 +01:00
<label class="checkbox display-block modal-field-label">
2023-05-09 11:30:41 +02:00
<input type="checkbox" id="invite_select_default_streams" checked="checked" />
2024-09-04 17:32:16 +02:00
<span class="rendered-checkbox"></span>
2024-04-18 15:20:36 +02:00
{{ t 'Default channels for this organization' }}
2023-05-09 11:30:41 +02:00
</label>
</div>
{{ / if }}
2024-01-24 14:03:43 +01:00
<div id="invite_streams_container" class="add_streams_container">
<div class="pill-container stream_picker">
<div class="input" contenteditable="true"
2024-07-10 00:51:44 +02:00
data-placeholder=" {{ t 'Channels' }} ">
2024-01-24 14:03:43 +01:00
{{ ~ ! Squash whitespace so that placeholder is displayed when empty . ~ }}
</div>
</div>
2022-10-11 18:02:39 +02:00
</div>
</div>
</div>
2024-10-09 18:30:33 +02:00
<div id="guest_visible_users_container" class="input-group" style="display: none;">
</div>
2023-04-23 17:55:22 +02:00
{{ / if }}
2022-10-11 18:02:39 +02:00
</form>