summaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-06 18:09:12 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-06 18:09:12 -0800
commit20304b5460e54621511a98b9dba9236d4d192ac3 (patch)
treefd1b519df285b3e9da2b11cae1c63f6759a108ab /tmpl
parent712cd6a9ab4e627e3c1504740ff853a6d12025f4 (diff)
WIP
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>