2017-11-30 00:38:16 +01:00
|
|
|
<div id="invite-user" class="overlay flex new-style" tabindex="-1" role="dialog" data-overlay="invite"
|
2018-04-05 08:38:46 +02:00
|
|
|
aria-labelledby="invite-user-label" aria-hidden="true">
|
2017-11-30 00:13:15 +01:00
|
|
|
<div class="overlay-content modal-bg">
|
2017-03-14 23:22:46 +01:00
|
|
|
<div class="modal-header">
|
2021-06-14 11:49:01 +02:00
|
|
|
<button type="button" class="exit" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button>
|
|
|
|
<h3 id="invite-user-label">{{t "Invite users to Zulip" }}</h3>
|
2017-03-14 23:22:46 +01:00
|
|
|
</div>
|
2018-05-19 06:55:35 +02:00
|
|
|
<form id="invite_user_form" class="form-horizontal">{{ csrf_input }}
|
2019-05-29 22:07:05 +02:00
|
|
|
<div class="modal-body" data-simplebar data-simplebar-auto-hide="false">
|
2019-02-11 22:37:07 +01:00
|
|
|
<div class="alert" id="invite_status"></div>
|
2021-06-14 11:49:01 +02:00
|
|
|
{{#if development_environment}}
|
2019-02-11 22:37:07 +01:00
|
|
|
<div class="alert" id="dev_env_msg"></div>
|
2021-06-14 11:49:01 +02:00
|
|
|
{{/if}}
|
2020-01-27 20:12:40 +01:00
|
|
|
<div class="input-group">
|
2021-06-14 11:49:01 +02:00
|
|
|
<label for="invitee_emails">{{t "Emails (one on each line or comma-separated)" }}</label>
|
2020-01-27 20:12:40 +01:00
|
|
|
<div>
|
2021-06-14 11:49:01 +02:00
|
|
|
<textarea rows="2" id="invitee_emails" name="invitee_emails" placeholder="{{t 'One or more email addresses...' }}"></textarea>
|
|
|
|
{{#if is_admin}}
|
2019-02-06 20:31:45 +01:00
|
|
|
<div id="invite-method-choice">
|
2021-06-14 11:49:01 +02:00
|
|
|
{{t "or" }} <a role="button" tabindex="0" id="generate_multiuse_invite_button">{{t "Generate invite link" }}</a>
|
2019-02-06 20:31:45 +01:00
|
|
|
</div>
|
|
|
|
<div id="multiuse_radio_section">
|
|
|
|
<label class="checkbox display-block" for="generate_multiuse_invite_radio">
|
|
|
|
<input type="checkbox" name="generate_multiuse_invite_radio" id="generate_multiuse_invite_radio"/>
|
|
|
|
<span></span>
|
2021-06-14 11:49:01 +02:00
|
|
|
{{t "Generate invite link" }}
|
2019-02-06 20:31:45 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
2021-06-14 11:49:01 +02:00
|
|
|
{{/if}}
|
2019-02-02 08:12:38 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-15 11:49:36 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="expires_in">{{t "Invitation expires after" }}</label>
|
|
|
|
<div>
|
|
|
|
<select id="expires_in">
|
|
|
|
{{#each expires_in_options}}
|
|
|
|
<option {{#if this.default }}selected{{/if}} name="expires_in" value="{{this.value}}">{{this.description}}</option>
|
|
|
|
{{/each}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p id="expires_on"></p>
|
|
|
|
</div>
|
2020-01-27 20:12:40 +01:00
|
|
|
<div class="input-group">
|
2021-06-14 11:49:01 +02:00
|
|
|
<label for="invite_as">{{t "User(s) join as" }}
|
2020-06-21 15:50:56 +02:00
|
|
|
<a href="/help/roles-and-permissions" target="_blank" rel="noopener noreferrer">
|
|
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</label>
|
2020-01-27 20:12:40 +01:00
|
|
|
<div>
|
2018-07-19 20:54:50 +02:00
|
|
|
<select id="invite_as">
|
2021-06-14 11:49:01 +02:00
|
|
|
<option name="invite_as" value="{{ invite_as_options.guest.code }}">{{t "Guests" }}</option>
|
|
|
|
<option name="invite_as" selected="selected" value="{{ invite_as_options.member.code }}">{{t "Members" }}</option>
|
|
|
|
{{#if is_admin}}
|
|
|
|
<option name="invite_as" value="{{ invite_as_options.moderator.code }}">{{t "Moderators" }}</option>
|
|
|
|
<option name="invite_as" value="{{ invite_as_options.admin.code }}">{{t "Organization administrators" }}</option>
|
|
|
|
{{/if}}
|
|
|
|
{{#if is_owner}}
|
|
|
|
<option name="invite_as" value="{{ invite_as_options.owner.code }}">{{t "Organization owners" }}</option>
|
|
|
|
{{/if}}
|
2018-07-19 20:54:50 +02:00
|
|
|
</select>
|
2017-10-15 18:34:47 +02:00
|
|
|
</div>
|
2017-02-28 04:44:31 +01:00
|
|
|
</div>
|
2020-01-27 20:12:40 +01:00
|
|
|
<div>
|
2021-06-14 11:49:01 +02:00
|
|
|
<label>{{t "Streams they should join" }}</label>
|
2020-01-27 20:12:40 +01:00
|
|
|
<div id="streams_to_add"></div>
|
2017-02-28 04:44:31 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-14 23:22:46 +01:00
|
|
|
<div class="modal-footer">
|
2021-06-14 11:49:01 +02:00
|
|
|
<button class="button exit small rounded" data-dismiss="modal">{{t "Cancel" }}</button>
|
2018-05-19 06:55:35 +02:00
|
|
|
<button id="submit-invitation" class="button small rounded sea-green" type="button"
|
2021-11-21 16:17:01 +01:00
|
|
|
data-loading-text="{{t 'Inviting...' }}">
|
|
|
|
{{t "Invite" }}
|
|
|
|
</button>
|
2019-02-06 20:32:06 +01:00
|
|
|
<div class="alert" id="multiuse_invite_status"></div>
|
2017-02-28 04:44:31 +01:00
|
|
|
</div>
|
2017-03-14 23:22:46 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2012-12-05 22:48:15 +01:00
|
|
|
</div>
|