diff options
author | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-06-28 19:49:45 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-06-28 19:49:45 +0000 |
commit | 5e54ba7aa27b95d1e0568693915e735ab8058ff7 (patch) | |
tree | 1c2743605a6cce00edb82b5f15b9a3f08f6ace30 /web/templates/labitrack.d/labelform | |
download | labitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.tar.gz labitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.tar.xz labitrack-5e54ba7aa27b95d1e0568693915e735ab8058ff7.zip |
Initial version
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
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"/> |