-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
151 lines (150 loc) · 4.06 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="description" content="A free online estimate of cost" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"
/>
</head>
<body>
<div class="estimate">
<div class="estimate__title">
<h2>Job Estimate</h2>
</div>
<div class="estimate__company">
<div class="estimate__company__logo js-logo-wrapper">
<canvas id="js-image-blank" class="hidden"></canvas>
<input type="file" id="js-logo-image" class="logo-image-input" />
<label for="js-logo-image">Choose a logo</label>
<span>(The ideally format is 200 x 80 px)</span>
<span class="x-logo-error hidden">! Add a logo</span>
</div>
<div class="estimate__company__references">
<label>Information about your Company</label>
<input
type="text"
class="js-company-email email"
name="companyEmail"
placeholder="[email protected]"
/>
<input
type="text"
class="js-company-website website"
name="companyWebsite"
placeholder="www.companywebsite.com"
/>
<input
type="text"
class="js-company-telephone telephone"
name="companyTelephone"
placeholder="Telephone"
/>
<textarea
class="js-company-address address"
name="companyAddress"
placeholder="Company address"
></textarea>
</div>
</div>
<div class="estimate__data clearfix">
<div class="estimate__data__date">
<label>Date</label>
<input
type="text"
class="js-datepicker datepicker"
name="estimateDate"
placeholder="dd-mm-yyyy"
/>
</div>
<div class="estimate__data__discount">
<label>Discount</label>
<input
type="number"
class="js-discount"
name="discount"
placeholder="0"
/>
<span>%</span>
</div>
<div class="estimate__data__vat">
<label>VAT</label>
<input type="number" id="js-vat" name="vat" placeholder="0" />
<span>%</span>
</div>
<div class="estimate__data__notes">
<label>Notes</label>
<textarea
class="js-note-input"
placeholder="Add some notes..."
></textarea>
</div>
</div>
<div class="estimate__table">
<table>
<tr>
<th>Item</th>
<th>Description</th>
<th>Unity price</th>
<th>Quantity</th>
<th>Amount</th>
</tr>
<tbody id="js-tbody"></tbody>
</table>
</div>
<footer class="estimate__footer">
<div class="estimate__footer__subtotal">
<div class="estimate__footer__subtotal__description">
<h5>Subtotal</h5>
</div>
<div class="estimate__footer__subtotal__value">
<span id="js-subtotal" class="value">0</span>
</div>
</div>
<div class="estimate__footer__total">
<div class="estimate__footer__total__description">
<h4>Total/Payments Terms</h4>
<span
>The price is subject to <span class="js-vat-display">0</span>%
VAT</span
>
</div>
<div class="estimate__footer__total__value">
<span id="js-total" class="value">0</span>
</div>
</div>
</footer>
</div>
<div class="actions wrapper-fluid">
<div class="wrapper">
<div class="actions__estimate">
<button type="button" id="js-add-btn" class="actions__estimate__add">
<span class="icon-plus"></span>
<span class="btn-label">Add item</span>
</button>
<button
type="button"
id="js-print-btn"
class="actions__estimate__print"
>
<span class="icon-printer"></span>
<span class="btn-label">Print</span>
</button>
<button
type="button"
id="js-preview-btn"
class="actions__estimate__preview"
>
<span class="btn-label">Preview</span>
</button>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<script src="./src/index.ts"></script>
</body>
</html>