41 lines
1.1 KiB
Django/Jinja
41 lines
1.1 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>title</title>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
<style type="text/css">
|
|
.compartment {
|
|
font-family: monospace;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container"><div class="row">
|
|
{% for rt in columns %}
|
|
<div class="col-sm">
|
|
<table class="table table-sm table-bordered table-striped" style="width: auto;">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col"></th>
|
|
<th scope="col">resistance [Ω]</th>
|
|
<th scope="col">package</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for r in rt %}
|
|
<tr class='text-right'>
|
|
<th scope="row" class="compartment">{{ r.compartment }}</th>
|
|
<td>{{ r.resistance }}</td>
|
|
<td>{{ r.package }}</td>
|
|
<td>{{ r.tolerance }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endfor %}
|
|
</div> </div>
|
|
</body>
|
|
</html>
|