summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/dictionary.html12
1 files changed, 4 insertions, 8 deletions
diff --git a/tmpl/dictionary.html b/tmpl/dictionary.html
index 21847722..77493d94 100644
--- a/tmpl/dictionary.html
+++ b/tmpl/dictionary.html
@@ -8,14 +8,10 @@
</div>
</div>
- {{#if hasTerms}}
- <div class="checkbox">
- <label><input type="checkbox" class="dict-enable-terms"> Enable term search</label>
+ <div class="checkbox {{#unless hasTerms}}disabled{{/unless}}">
+ <label><input type="checkbox" class="dict-enable-terms" {{#unless hasTerms}}disabled{{/unless}} {{#if enableTerms}}checked{{/if}}> Enable term search</label>
</div>
- {{/if}}
- {{#if hasKanji}}
- <div class="checkbox">
- <label><input type="checkbox" class="dict-enable-kanji"> Enable Kanji search</label>
+ <div class="checkbox {{#unless hasKanji}}disabled{{/unless}}">
+ <label><input type="checkbox" class="dict-enable-kanji" {{#unless hasKanji}}disabled{{/unless}} {{#if enableKanji}}checked{{/if}}> Enable Kanji search</label>
</div>
- {{/if}}
</div>