blob: 6b2f54a37898a727ae4abf1afdfd00e2e3c63146 (
plain) (
tree)
|
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<style>
input[type="submit"] {
display: block;
}
</style>
</head>
<body>
<h1>Parts Catalog</h1>
<form action="/parts">
<ul>
{{#each makes}}
<li>
<input type="submit" name="make" value="{{ this }}" />
{{#if (eq this "Hudson")}}
<ul>
<input type="hidden" name="make" value="{{ selected_make }}" />
{{#each models}}
<li>
<input type="submit" name="model" value="{{ this }}" />
</li>
{{else}}
No models found.
{{/each}}
</ul>
{{/if}}
</li>
{{else}}
No makes found.
{{/each}}
</ul>
</form>
</body>
</html>
|