2015-11-23 16:45:05 -05:00
|
|
|
<div class="search-area">
|
|
|
|
<p>{{i18n "admin.site_text.description"}}</p>
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<TextField @value={{this.q}} @placeholderKey="admin.site_text.search" @class="no-blur site-text-search" @autofocus="true" @key-up={{action "search"}} />
|
2015-11-30 15:22:58 -05:00
|
|
|
|
2019-03-18 16:09:13 -04:00
|
|
|
<div class="reseed">
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @action={{route-action "showReseedModal"}} @class="btn-default" @label="admin.reseed.action.label" @title="admin.reseed.action.title" @icon="sync" />
|
2019-03-18 16:09:13 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="filter-options">
|
2021-01-18 12:53:45 -05:00
|
|
|
<div class="locale">
|
|
|
|
<label>{{i18n "admin.site_text.locale"}}</label>
|
2022-07-05 13:41:31 -04:00
|
|
|
<ComboBox @valueProperty="value" @content={{this.availableLocales}} @value={{this.locale}} @onChange={{action "updateLocale"}} @class="locale-search" @options={{hash filterable=true}} />
|
2021-01-18 12:53:45 -05:00
|
|
|
</div>
|
|
|
|
|
2019-02-21 09:54:54 -05:00
|
|
|
<label>
|
2022-07-05 13:41:31 -04:00
|
|
|
<Input @type="checkbox" @checked={{this.overridden}} @click={{action "toggleOverridden"}} />
|
2019-02-21 09:54:54 -05:00
|
|
|
{{i18n "admin.site_text.show_overriden"}}
|
|
|
|
</label>
|
2019-03-18 16:09:13 -04:00
|
|
|
</p>
|
2015-11-23 16:45:05 -05:00
|
|
|
</div>
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.searching}}>
|
|
|
|
{{#if this.showFallbackLocaleWarning}}
|
2021-01-18 12:53:45 -05:00
|
|
|
<div class="alert alert-info">
|
|
|
|
{{d-icon "exclamation-circle"}}
|
2022-07-05 13:41:31 -04:00
|
|
|
{{i18n "admin.site_text.fallback_locale_warning" fallback=this.fallbackLocaleFullName}}
|
2021-01-18 12:53:45 -05:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.siteTexts.extras.recommended}}
|
2015-11-23 16:45:05 -05:00
|
|
|
<p><b>{{i18n "admin.site_text.recommended"}}</b></p>
|
2015-11-30 15:22:58 -05:00
|
|
|
{{/if}}
|
2015-11-23 16:45:05 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.siteTexts as |siteText|}}
|
|
|
|
<SiteTextSummary @siteText={{siteText}} @editAction={{action "edit"}} @term={{this.q}} @searchRegex={{this.siteTexts.extras.regex}} />
|
2015-11-23 16:45:05 -05:00
|
|
|
{{/each}}
|
2019-03-08 16:13:10 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.siteTexts.extras.has_more}}
|
2019-03-08 16:13:10 -05:00
|
|
|
<p class="warning">{{i18n "admin.site_text.more_than_50_results"}}</p>
|
|
|
|
{{/if}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</ConditionalLoadingSpinner>
|