mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:02:24 +08:00
74ed72e825
Replaces the last occurrence of `d-checkbox` with a regular input element. Includes a minor refactor of admin site text search.
27 lines
835 B
Handlebars
27 lines
835 B
Handlebars
<div class='search-area'>
|
|
<p>{{i18n "admin.site_text.description"}}</p>
|
|
|
|
{{text-field value=q
|
|
placeholderKey="admin.site_text.search"
|
|
class="no-blur site-text-search"
|
|
autofocus="true"
|
|
key-up=(action "search")}}
|
|
|
|
<div class='extra-options'>
|
|
<label>
|
|
{{input type="checkbox" checked=overridden click=(action "toggleOverridden")}}
|
|
{{i18n 'admin.site_text.show_overriden'}}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
{{#conditional-loading-spinner condition=searching}}
|
|
{{#if siteTexts.extras.recommended}}
|
|
<p><b>{{i18n "admin.site_text.recommended"}}</b></p>
|
|
{{/if}}
|
|
|
|
{{#each siteTexts as |siteText|}}
|
|
{{site-text-summary siteText=siteText editAction=(action "edit") term=q searchRegex=siteTexts.extras.regex}}
|
|
{{/each}}
|
|
{{/conditional-loading-spinner}}
|