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 }}
|
2017-03-14 23:22:46 +01:00
|
|
|
<div class="modal-body">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label" for="invitee_emails">{{ _('Emails (one on each line or comma-separated)') }}</label>
|
|
|
|
<div class="controls">
|
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">
|
|
|
|
{{ _('or') }} <a id="generate_multiuse_invite_button">{{ _('Generate invite link') }}</a>
|
|
|
|
</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>
|
2018-07-19 20:54:50 +02:00
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label" for="invite_as">{{ _('User(s) join as') }}</label>
|
|
|
|
<div class="controls">
|
|
|
|
<select id="invite_as">
|
2018-12-30 11:06:12 +01:00
|
|
|
<option name="invite_as" value="{{ invite_as.MEMBER }}">{{ _('Members') }}</option>
|
2019-01-17 13:07:40 +01:00
|
|
|
{% if is_admin %}
|
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 %}
|
2019-01-30 04:30:51 +01:00
|
|
|
<option name="invite_as" value="{{ invite_as.GUEST_USER }}">{{ _('Guests') }}</option>
|
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>
|
2017-03-14 23:22:46 +01:00
|
|
|
<div class="alert" id="invite_status"></div>
|
|
|
|
{% if development_environment %}
|
|
|
|
<div class="alert" id="dev_env_msg"></div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="control-group">
|
2018-07-06 23:28:41 +02:00
|
|
|
<label class="control-label">{{ _('Streams they should join') }}</label>
|
2017-03-14 23:22:46 +01:00
|
|
|
<div class="controls" 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>
|