2015-11-23 16:45:05 -05:00
|
|
|
<div class="search-area">
|
|
|
|
<p>{{i18n "admin.site_text.description"}}</p>
|
|
|
|
|
2022-08-25 19:22:04 -04:00
|
|
|
<TextField
|
|
|
|
@value={{this.q}}
|
|
|
|
@placeholderKey="admin.site_text.search"
|
|
|
|
@autofocus="true"
|
2023-09-14 06:27:09 -04:00
|
|
|
@key-up={{this.search}}
|
2023-12-12 07:09:05 -05:00
|
|
|
class="no-blur site-text-search"
|
2022-08-25 19:22:04 -04:00
|
|
|
/>
|
2015-11-30 15:22:58 -05:00
|
|
|
|
2019-03-18 16:09:13 -04:00
|
|
|
<div class="reseed">
|
2022-08-25 19:22:04 -04:00
|
|
|
<DButton
|
2023-09-14 06:27:09 -04:00
|
|
|
@action={{this.showReseedModal}}
|
2022-08-25 19:22:04 -04:00
|
|
|
@label="admin.reseed.action.label"
|
|
|
|
@title="admin.reseed.action.title"
|
2024-09-13 11:50:52 -04:00
|
|
|
@icon="arrows-rotate"
|
2023-08-31 05:49:35 -04:00
|
|
|
class="btn-default"
|
2022-08-25 19:22:04 -04:00
|
|
|
/>
|
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-08-25 19:22:04 -04:00
|
|
|
<ComboBox
|
|
|
|
@valueProperty="value"
|
|
|
|
@content={{this.availableLocales}}
|
2024-08-25 21:25:36 -04:00
|
|
|
@value={{this.resolvedLocale}}
|
2023-09-14 06:27:09 -04:00
|
|
|
@onChange={{this.updateLocale}}
|
2022-08-25 19:22:04 -04:00
|
|
|
@options={{hash filterable=true}}
|
2023-12-12 07:09:05 -05:00
|
|
|
class="locale-search"
|
2022-08-25 19:22:04 -04:00
|
|
|
/>
|
2021-01-18 12:53:45 -05:00
|
|
|
</div>
|
|
|
|
|
2024-02-15 11:27:51 -05:00
|
|
|
<label class="checkbox-label">
|
2023-09-14 06:27:09 -04:00
|
|
|
<input
|
2023-07-09 22:06:40 -04:00
|
|
|
id="toggle-overridden"
|
2023-09-14 06:27:09 -04:00
|
|
|
type="checkbox"
|
|
|
|
checked={{this.resolvedOverridden}}
|
|
|
|
{{on "click" this.toggleOverridden}}
|
2022-08-25 19:22:04 -04:00
|
|
|
/>
|
2019-02-21 09:54:54 -05:00
|
|
|
{{i18n "admin.site_text.show_overriden"}}
|
|
|
|
</label>
|
2023-07-09 22:06:40 -04:00
|
|
|
|
2024-02-15 11:27:51 -05:00
|
|
|
<label class="checkbox-label">
|
2023-09-14 06:27:09 -04:00
|
|
|
<input
|
2023-07-09 22:06:40 -04:00
|
|
|
id="toggle-outdated"
|
2023-09-14 06:27:09 -04:00
|
|
|
type="checkbox"
|
|
|
|
checked={{this.resolvedOutdated}}
|
2023-07-09 22:06:40 -04:00
|
|
|
{{on "click" this.toggleOutdated}}
|
|
|
|
/>
|
|
|
|
{{i18n "admin.site_text.show_outdated"}}
|
|
|
|
</label>
|
2024-06-24 05:24:06 -04:00
|
|
|
|
2024-08-25 21:25:36 -04:00
|
|
|
<label class="checkbox-label">
|
|
|
|
<input
|
|
|
|
id="toggle-only-locale"
|
|
|
|
type="checkbox"
|
|
|
|
checked={{this.resolvedOnlySelectedLocale}}
|
|
|
|
{{on "click" this.toggleOnlySelectedLocale}}
|
|
|
|
/>
|
|
|
|
{{i18n "admin.site_text.only_show_selected_locale"}}
|
|
|
|
</label>
|
|
|
|
|
2024-06-24 05:24:06 -04:00
|
|
|
{{#if this.showUntranslated}}
|
|
|
|
<label class="checkbox-label">
|
|
|
|
<input
|
|
|
|
id="toggle-untranslated"
|
|
|
|
type="checkbox"
|
|
|
|
checked={{this.resolvedUntranslated}}
|
|
|
|
{{on "click" this.toggleUntranslated}}
|
|
|
|
/>
|
|
|
|
{{i18n "admin.site_text.show_untranslated"}}
|
|
|
|
</label>
|
|
|
|
{{/if}}
|
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}}>
|
2023-09-14 06:27:09 -04:00
|
|
|
{{#if this.model.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
|
|
|
|
2023-09-14 06:27:09 -04:00
|
|
|
{{#each this.model as |siteText|}}
|
2022-08-25 19:22:04 -04:00
|
|
|
<SiteTextSummary
|
|
|
|
@siteText={{siteText}}
|
2023-09-14 06:27:09 -04:00
|
|
|
@editAction={{this.edit}}
|
2022-08-25 19:22:04 -04:00
|
|
|
@term={{this.q}}
|
2023-09-14 06:27:09 -04:00
|
|
|
@searchRegex={{this.model.extras.regex}}
|
2022-08-25 19:22:04 -04:00
|
|
|
/>
|
2023-09-14 06:27:09 -04:00
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.site_text.no_results"}}
|
2015-11-23 16:45:05 -05:00
|
|
|
{{/each}}
|
2019-03-08 16:13:10 -05:00
|
|
|
|
2023-09-14 06:27:09 -04:00
|
|
|
{{#if this.model.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>
|