Spaces:
Sleeping
Sleeping
File size: 3,063 Bytes
deeb85c 0b9e56f deeb85c 0b9e56f deeb85c 0b9e56f a4231fd 0b9e56f deeb85c 0b9e56f 2004aa8 0b9e56f 2004aa8 deeb85c 0b9e56f deeb85c 0b9e56f deeb85c 0b9e56f deeb85c |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Voltage Drop Calculator</title>
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>
<header>
<img src="/static/logo.png" alt="Company Logo" id="logo">
<h1>Voltage Drop Calculator</h1>
</header>
<div class="content-wrapper">
<nav class="nav-section">
<form action="/cg">
<button type="submit" class="btn btn-nav">Crystal Grid Calculator</button>
</form>
<form action="#">
<button type="submit" class="btn btn-nav">Crystal Pixel Calculator</button>
</form>
</nav>
<main class="calculator-main">
<!-- Form wraps all cable groups -->
<form id="calculator-form">
<div id="cable-container">
<div class="cable-group">
<h2>Cable 1</h2>
<div class="form-row">
<label for="cable_type-0">Cable Type:</label>
<select id="cable_type-0" name="cable_type[0]" required>
{% for cable in cables %}
<option value="{{ cable.type }}">{{ cable.type }}</option>
{% endfor %}
</select>
</div>
<div class="form-row">
<label for="voltage-0">Voltage (V):</label>
<input type="number" id="voltage-0" name="voltage[0]" required>
</div>
<div class="form-row">
<label for="load-0">Load (A):</label>
<input type="number" id="load-0" name="load[0]" required>
</div>
<div class="form-row">
<label for="length-0">Length (m):</label>
<input type="number" id="length-0" name="length[0]" required>
</div>
<!-- Remove Cable Button -->
<button type="button" class="btn btn-remove-cable" style="display: none;">- Remove Cable</button>
</div>
</div>
<!-- Action Buttons -->
<div class="action-buttons">
<button id="add-cable" type="button" class="btn btn-add-cable">+ Add Cable</button>
<button type="submit" class="btn btn-calculate">Calculate</button>
</div>
</form>
<!-- Results Display -->
<div id="result" class="result-display"></div>
<!-- Edit Cables Link -->
<a href="/edit_cables" class="btn btn-back">Edit Cables</a>
</main>
</div>
<script src="/static/app.js"></script>
</body>
</html>
|