admin settings: Restyle realm alias modal.

This commit is contained in:
Harshit Bansal
2017-01-17 16:24:15 -08:00
committed by Tim Abbott
parent 5b01694e00
commit 38c50a81ad
6 changed files with 25 additions and 12 deletions

View File

@@ -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>

View File

@@ -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}}

View File

@@ -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"