2017-06-28 16:56:44 -04:00
|
|
|
<h2>{{model.name}}</h2>
|
|
|
|
|
|
|
|
<p class="about">{{actionDescription}}</p>
|
|
|
|
|
2018-07-02 23:14:53 -04:00
|
|
|
<div class="watched-word-controls">
|
2019-07-22 07:59:56 -04:00
|
|
|
{{watched-word-form
|
|
|
|
actionKey=actionNameKey
|
|
|
|
action=(action "recordAdded")
|
|
|
|
filteredContent=filteredContent
|
|
|
|
regularExpressions=adminWatchedWords.regularExpressions}}
|
2017-06-28 16:56:44 -04:00
|
|
|
|
2019-07-22 07:59:56 -04:00
|
|
|
<div class="download-upload-controls">
|
|
|
|
<div class="download">
|
|
|
|
{{d-button
|
|
|
|
class="btn-default download-link"
|
|
|
|
href=downloadLink
|
|
|
|
icon="download"
|
|
|
|
label="admin.watched_words.download"}}
|
|
|
|
</div>
|
|
|
|
{{watched-word-uploader uploading=uploading actionKey=actionNameKey done=(action "uploadComplete")}}
|
|
|
|
</div>
|
2018-07-02 23:14:53 -04:00
|
|
|
</div>
|
2019-07-22 07:59:56 -04:00
|
|
|
|
2018-02-26 16:35:43 -05:00
|
|
|
<div>
|
|
|
|
<label class="show-words-checkbox">
|
|
|
|
{{input type="checkbox" checked=adminWatchedWords.showWords disabled=adminWatchedWords.disableShowWords}}
|
|
|
|
{{i18n 'admin.watched_words.show_words'}}
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-06-28 16:56:44 -04:00
|
|
|
<div class="watched-words-list">
|
|
|
|
{{#if showWordsList}}
|
|
|
|
{{#each filteredContent as |word| }}
|
2019-01-10 05:06:01 -05:00
|
|
|
<div class="watched-word-box">{{admin-watched-word word=word action=(action "recordRemoved")}}</div>
|
2017-06-28 16:56:44 -04:00
|
|
|
{{/each}}
|
|
|
|
{{else}}
|
2018-03-27 17:26:53 -04:00
|
|
|
{{i18n 'admin.watched_words.word_count' count=wordCount}}
|
2017-06-28 16:56:44 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2019-07-22 07:59:56 -04:00
|
|
|
|
|
|
|
<div class="clear-all-row">
|
2019-08-02 05:53:03 -04:00
|
|
|
{{d-button
|
|
|
|
label="admin.watched_words.test.button_label"
|
|
|
|
icon="far-eye"
|
|
|
|
action=(action "test")}}
|
2019-07-22 07:59:56 -04:00
|
|
|
{{d-button
|
|
|
|
class="btn-danger clear-all"
|
|
|
|
label="admin.watched_words.clear_all"
|
|
|
|
icon="trash-alt"
|
|
|
|
action=(action "clearAll")}}
|
|
|
|
</div>
|