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">
|
|
|
|
<div id="invite-result"></div>
|
|
|
|
<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>
|
2017-03-14 23:22:46 +01:00
|
|
|
</div>
|
2017-10-15 18:34:47 +02:00
|
|
|
{% if is_admin %}
|
2018-05-19 06:55:35 +02:00
|
|
|
<label class="control-label" for"invite_as_admin">{{ _('User(s) join as') }}</label>
|
|
|
|
<div class="controls" id="invite_as_admin">
|
2017-10-15 18:34:47 +02:00
|
|
|
<label class="radio">
|
|
|
|
<input type="radio" name="invite_as_admin" value="false" checked/>{{ _('Regular users') }}
|
|
|
|
</label>
|
|
|
|
<label class="radio">
|
|
|
|
<input type="radio" name="invite_as_admin" value="true"/>{{ _('Organization administrators') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
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>
|
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>
|