mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
admin settings: Restyle realm alias modal.
This commit is contained in:
committed by
Tim Abbott
parent
5b01694e00
commit
38c50a81ad
@@ -74,20 +74,28 @@
|
||||
<button class="button btn-danger" id="do_deactivate_stream_button">{{t "Yes, delete this stream" }}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="realm_aliases_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="realm_aliases_modal_label" aria-hidden="true">
|
||||
<div id="realm_aliases_modal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="realm_aliases_modal_label" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3 id="realm_aliases_modal_label">{{t "Allowed domains" }}</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table table-condensed table-stripped" id="alias_table">
|
||||
<th>{{t "Domain" }}</th>
|
||||
<th>{{t "Action" }}</th>
|
||||
<thead>
|
||||
<th>{{t "Domain" }}</th>
|
||||
<th>{{t "Action" }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td><input type="text" id="new_alias" placeholder={{t "acme.com" }}></input></td>
|
||||
<td><button type="button" class="btn btn-primary" id="add_alias">{{t "Add" }}</button></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer centered-footer">
|
||||
<input type="text" id="new_alias"></input>
|
||||
<button type="button" id="add_alias">{{t "Add" }}</button>
|
||||
<div class="aliases_info"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{#with alias}}
|
||||
<tr id="alias_{{id}}">
|
||||
<td class="domain">{{domain}}</td>
|
||||
<td><button class="btn btn-danger btn-sm delete_alias" data-id="{{id}}">{{t "Delete" }}</button></td>
|
||||
<td><button class="btn btn-danger btn-sm delete_alias" data-id="{{id}}">{{t "Remove" }}</button></td>
|
||||
</tr>
|
||||
{{/with}}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<label for="id_realm_restricted_to_domain" class="inline-block" id="realm_restricted_to_domains_label"
|
||||
title="{{#tr this}}If checked, only users with an e-mail address ending in these domains will be able to join the organization.{{/tr}}">
|
||||
</label>
|
||||
<a data-toggle="modal" href="#realm_aliases_modal">{{t "Change domains" }}</a>
|
||||
<a data-toggle="modal" href="#realm_aliases_modal">{{t "[Add or Change]" }}</a>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="checkbox" class="inline-block" id="id_realm_invite_required" name="realm_invite_required"
|
||||
|
||||
Reference in New Issue
Block a user