Files
zulip/static/templates/new_stream_users.hbs
Anders Kaseorg dd3fa4ac52 templates: Mark all void tags as self-closing.
This reverses the policy that was set, but incompletely enforced, by
commit 951514dd7d.  The self-closing tag
syntax is clearer, more consistent, simpler to parse, compatible with
XML, preferred by Prettier, and (most importantly now) required by
FormatJS.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-04-21 09:49:34 -07:00

39 lines
1.3 KiB
Handlebars

{{! Client-side Mustache template for rendering users in the stream creation modal.}}
<div id="copy-from-stream-expand-collapse" class="add-user-label">
<i class="toggle fa fa-caret-right" aria-hidden="true"></i>
<span class="control-label">
{{t "Copy from stream" }}
</span>
</div>
<div id="stream-checkboxes">
{{#each streams}}
<label class="checkbox add-user-label" data-stream-id="{{this.stream_id}}">
<input type="checkbox" name="stream" />
<span></span>
{{this.name}} ( <i class="fa fa-user" aria-hidden="true"></i> {{this.subscriber_count}})
</label>
{{/each}}
</div>
<br />
<input class="add-user-list-filter" name="user_list_filter" type="text"
autocomplete="off" placeholder="{{t "Filter" }}" />
<div>
<a href="#" draggable="false" class="subs_set_all_users">{{t "Check all" }}</a> |
<a href="#" draggable="false" class="subs_unset_all_users">{{t "Uncheck all" }}</a>
</div>
<div id="user-checkboxes">
{{#each users}}
<label class="checkbox add-user-label" data-user-id="{{this.user_id}}">
<input type="checkbox" name="user" {{#if @first}}checked="checked"{{#unless is_admin}} disabled="disabled"{{/unless}}{{/if}}/>
<span></span>
{{this.full_name}} ({{this.email}})
</label>
{{/each}}
</div>