summaryrefslogtreecommitdiffstats
path: root/web/templates/labitrack.d/labelform
blob: b135e9a486b2265229d987047aca982269fe5986 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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}}">&nbsp;<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"/>