Skip to content

Commit

Permalink
settings: Make authentication settings more like other panels.
Browse files Browse the repository at this point in the history
This may still needs further work to replace the table with a more
standard implementation.

Fixes part of zulip#21001.
  • Loading branch information
jai2201 authored and timabbott committed Feb 1, 2022
1 parent 30fec0c commit 3800340
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions static/styles/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,14 @@ td .button {
z-index: 1;
}

#id_realm_authentication_methods {
width: 20%;

td {
border: none;
}
}

.table-striped {
table-layout: auto;
border-collapse: separate;
Expand Down
7 changes: 4 additions & 3 deletions static/templates/settings/admin_auth_methods_list.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<tr class="method_row" data-method="{{method}}">
<td>
<span class="method">{{method}}</span>
</td>
<td>
<label class="checkbox">
<input type="checkbox" {{#if enabled}}checked="checked"{{/if}} {{#unless is_owner}}disabled{{/unless}}/>
<span></span>
</label>
</td>
<td>
<span class="method">{{method}}</span>
</td>

</tr>

0 comments on commit 3800340

Please sign in to comment.