2015-11-24 05:45:05 +08:00
|
|
|
<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"
|
2019-01-10 18:06:01 +08:00
|
|
|
key-up=(action "search")}}
|
2015-12-01 04:22:58 +08:00
|
|
|
|
2019-03-19 04:09:13 +08:00
|
|
|
<div class="reseed">
|
|
|
|
{{d-button action=(route-action "showReseedModal")
|
|
|
|
class="btn-default"
|
|
|
|
label="admin.reseed.action.label"
|
|
|
|
title="admin.reseed.action.title"
|
|
|
|
icon="sync"}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="filter-options">
|
2021-01-19 01:53:45 +08:00
|
|
|
<div class="locale">
|
|
|
|
<label>{{i18n "admin.site_text.locale"}}</label>
|
|
|
|
{{combo-box
|
|
|
|
valueProperty="value"
|
|
|
|
content=availableLocales
|
|
|
|
value=locale
|
|
|
|
onChange=(action "updateLocale")
|
|
|
|
class="locale-search"
|
|
|
|
options=(hash
|
|
|
|
filterable=true
|
|
|
|
none="user.locale.default"
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
</div>
|
|
|
|
|
2019-02-21 22:54:54 +08:00
|
|
|
<label>
|
|
|
|
{{input type="checkbox" checked=overridden click=(action "toggleOverridden")}}
|
|
|
|
{{i18n "admin.site_text.show_overriden"}}
|
|
|
|
</label>
|
2019-03-19 04:09:13 +08:00
|
|
|
</p>
|
2015-11-24 05:45:05 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#conditional-loading-spinner condition=searching}}
|
2021-01-21 05:08:02 +08:00
|
|
|
{{#if showFallbackLocaleWarning}}
|
2021-01-19 01:53:45 +08:00
|
|
|
<div class="alert alert-info">
|
|
|
|
{{d-icon "exclamation-circle"}}
|
|
|
|
{{i18n "admin.site_text.fallback_locale_warning" fallback=fallbackLocaleFullName}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2015-12-01 04:22:58 +08:00
|
|
|
{{#if siteTexts.extras.recommended}}
|
2015-11-24 05:45:05 +08:00
|
|
|
<p><b>{{i18n "admin.site_text.recommended"}}</b></p>
|
2015-12-01 04:22:58 +08:00
|
|
|
{{/if}}
|
2015-11-24 05:45:05 +08:00
|
|
|
|
|
|
|
{{#each siteTexts as |siteText|}}
|
2019-01-10 18:06:01 +08:00
|
|
|
{{site-text-summary siteText=siteText editAction=(action "edit") term=q searchRegex=siteTexts.extras.regex}}
|
2015-11-24 05:45:05 +08:00
|
|
|
{{/each}}
|
2019-03-09 05:13:10 +08:00
|
|
|
|
|
|
|
{{#if siteTexts.extras.has_more}}
|
|
|
|
<p class="warning">{{i18n "admin.site_text.more_than_50_results"}}</p>
|
|
|
|
{{/if}}
|
2015-11-24 05:45:05 +08:00
|
|
|
{{/conditional-loading-spinner}}
|