Repository navigation
Expand file tree
/
Copy pathtotal-only.html
More file actions
156 lines (142 loc) · 7.81 KB
/
Copy pathtotal-only.html
File metadata and controls
156 lines (142 loc) · 7.81 KB
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
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Total Only - SubTooling</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/dark-mode.css">
<link rel="stylesheet" href="css/fixture-styles.css">
<link rel="stylesheet" href="css/family.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="icon" href="favicon.ico" sizes="32x32">
<link rel="icon" href="icons/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="icons/apple-touch-180.png">
</head>
<body>
<header>
<div class="container">
<div class="header-content">
<div class="header-title">
<img class="family-mark" src="icons/favicon.svg" alt="" width="40" height="40">
<div class="family-title">
<h1>SubTooling</h1>
<div class="title-and-toggle">
<p>Job value calculator for subs · Click Plumbing and Electrical</p>
<div class="theme-toggle">
<span id="darkModeToggle" aria-label="Toggle dark mode">
<i class="fas fa-moon"></i>
</span>
</div>
</div>
</div>
</div>
<nav class="main-nav">
<ul>
<li class="indent-1"><a href="index.html">With rates</a></li>
<li class="indent-2"><a href="total-only.html" class="active">Total only</a></li>
</ul>
</nav>
</div>
</div>
</header>
<main class="container">
<div class="card">
<form id="totalOnlyForm">
<div class="header-with-action">
<h2>Total Only Calculator</h2>
<div class="header-buttons">
<button type="button" id="clearAllData" class="btn danger">Clear All Data</button>
<button type="button" id="fillSampleData" class="btn">Fill with Sample Data</button>
</div>
</div>
<div class="form-group">
<label for="homeName">Home Name:</label>
<input type="text" id="homeName" name="homeName" required>
</div>
<div class="form-group">
<label for="jobDate">Job Date:</label>
<input type="date" id="jobDate" name="jobDate" required>
</div>
<h3>Fixtures</h3>
<div id="fixtureItems">
<div class="fixture-item" id="fixtureItem1">
<div class="form-row">
<div class="form-group item-type">
<label for="fixtureType1">Fixture Type:</label>
<select id="fixtureType1" name="fixtureType1" required onchange="toggleCustomFixtureType(1)">
<option value="">Select Type</option>
<option value="Faucets">Faucets</option>
<option value="Sinks">Sinks</option>
<option value="Toilets">Toilets</option>
<option value="Bathtubs">Bathtubs</option>
<option value="Showers">Showers</option>
<option value="Water Heaters">Water Heaters</option>
<option value="Hose Bibs">Hose Bibs</option>
<option value="Washing Machine Hookups">Washing Machine Hookups</option>
<option value="Dishwasher and Ice Maker Connections">Dishwasher and Ice Maker Connections</option>
<option value="custom">Custom...</option>
</select>
<input type="text" id="customFixtureType1" name="customFixtureType1" placeholder="Enter custom fixture type" style="display: none; margin-top: 5px;" onchange="updateCustomFixtureType(1)" onkeyup="updateCustomFixtureType(1)">
</div>
<div class="form-group item-quantity">
<label for="fixtureQuantity1">Quantity:</label>
<input type="number" id="fixtureQuantity1" name="fixtureQuantity1" min="1" step="1" value="1" required>
</div>
</div>
</div>
</div>
<div class="form-actions fixture-actions">
<button type="button" id="addFixture" class="btn">+ Add Fixture</button>
<button type="button" id="removeFixture" class="btn">- Remove Fixture</button>
</div>
<div class="form-row totals-row">
<div class="form-group">
<label for="jobTotal">Job Total ($):</label>
<input type="number" id="jobTotal" name="jobTotal" min="0" step="0.01" required>
</div>
</div>
<div class="form-group">
<label for="notes">Notes:</label>
<textarea id="notes" name="notes" rows="3"></textarea>
</div>
<div class="form-actions">
<button type="button" id="previewJobValue" class="btn primary">Preview Job Value</button>
<button type="button" id="generatePDF" class="btn primary" style="display: none;">Generate PDF</button>
<button type="button" id="generateLink" class="btn secondary">Generate Pre-fill Link</button>
<button type="reset" class="btn">Reset Form</button>
</div>
</form>
</div>
<div class="card" id="jobValuePreviewSection" style="display: none;">
<div class="preview-header">
<h2>Job Value Preview</h2>
<div class="preview-actions">
<button type="button" id="editJobValue" class="btn secondary">Edit Job Value</button>
<button type="button" id="generatePDFFromPreview" class="btn primary">Generate PDF</button>
</div>
</div>
<div id="jobValuePreview" class="preview-content"></div>
</div>
<div class="card" id="linkSection" style="display: none;">
<h3>Pre-fill Link</h3>
<div class="form-group">
<input type="text" id="prefillLink" readonly>
<button type="button" id="copyLink" class="btn">Copy Link</button>
</div>
<p class="help-text">Share this link to pre-fill the form with the current values.</p>
</div>
</main>
<footer>
<div class="container">
<p>© <span id="currentYear"></span> <span class="company-name">Click Plumbing and Electrical</span>. All rights reserved.</p>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="js/app.js"></script>
<script src="js/total-only.js"></script>
<script src="js/row-tools.js"></script>
<script src="js/live-sheet.js"></script>
</body>
</html>