-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
66 lines (65 loc) · 2.14 KB
/
index.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
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://bootswatch.com/5/united/bootstrap.min.css"
/>
<title>Paste excel data to html table</title>
</head>
<body>
<div class="mx-auto col-8 mt-4 d-block">
<table class="table table-sm table-bordered table-strriped" id="csv">
<thead class="bg-warning">
<tr>
<th data-header="barcode">Barcode</th>
<th data-header="product">Product</th>
<th data-header="unit">Unit</th>
<th data-header="quantity">Quantity</th>
<th data-header="rate">Rate</th>
<th data-header="isDiscount">Discount</th>
</tr>
</thead>
<tbody></tbody>
</table>
<hr />
<var id="preview" class="align-item-center"> </var>
<template id="rowTemplate">
<tr>
<td class="watch">
<input type="text" class="form-control form-control-sm" />
</td>
<td class="watch">
<select class="form-control form-control-sm">
<option>Select Product</option>
<option value="1">Item 1</option>
<option value="2">Item 2</option>
<option value="3">Item 3</option>
</select>
</td>
<td class="watch">
<input type="text" class="form-control form-control-sm" />
</td>
<td class="watch">
<input type="text" class="form-control form-control-sm" />
</td>
<td class="watch">
<input type="text" class="form-control form-control-sm" />
</td>
<td class="watch">
<input
type="checkbox"
class="form-check-input"
style="width: 2em !important; height: 1.5rem !important"
/>
</td>
</tr>
</template>
</div>
<script src="package/csv-paster.js"></script>
<script src="./script.js"></script>
</body>
</html>