Spaces:
Sleeping
Sleeping
Commit
·
b95deb6
1
Parent(s):
ff5b78c
fix: indentation issue
Browse files- index.html +149 -149
index.html
CHANGED
@@ -2,159 +2,159 @@
|
|
2 |
<html lang="en">
|
3 |
|
4 |
<head>
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
</head>
|
10 |
|
11 |
<body class="bg-gray-100">
|
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 |
</div>
|
147 |
-
<div id="
|
148 |
-
|
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 |
-
</div>
|
156 |
-
<div id="quotation-output" style="display: none"></div>
|
157 |
-
<script src="script.js"></script>
|
158 |
</body>
|
159 |
|
160 |
</html>
|
|
|
2 |
<html lang="en">
|
3 |
|
4 |
<head>
|
5 |
+
<meta charset="UTF-8" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 |
+
<title>Quotation Generator</title>
|
8 |
+
<link rel="stylesheet" href="style.css" />
|
9 |
</head>
|
10 |
|
11 |
<body class="bg-gray-100">
|
12 |
+
<h1 class="text-3xl font-bold text-center my-8" id="top-header">
|
13 |
+
Quotation Generator
|
14 |
+
</h1>
|
15 |
+
<div class="flex container mx-auto">
|
16 |
+
<div id="form-container" class="w-1/2 pr-4">
|
17 |
+
<form id="quotation-form" class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
18 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
19 |
+
<legend class="text-lg font-semibold mb-2">
|
20 |
+
Your Company Details
|
21 |
+
</legend>
|
22 |
+
<input type="text" id="company-name" name="company-name" placeholder="Company Name" required
|
23 |
+
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
24 |
+
<textarea id="company-address" name="company-address" placeholder="Address" required
|
25 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"></textarea>
|
26 |
+
<input type="text" id="company-phone" name="company-phone" placeholder="Phone"
|
27 |
+
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
28 |
+
<input type="email" id="company-email" name="company-email" placeholder="Email"
|
29 |
+
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
30 |
+
<input type="text" id="company-gstin" name="company-gstin" placeholder="GSTIN"
|
31 |
+
class="w-full p-2 border border-gray-300 rounded" />
|
32 |
+
</fieldset>
|
33 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
34 |
+
<legend class="text-lg font-semibold mb-2">
|
35 |
+
Customer Company Details
|
36 |
+
</legend>
|
37 |
+
<input type="text" id="customer-name" name="customer-name" placeholder="Customer Name" required
|
38 |
+
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
39 |
+
<textarea id="customer-address" name="customer-address" placeholder="Address" required
|
40 |
+
class="w-full p-2 border border-gray-300 rounded mb-2"></textarea>
|
41 |
+
<input type="text" id="customer-phone" name="customer-phone" placeholder="Phone"
|
42 |
+
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
43 |
+
<input type="email" id="customer-email" name="customer-email" placeholder="Email"
|
44 |
+
class="w-full p-2 border border-gray-300 rounded mb-2" />
|
45 |
+
<input type="text" id="customer-gstin" name="customer-gstin" placeholder="GSTIN"
|
46 |
+
class="w-full p-2 border border-gray-300 rounded" />
|
47 |
+
</fieldset>
|
48 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
49 |
+
<legend class="text-lg font-semibold mb-2">
|
50 |
+
Quotation Details
|
51 |
+
</legend>
|
52 |
+
<input type="text" id="quotation-number" name="quotation-number" placeholder="Quotation Number"
|
53 |
+
required class="w-full p-2 border border-gray-300 rounded mb-2" />
|
54 |
+
<input type="date" id="quotation-date" name="quotation-date" required
|
55 |
+
class="w-full p-2 border border-gray-300 rounded" />
|
56 |
+
</fieldset>
|
57 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
58 |
+
<legend class="text-lg font-semibold mb-2">
|
59 |
+
Items
|
60 |
+
</legend>
|
61 |
+
<div class="bg-blue-50 border border-blue-200 rounded p-3 mb-4 text-sm text-blue-800">
|
62 |
+
<strong>💡 Tips:</strong>
|
63 |
+
<ul class="list-disc list-inside mt-1 space-y-1">
|
64 |
+
<li>
|
65 |
+
Use
|
66 |
+
<kbd class="bg-gray-200 px-1 rounded">Enter</kbd>
|
67 |
+
to move to the next field or add a new row
|
68 |
+
</li>
|
69 |
+
<li>
|
70 |
+
Use
|
71 |
+
<kbd class="bg-gray-200 px-1 rounded">Ctrl+I</kbd>
|
72 |
+
to quickly add a new item
|
73 |
+
</li>
|
74 |
+
<li>
|
75 |
+
Amounts are calculated automatically as you
|
76 |
+
type
|
77 |
+
</li>
|
78 |
+
<li>
|
79 |
+
At least one item with description is
|
80 |
+
required
|
81 |
+
</li>
|
82 |
+
</ul>
|
83 |
+
</div>
|
84 |
+
<table id="items-table" class="w-full mb-2">
|
85 |
+
<thead>
|
86 |
+
<tr class="bg-gray-200">
|
87 |
+
<th class="p-2 border border-gray-300">
|
88 |
+
S.No
|
89 |
+
</th>
|
90 |
+
<th class="p-2 border border-gray-300">
|
91 |
+
Description *
|
92 |
+
</th>
|
93 |
+
<th class="p-2 border border-gray-300">
|
94 |
+
HSN Code
|
95 |
+
</th>
|
96 |
+
<th class="p-2 border border-gray-300">
|
97 |
+
Qty *
|
98 |
+
</th>
|
99 |
+
<th class="p-2 border border-gray-300">
|
100 |
+
Unit Price *
|
101 |
+
</th>
|
102 |
+
<th class="p-2 border border-gray-300">
|
103 |
+
Discount (%)
|
104 |
+
</th>
|
105 |
+
<th class="p-2 border border-gray-300">
|
106 |
+
Amount
|
107 |
+
</th>
|
108 |
+
<th class="p-2 border border-gray-300">
|
109 |
+
Action
|
110 |
+
</th>
|
111 |
+
</tr>
|
112 |
+
</thead>
|
113 |
+
<tbody></tbody>
|
114 |
+
</table>
|
115 |
+
<button type="button" id="add-item"
|
116 |
+
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
|
117 |
+
Add Another Item
|
118 |
+
</button>
|
119 |
+
</fieldset>
|
120 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
121 |
+
<legend class="text-lg font-semibold mb-2">
|
122 |
+
Additional Charges
|
123 |
+
</legend>
|
124 |
+
<label class="block mb-2">IGST (%)<input type="number" id="igst-rate" name="igst-rate" value="0"
|
125 |
+
min="0" class="w-full p-2 border border-gray-300 rounded" /></label>
|
126 |
+
<label class="block">Freight Charges<input type="number" id="freight-charges" name="freight-charges"
|
127 |
+
value="0" min="0" class="w-full p-2 border border-gray-300 rounded" /></label>
|
128 |
+
</fieldset>
|
129 |
+
<fieldset class="border border-gray-300 p-4 mb-4">
|
130 |
+
<legend class="text-lg font-semibold mb-2">
|
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 |
</div>
|
156 |
+
<div id="quotation-output" style="display: none"></div>
|
157 |
+
<script src="script.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
</body>
|
159 |
|
160 |
</html>
|