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">
|
2017-08-23 00:58:22 +02:00
|
|
|
<button type="button" class="exit" aria-label="{{ _('Close') }}"><span aria-hidden="true">×</span></button>
|
2017-03-14 23:22:46 +01:00
|
|
|
<h3 id="invite-user-label">{% trans %}Invite users to Zulip{% endtrans %}</h3>
|
|
|
|
</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>
|
|
|
|
{% if development_environment %}
|
|
|
|
<div class="alert" id="dev_env_msg"></div>
|
|
|
|
{% endif %}
|
2020-01-27 20:12:40 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="invitee_emails">{{ _('Emails (one on each line or comma-separated)') }}</label>
|
|
|
|
<div>
|
2017-09-26 02:38:41 +02:00
|
|
|
<textarea rows="2" id="invitee_emails" name="invitee_emails" placeholder="{{ _('One or more email addresses...') }}"></textarea>
|
2019-02-06 20:18:35 +01:00
|
|
|
{% if is_admin %}
|
2019-02-06 20:31:45 +01:00
|
|
|
<div id="invite-method-choice">
|
2020-09-04 22:03:27 +02:00
|
|
|
{{ _('or') }} <a role="button" tabindex="0" id="generate_multiuse_invite_button">{{ _('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>
|
|
|
|
{{ _('Generate invite link') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2019-02-06 20:18:35 +01:00
|
|
|
{% endif %}
|
2019-02-02 08:12:38 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-27 20:12:40 +01:00
|
|
|
<div class="input-group">
|
2020-06-21 15:50:56 +02:00
|
|
|
<label for="invite_as">{{ _('User(s) join as') }}
|
|
|
|
<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-04-20 19:55:38 +02:00
|
|
|
<option name="invite_as" value="{{ invite_as.GUEST_USER }}">{{ _('Guests') }}</option>
|
|
|
|
<option name="invite_as" selected="selected" value="{{ invite_as.MEMBER }}">{{ _('Members') }}</option>
|
2019-01-17 13:07:40 +01:00
|
|
|
{% if is_admin %}
|
2021-04-30 15:19:47 +02:00
|
|
|
<option name="invite_as" value="{{ invite_as.MODERATOR }}">{{ _('Moderators') }}</option>
|
2018-12-30 11:06:12 +01:00
|
|
|
<option name="invite_as" value="{{ invite_as.REALM_ADMIN }}">{{ _('Organization administrators') }}</option>
|
2019-01-17 13:07:40 +01:00
|
|
|
{% endif %}
|
2020-06-18 13:03:06 +02:00
|
|
|
{% if is_owner %}
|
|
|
|
<option name="invite_as" value="{{ invite_as.REALM_OWNER }}">{{ _('Organization owners') }}</option>
|
|
|
|
{% endif %}
|
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>
|
|
|
|
<label>{{ _('Streams they should join') }}</label>
|
|
|
|
<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">
|
2018-03-02 14:53:53 +01:00
|
|
|
<button class="button exit small rounded" data-dismiss="modal">{{ _('Cancel') }}</button>
|
2018-05-19 06:55:35 +02:00
|
|
|
<button id="submit-invitation" class="button small rounded sea-green" type="button"
|
|
|
|
data-loading-text="{{ _('Inviting...') }}">{{ _('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>
|