mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
We already know which list widget a `<th>` tag is associated with when we set up the event handler, so it's silly to read data from the DOM to find that widget again when the handler runs. This commit eliminates a whole class of possible errors and busy work.
42 lines
2.0 KiB
Handlebars
42 lines
2.0 KiB
Handlebars
<div id="admin-default-streams-list" class="settings-section" data-name="default-streams-list">
|
|
<div class="side-padded-container">
|
|
<p>{{#tr this}}Configure the default streams new users are subscribed to when joining your organization.{{/tr}}</p>
|
|
</div>
|
|
|
|
{{#if is_admin}}
|
|
<form class="form-horizontal default-stream-form">
|
|
<div class="add-new-default-stream-box grey-box">
|
|
<div class="wrapper">
|
|
<div class="alert" id="admin-default-stream-status"></div>
|
|
<div class="settings-section-title">{{t "Add new default stream" }}</div>
|
|
<div class="inline-block" id="default_stream_inputs">
|
|
<label for="default_stream_name">{{t "Stream name" }}</label>
|
|
<input class="create_default_stream" type="text" placeholder="{{t "Stream name" }}" name="stream_name" autocomplete="off" aria-label="{{t "Stream name" }}">
|
|
</div>
|
|
<div class="inline-block">
|
|
<button type="submit" id="do_submit_stream" class="button rounded sea-green">{{t "Add stream" }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{{/if}}
|
|
|
|
<input type="text" class="search" placeholder="{{t 'Filter streams' }}" aria-label="{{t 'Filter streams' }}"/>
|
|
<div class="clear-float"></div>
|
|
|
|
<div class="progressive-table-wrapper" data-simplebar>
|
|
<table class="table table-condensed table-striped wrapped-table">
|
|
<thead>
|
|
<th class="active" data-sort="alphabetic" data-sort-prop="name">{{t "Name" }}</th>
|
|
{{#if is_admin}}
|
|
<th class="actions">{{t "Actions" }}</th>
|
|
{{/if}}
|
|
</thead>
|
|
<tbody class="required-text" data-empty="{{t 'No default streams match you current filter.' }}"
|
|
id="admin_default_streams_table" class="admin_default_stream_table"></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="admin_page_default_streams_loading_indicator"></div>
|
|
</div>
|