Spaces:
Sleeping
Sleeping
Commit
·
40032c3
1
Parent(s):
b95deb6
fix: indentation issue
Browse files- index.html +270 -153
index.html
CHANGED
@@ -1,160 +1,277 @@
|
|
1 |
<!doctype html>
|
2 |
<html lang="en">
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
</button>
|
119 |
-
</
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
<
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
Bank Details
|
132 |
-
</legend>
|
133 |
-
<input type="text" id="bank-name" name="bank-name" placeholder="Bank Name" required
|
134 |
-
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
135 |
-
<input type="text" id="bank-account" name="bank-account" placeholder="Account Number" required
|
136 |
-
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
137 |
-
<input type="text" id="bank-ifsc" name="bank-ifsc" placeholder="IFSC Code" required
|
138 |
-
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
139 |
-
<input type="text" id="bank-branch" name="bank-branch" placeholder="Branch" required
|
140 |
-
class="w-full p-2 border border-gray-300 rounded" />
|
141 |
-
</fieldset>
|
142 |
-
<button type="submit" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded">
|
143 |
-
Generate Quotation
|
144 |
-
</button>
|
145 |
-
</form>
|
146 |
-
</div>
|
147 |
-
<div id="preview-container" class="w-1/2 pl-4">
|
148 |
-
<div id="quotation-preview" class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
149 |
-
<h2 class="text-2xl font-bold text-center mb-4">
|
150 |
-
Quotation Preview
|
151 |
-
</h2>
|
152 |
-
<div id="preview-content"></div>
|
153 |
</div>
|
154 |
</div>
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
</body>
|
159 |
-
|
160 |
</html>
|
|
|
1 |
<!doctype html>
|
2 |
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8" />
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
6 |
+
<title>Quotation Generator</title>
|
7 |
+
<link rel="stylesheet" href="style.css" />
|
8 |
+
</head>
|
9 |
|
10 |
+
<body class="bg-gray-100">
|
11 |
+
<h1 class="text-3xl font-bold text-center my-8" id="top-header">
|
12 |
+
Quotation Generator
|
13 |
+
</h1>
|
14 |
+
<div class="flex container mx-auto">
|
15 |
+
<div id="form-container" class="w-1/2 pr-4">
|
16 |
+
<form
|
17 |
+
id="quotation-form"
|
18 |
+
class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
|
19 |
+
>
|
20 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
21 |
+
<legend class="text-lg font-semibold mb-2">
|
22 |
+
Your Company Details
|
23 |
+
</legend>
|
24 |
+
<input
|
25 |
+
type="text"
|
26 |
+
id="company-name"
|
27 |
+
name="company-name"
|
28 |
+
placeholder="Company Name"
|
29 |
+
required
|
30 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
31 |
+
/>
|
32 |
+
<textarea
|
33 |
+
id="company-address"
|
34 |
+
name="company-address"
|
35 |
+
placeholder="Address"
|
36 |
+
required
|
37 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
38 |
+
></textarea>
|
39 |
+
<input
|
40 |
+
type="text"
|
41 |
+
id="company-phone"
|
42 |
+
name="company-phone"
|
43 |
+
placeholder="Phone"
|
44 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
45 |
+
/>
|
46 |
+
<input
|
47 |
+
type="email"
|
48 |
+
id="company-email"
|
49 |
+
name="company-email"
|
50 |
+
placeholder="Email"
|
51 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
52 |
+
/>
|
53 |
+
<input
|
54 |
+
type="text"
|
55 |
+
id="company-gstin"
|
56 |
+
name="company-gstin"
|
57 |
+
placeholder="GSTIN"
|
58 |
+
class="w-full p-2 border border-gray-300 rounded"
|
59 |
+
/>
|
60 |
+
</fieldset>
|
61 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
62 |
+
<legend class="text-lg font-semibold mb-2">
|
63 |
+
Customer Company Details
|
64 |
+
</legend>
|
65 |
+
<input
|
66 |
+
type="text"
|
67 |
+
id="customer-name"
|
68 |
+
name="customer-name"
|
69 |
+
placeholder="Customer Name"
|
70 |
+
required
|
71 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
72 |
+
/>
|
73 |
+
<textarea
|
74 |
+
id="customer-address"
|
75 |
+
name="customer-address"
|
76 |
+
placeholder="Address"
|
77 |
+
required
|
78 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
79 |
+
></textarea>
|
80 |
+
<input
|
81 |
+
type="text"
|
82 |
+
id="customer-phone"
|
83 |
+
name="customer-phone"
|
84 |
+
placeholder="Phone"
|
85 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
86 |
+
/>
|
87 |
+
<input
|
88 |
+
type="email"
|
89 |
+
id="customer-email"
|
90 |
+
name="customer-email"
|
91 |
+
placeholder="Email"
|
92 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
93 |
+
/>
|
94 |
+
<input
|
95 |
+
type="text"
|
96 |
+
id="customer-gstin"
|
97 |
+
name="customer-gstin"
|
98 |
+
placeholder="GSTIN"
|
99 |
+
class="w-full p-2 border border-gray-300 rounded"
|
100 |
+
/>
|
101 |
+
</fieldset>
|
102 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
103 |
+
<legend class="text-lg font-semibold mb-2">
|
104 |
+
Quotation Details
|
105 |
+
</legend>
|
106 |
+
<input
|
107 |
+
type="text"
|
108 |
+
id="quotation-number"
|
109 |
+
name="quotation-number"
|
110 |
+
placeholder="Quotation Number"
|
111 |
+
required
|
112 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
113 |
+
/>
|
114 |
+
<input
|
115 |
+
type="date"
|
116 |
+
id="quotation-date"
|
117 |
+
name="quotation-date"
|
118 |
+
required
|
119 |
+
class="w-full p-2 border border-gray-300 rounded"
|
120 |
+
/>
|
121 |
+
</fieldset>
|
122 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
123 |
+
<legend class="text-lg font-semibold mb-2">
|
124 |
+
Items
|
125 |
+
</legend>
|
126 |
+
<div
|
127 |
+
class="bg-blue-50 border border-blue-200 rounded p-3 mb-4 text-sm text-blue-800"
|
128 |
+
>
|
129 |
+
<strong>💡 Tips:</strong>
|
130 |
+
<ul class="list-disc list-inside mt-1 space-y-1">
|
131 |
+
<li>
|
132 |
+
Use
|
133 |
+
<kbd class="bg-gray-200 px-1 rounded"
|
134 |
+
>Enter</kbd
|
135 |
+
>
|
136 |
+
to move to the next field or add a new row
|
137 |
+
</li>
|
138 |
+
<li>
|
139 |
+
Use
|
140 |
+
<kbd class="bg-gray-200 px-1 rounded"
|
141 |
+
>Ctrl+I</kbd
|
142 |
+
>
|
143 |
+
to quickly add a new item
|
144 |
+
</li>
|
145 |
+
<li>
|
146 |
+
Amounts are calculated automatically as you
|
147 |
+
type
|
148 |
+
</li>
|
149 |
+
<li>
|
150 |
+
At least one item with description is
|
151 |
+
required
|
152 |
+
</li>
|
153 |
+
</ul>
|
154 |
+
</div>
|
155 |
+
<table id="items-table" class="w-full mb-2">
|
156 |
+
<thead>
|
157 |
+
<tr class="bg-gray-200">
|
158 |
+
<th class="p-2 border border-gray-300">
|
159 |
+
S.No
|
160 |
+
</th>
|
161 |
+
<th class="p-2 border border-gray-300">
|
162 |
+
Description *
|
163 |
+
</th>
|
164 |
+
<th class="p-2 border border-gray-300">
|
165 |
+
HSN Code
|
166 |
+
</th>
|
167 |
+
<th class="p-2 border border-gray-300">
|
168 |
+
Qty *
|
169 |
+
</th>
|
170 |
+
<th class="p-2 border border-gray-300">
|
171 |
+
Unit Price *
|
172 |
+
</th>
|
173 |
+
<th class="p-2 border border-gray-300">
|
174 |
+
Discount (%)
|
175 |
+
</th>
|
176 |
+
<th class="p-2 border border-gray-300">
|
177 |
+
Amount
|
178 |
+
</th>
|
179 |
+
<th class="p-2 border border-gray-300">
|
180 |
+
Action
|
181 |
+
</th>
|
182 |
+
</tr>
|
183 |
+
</thead>
|
184 |
+
<tbody></tbody>
|
185 |
+
</table>
|
186 |
+
<button
|
187 |
+
type="button"
|
188 |
+
id="add-item"
|
189 |
+
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
|
190 |
+
>
|
191 |
+
Add Another Item
|
192 |
+
</button>
|
193 |
+
</fieldset>
|
194 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
195 |
+
<legend class="text-lg font-semibold mb-2">
|
196 |
+
Additional Charges
|
197 |
+
</legend>
|
198 |
+
<label class="block mb-2"
|
199 |
+
>IGST (%)<input
|
200 |
+
type="number"
|
201 |
+
id="igst-rate"
|
202 |
+
name="igst-rate"
|
203 |
+
value="0"
|
204 |
+
min="0"
|
205 |
+
class="w-full p-2 border border-gray-300 rounded"
|
206 |
+
/></label>
|
207 |
+
<label class="block"
|
208 |
+
>Freight Charges<input
|
209 |
+
type="number"
|
210 |
+
id="freight-charges"
|
211 |
+
name="freight-charges"
|
212 |
+
value="0"
|
213 |
+
min="0"
|
214 |
+
class="w-full p-2 border border-gray-300 rounded"
|
215 |
+
/></label>
|
216 |
+
</fieldset>
|
217 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
218 |
+
<legend class="text-lg font-semibold mb-2">
|
219 |
+
Bank Details
|
220 |
+
</legend>
|
221 |
+
<input
|
222 |
+
type="text"
|
223 |
+
id="bank-name"
|
224 |
+
name="bank-name"
|
225 |
+
placeholder="Bank Name"
|
226 |
+
required
|
227 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
228 |
+
/>
|
229 |
+
<input
|
230 |
+
type="text"
|
231 |
+
id="bank-account"
|
232 |
+
name="bank-account"
|
233 |
+
placeholder="Account Number"
|
234 |
+
required
|
235 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
236 |
+
/>
|
237 |
+
<input
|
238 |
+
type="text"
|
239 |
+
id="bank-ifsc"
|
240 |
+
name="bank-ifsc"
|
241 |
+
placeholder="IFSC Code"
|
242 |
+
required
|
243 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"
|
244 |
+
/>
|
245 |
+
<input
|
246 |
+
type="text"
|
247 |
+
id="bank-branch"
|
248 |
+
name="bank-branch"
|
249 |
+
placeholder="Branch"
|
250 |
+
required
|
251 |
+
class="w-full p-2 border border-gray-300 rounded"
|
252 |
+
/>
|
253 |
+
</fieldset>
|
254 |
+
<button
|
255 |
+
type="submit"
|
256 |
+
class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded"
|
257 |
+
>
|
258 |
+
Generate Quotation
|
259 |
</button>
|
260 |
+
</form>
|
261 |
+
</div>
|
262 |
+
<div id="preview-container" class="w-1/2 pl-4">
|
263 |
+
<div
|
264 |
+
id="quotation-preview"
|
265 |
+
class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
|
266 |
+
>
|
267 |
+
<h2 class="text-2xl font-bold text-center mb-4">
|
268 |
+
Quotation Preview
|
269 |
+
</h2>
|
270 |
+
<div id="preview-content"></div>
|
271 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
</div>
|
273 |
</div>
|
274 |
+
<div id="quotation-output" style="display: none"></div>
|
275 |
+
<script src="script.js"></script>
|
276 |
+
</body>
|
|
|
|
|
277 |
</html>
|