summaryrefslogtreecommitdiff
path: root/tmpl/model.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-06 17:56:47 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-06 17:56:47 -0800
commit712cd6a9ab4e627e3c1504740ff853a6d12025f4 (patch)
tree6968d32c2af4b46d9caaf207413d6acc1fe14495 /tmpl/model.html
parentfd6622400f64b2d568d38bde72f9fd75f8d06beb (diff)
Simplify field code
Diffstat (limited to 'tmpl/model.html')
-rw-r--r--tmpl/model.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/tmpl/model.html b/tmpl/model.html
new file mode 100644
index 00000000..94772316
--- /dev/null
+++ b/tmpl/model.html
@@ -0,0 +1,18 @@
+<tr>
+ <td class="col-sm-2">{{name}}</td>
+ <td class="col-sm-10">
+ <div class="input-group">
+ <input type="text" class="anki-field-value form-control" data-field="{{name}}" value="{{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">
+ {{#each markers}}
+ <li><a class="marker-link" href="#">{{.}}</a></li>
+ {{/each}}
+ </ul>
+ </div>
+ </div>
+ </td>
+</tr>