diff options
Diffstat (limited to 'web/templates/labitrack.d/labelform')
-rw-r--r-- | web/templates/labitrack.d/labelform | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/web/templates/labitrack.d/labelform b/web/templates/labitrack.d/labelform new file mode 100644 index 0000000..b135e9a --- /dev/null +++ b/web/templates/labitrack.d/labelform @@ -0,0 +1,38 @@ +<form id="labelform"> + <fieldset> + <div class="clearfix"> + <label for="name">Name</label> + <div class="input"> + <input class="xlarge" id="name" name="name" type="text" placeholder="Name" required="required" value="{{data.name}}"/> + </div> + </div> + <div class="clearfix"> + <label for="desc">Description</label> + <div class="input"> + <textarea class="xlarge" name="desc" id="desc" rows="3" placeholder="Description" required="required">{{data.desc}}</textarea> + </div> + </div> + <div class="clearfix"> + <label for="tags">Tags</label> + <div class="input"> + <ul class="inputs-list"> + {{#each tags}} + <li> + <label> + <input type="checkbox" name="tags" value="{{name}}"{{checked_tag ../data.tags}}/> + <span>{{desc}}</span> + </label> + </li> + {{/each}} + </ul> + </div> + </div> + <div class="actions"> + <input type="submit" class="btn primary save" value="{{save_text}}"> <button type="reset" class="btn">Cancel</button> + </div> + </fieldset> +</form> + +<h2>Low-res preview <small>(rendered in <span id="rendertime">some</span> ms)</small></h2> + +<canvas id="label"/> |