2012-12-05 22:48:15 +01:00
|
|
|
|
<div class="modal hide" id="invite-user" tabindex="-1" role="dialog"
|
|
|
|
|
aria-labelledby="invite-user-label" aria-hidden="true">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2016-10-13 13:16:07 +02:00
|
|
|
|
<h3 id="invite-user-label">{% trans %}Invite users to {{product_name}}{% endtrans %}</h3>
|
2012-12-05 22:48:15 +01:00
|
|
|
|
</div>
|
|
|
|
|
<form id="invite_user_form" class="form-horizontal"
|
2016-04-21 08:48:33 +02:00
|
|
|
|
action="/json/invite_users" method="POST">{{ csrf_input }}
|
2012-12-05 22:48:15 +01:00
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="control-group">
|
|
|
|
|
<div id="invite-result"></div>
|
2016-04-21 08:48:33 +02:00
|
|
|
|
<label class="control-label" for="invitee_emails">{{ _('Emails (one on each line or comma-separated)') }}</label>
|
2012-12-05 22:48:15 +01:00
|
|
|
|
<div class="controls">
|
|
|
|
|
<textarea rows="2" id="invitee_emails"
|
|
|
|
|
name="invitee_emails"
|
2016-06-13 08:40:35 +02:00
|
|
|
|
placeholder="{{ _('One or more email addresses...') }}"></textarea>
|
2012-12-05 22:48:15 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="alert" id="invite_status"></div>
|
2016-06-20 21:58:59 +02:00
|
|
|
|
{% if development_environment %}
|
|
|
|
|
<div class="alert" id="dev_env_msg"></div>
|
|
|
|
|
{% endif %}
|
2012-12-05 22:48:15 +01:00
|
|
|
|
<div class="control-group">
|
2016-04-21 08:48:33 +02:00
|
|
|
|
<label class="control-label" for="streams_to_add">{{ _('Streams they should join') }}</label>
|
2012-12-05 22:48:15 +01:00
|
|
|
|
<div class="controls" id="streams_to_add"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
2016-04-21 08:48:33 +02:00
|
|
|
|
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">{{ _('Cancel') }}</button>
|
|
|
|
|
<button id="submit-invitation" class="btn btn-primary" data-loading-text="Inviting..." type="submit">{{ _('Invite') }}</button>
|
2012-12-05 22:48:15 +01:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|