2017-03-14 23:22:46 +01:00
|
|
|
|
<div id="invite-user" class="overlay flex" tabindex="-1" role="dialog" data-overlay="invite"
|
2017-02-28 04:44:31 +01:00
|
|
|
|
aria-labelledby="invite-user-label" aria-hidden="true">
|
2017-03-14 23:22:46 +01:00
|
|
|
|
<div class="overlay-content">
|
|
|
|
|
<div class="modal-header">
|
2017-07-07 17:30: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>
|
|
|
|
|
<form id="invite_user_form" class="form-horizontal"
|
|
|
|
|
action="/json/invite_users" method="POST">{{ csrf_input }}
|
|
|
|
|
<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">
|
|
|
|
|
<textarea rows="2" id="invitee_emails"
|
|
|
|
|
name="invitee_emails"
|
2017-06-05 23:41:36 +02:00
|
|
|
|
placeholder="{{ _('One or more email addresses...') }}">
|
|
|
|
|
</textarea>
|
2017-03-14 23:22:46 +01:00
|
|
|
|
</div>
|
2017-07-12 11:11:06 +02:00
|
|
|
|
<label class="control-label" for="custom_invite_body">{{ _('Custom invitation message (if you want to add one)') }}</label>
|
2017-03-14 23:22:46 +01:00
|
|
|
|
<div class="controls">
|
2017-07-12 11:11:06 +02:00
|
|
|
|
<textarea rows="2" id="custom_invite_body"
|
2017-03-14 23:22:46 +01:00
|
|
|
|
name="custom_body"
|
2017-06-05 23:41:36 +02:00
|
|
|
|
placeholder="{{ _('Custom message') }}">
|
|
|
|
|
</textarea>
|
2017-03-14 23:22:46 +01: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">
|
|
|
|
|
<label class="control-label" for="streams_to_add">{{ _('Streams they should join') }}</label>
|
|
|
|
|
<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">
|
2017-07-07 17:30:22 +02:00
|
|
|
|
<button class="btn btn-default exit" data-dismiss="modal">{{ _('Cancel') }}</button>
|
2017-03-14 23:22:46 +01:00
|
|
|
|
<button id="submit-invitation" class="btn btn-primary"
|
|
|
|
|
data-loading-text="{{ _('Inviting...') }}" type="submit">{{ _('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>
|