mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
Include new field on Realm to control whether e-mail invitations are required separately from whether the e-mail domain must match. Allow control of these fields from admin panel. Update logic in registration page to use these fields. (imported from commit edc7f0a4c43b57361d9349e258ad4f217b426f88)
99 lines
4.8 KiB
Handlebars
99 lines
4.8 KiB
Handlebars
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="administration">
|
||
<div class="alert" id="administration-status"></div>
|
||
<h1>Administration</h1>
|
||
|
||
<form class="form-horizontal admin-realm">
|
||
<div class="control-group admin-realm">
|
||
<div class="alert" id="admin-realm-name-status"></div>
|
||
<div class="alert" id="admin-realm-restricted-to-domain-status"></div>
|
||
<div class="alert" id="admin-realm-invite-required-status"></div>
|
||
<label for="realm_name" class="control-label">Your organization's name</label>
|
||
<div class="controls">
|
||
<input type="text" id="id_realm_name" name="realm_name" class="admin-realm-name"
|
||
value="{{ realm_name }}" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label for="realm_restricted_to_domain" title="If checked, only users with an @{{ domain }} e-mail address will be able to join the organization." class="control-label">Users restricted to {{ domain }}</label>
|
||
<div class="controls">
|
||
<input type="checkbox" id="id_realm_restricted_to_domain" name="realm_restricted_to_domain" {{#if realm_restricted_to_domain}}checked="checked"{{/if}} />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label for="realm_invite_required" title="If checked, users must be invited in order to join your organization." class="control-label">E-mail invitation required</label>
|
||
<div class="controls">
|
||
<input type="checkbox" id="id_realm_invite_required" name="realm_invite_required" {{#if realm_invite_required}}checked="checked"{{/if}} />
|
||
</div>
|
||
</div>
|
||
<input type="submit" class="btn btn-default" value="Save" />
|
||
</form>
|
||
|
||
<h2>Users</h2>
|
||
<table class="table table-condensed table-striped">
|
||
<tbody id="admin_users_table" class="admin_user_table">
|
||
<th>Name</th>
|
||
<th>Email</th>
|
||
<th>Actions</th>
|
||
</tbody>
|
||
</table>
|
||
<div id="admin_page_users_loading_indicator"></div>
|
||
<h2>Bots</h2>
|
||
<table class="table table-condensed table-striped">
|
||
<tbody id="admin_bots_table" class="admin_user_table">
|
||
<th>Name</th>
|
||
<th>Email</th>
|
||
<th>Owner</th>
|
||
<th>Actions</th>
|
||
</tbody>
|
||
</table>
|
||
<div id="admin_page_bots_loading_indicator"></div>
|
||
<h2>Streams</h2>
|
||
<table class="table table-condensed table-striped">
|
||
<tbody id="admin_streams_table" class="admin_stream_table">
|
||
<th>Name</th>
|
||
<th>Actions</th>
|
||
</tbody>
|
||
</table>
|
||
<div id="admin_page_streams_loading_indicator"></div>
|
||
<h2>Deactivated Users</h2>
|
||
<table class="table table-condensed table-striped">
|
||
<tbody id="admin_deactivated_users_table" class="admin_user_table">
|
||
<th>Name</th>
|
||
<th>Email</th>
|
||
<th>Actions</th>
|
||
</tbody>
|
||
</table>
|
||
<div id="admin_page_deactivated_users_loading_indicator"></div>
|
||
<div id="deactivation_user_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="deactivation_user_modal_label" aria-hidden="true">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h3 id="deactivation_user_modal_label">Deactivate <span class="email"></span></h3>
|
||
</div>
|
||
<div class="modal-body">
|
||
<p>By deactivating <strong><span class="user_name"></span></strong> <<span class="email"></span>>, they will be logged out immediately.</p>
|
||
<p>Their password will be cleared from our systems, and any bots they maintain will be disabled.</p>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
||
<button class="btn btn-danger" id="do_deactivate_user_button">Deactivate now</button>
|
||
</div>
|
||
</div>
|
||
<div id="deactivation_stream_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="deactivation_stream_modal_label" aria-hidden="true">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h3 id="deactivation_stream_modal_label">Delete stream <span class="stream_name"></span></h3>
|
||
</div>
|
||
<div class="modal-body">
|
||
<p>Deleting this stream will immediately unsubscribe everyone, and the stream's content will not be recoverable. <strong>Are you sure you want to do this?</strong></p>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
||
<button class="btn btn-danger" id="do_deactivate_stream_button">Yes, delete this stream</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|