2018-02-09 20:05:56 +01:00
|
|
|
{{#render_subscribers}}
|
2018-02-14 17:59:01 +01:00
|
|
|
<div class="subscriber_list_settings_container" {{#unless can_access_subscribers}}style="display: none"{{/unless}}>
|
2018-03-11 15:05:59 +01:00
|
|
|
<div class="subscriber_list_settings">
|
2021-07-08 22:54:57 +02:00
|
|
|
<h3 class="stream_setting_subsection_title float-left">
|
2018-03-11 15:05:59 +01:00
|
|
|
{{t "Stream membership" }}
|
2021-07-08 22:54:57 +02:00
|
|
|
</h3>
|
2020-04-11 21:49:51 +02:00
|
|
|
<div class="subscriber-search float-right">
|
|
|
|
<input type="text" class="search" placeholder="{{t 'Search subscribers' }}" />
|
|
|
|
</div>
|
|
|
|
<div class="subscriber_list_add float-left">
|
edit subscribers: Lift form tag to parent template.
For our Subscribers tab we want to enclose our
add-subscriber widget in a form for now, and we
continue to do so, but now we have the form tag
getting created in the parent template, not the
child.
Here is why:
We want to re-use our add-subscriber widget in an
upcoming commit for when you create streams.
In our create-stream UI, there is already an outer
<form>...</form> section of the HTML for the entire
process of creating a stream.
HTML does not yet you nest forms, and even though
browsers just silently ignore an inner form, we won't
want to create semantically incorrect HTML.
Therefore, we want the child template not to have
the form tags around them.
It's possible that we don't really even want to
enclose the input-pill widget and Add button inside
a form for the Subscribers tab, but tweaking that
for now is too risky. (We don't really take advantage
of the form tag in any meaningful way, since we
don't directly submit form data to the server, and
we can't use a single submit handler for the Enter
key and Add button due to some magic in our input
pills.)
2022-02-15 23:20:30 +01:00
|
|
|
<form>
|
|
|
|
{{> add_subscribers_form}}
|
|
|
|
</form>
|
2021-06-30 22:57:50 +02:00
|
|
|
<div class="stream_subscription_request_result"></div>
|
2018-03-11 15:05:59 +01:00
|
|
|
</div>
|
|
|
|
<div class="clear-float"></div>
|
2018-02-09 20:05:56 +01:00
|
|
|
</div>
|
2018-03-11 15:05:59 +01:00
|
|
|
<div class="subscriber-list-box">
|
2019-05-17 23:11:33 +02:00
|
|
|
<div class="subscriber_list_container" data-simplebar>
|
2018-03-11 15:05:59 +01:00
|
|
|
<div class="subscriber_list_loading_indicator"></div>
|
2021-11-02 19:08:10 +01:00
|
|
|
<table class="subscriber-list table table-striped">
|
|
|
|
<thead class="table-sticky-headers">
|
|
|
|
<th>{{t "Name" }}</th>
|
|
|
|
<th>{{t "Email" }}</th>
|
2021-11-02 19:24:24 +01:00
|
|
|
<th>{{t "User ID" }}</th>
|
2021-11-02 19:08:10 +01:00
|
|
|
{{#if is_realm_admin}}
|
|
|
|
<th class="actions">{{t "Actions" }}</th>
|
|
|
|
{{/if}}
|
|
|
|
</thead>
|
|
|
|
<tbody class="subscriber_table"></tbody>
|
|
|
|
</table>
|
2018-02-09 20:05:56 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/render_subscribers}}
|