/
inventory.html
56 lines (53 loc) · 1.21 KB
/
inventory.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<head>
<title>Assets</title>
</head>
<body>
<div id="col">
{{> search}}
{{> items}}
{{> insert}}
</div>
</body>
<template name="search">
<div class="search">
<span> Assets </span>
<form action="javascript:void(0)">
<input type="text" id="search" placeholder="asset id">
<button type="submit">Search!</button>
<button type="button" id="clear">Clear</button>
<button type="button" id="new">New Item</button>
<button type="button" id="edit">Edit Items</button>
</form>
</div>
</template>
<template name="items">
{{#if showItems}}
{{#each item}}
{{> item}}
{{/each}}
{{/if}}
</template>
<template name="item">
<div class="item">
<span>{{name}}
{{#if edit}}
<button type="button" id="remove">delete</button>
{{/if}}
</span>
<h4>{{id}}</h4>
<p>{{description}}</p>
</div>
</template>
<template name="insert">
{{#if showNew}}
<div class="item">
<span>Add an Asset</span>
<form action="javascript:void(0)">
<input type="text" id="name" placeholder="item title"><br>
<input type="text" id="id" placeholder="item id"><br>
<textarea id="desc" placeholder="item description"></textarea><br>
<button type="button" id="add">Create!</button>
</form>
</div>
{{/if}}
</template>