summaryrefslogtreecommitdiff
path: root/ext/bg/settings.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-09 14:24:36 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-09 14:31:13 -0500
commit085881d3426c5a872739d56e286514317b2ec8f3 (patch)
tree2b208d3a190e9bab835f97d33477556b8e226dd6 /ext/bg/settings.html
parent40c8268fd6b32c9918fbebd374723cd17f2e19aa (diff)
Use HTML templates for anki fields
Diffstat (limited to 'ext/bg/settings.html')
-rw-r--r--ext/bg/settings.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/bg/settings.html b/ext/bg/settings.html
index 86feacf7..86d8935d 100644
--- a/ext/bg/settings.html
+++ b/ext/bg/settings.html
@@ -704,6 +704,23 @@
</p>
<textarea autocomplete="off" spellcheck="false" wrap="soft" class="form-control" rows="10" id="field-templates"></textarea>
</div>
+
+ <template id="anki-field-template"><tr>
+ <td class="col-sm-2 anki-field-name"></td>
+ <td class="col-sm-10">
+ <div class="input-group">
+ <input type="text" class="anki-field-value form-control" data-field="" value="">
+ <div class="input-group-btn">
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu dropdown-menu-right anki-field-marker-list"></ul>
+ </div>
+ </div>
+ </td>
+ </tr></template>
+
+ <template id="anki-field-marker-template"><li><a class="marker-link" href="#"></a></li></template>
</div>
</div>
</div>