summaryrefslogblamecommitdiff
path: root/src/templates/index.html
blob: 683891c5c7fa7aaa29c5612be21d4965aaff3154 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

               








                            
        
                          
                   
                          















                                                                        
           


                   

         
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />

    <style>
      input[type="submit"] {
        display: block;
      }
    </style>
  </head>
  <body>
    <h1>Parts Catalog</h1>
    {{#each makes}}
    <form action="/parts">
      {{#if (eq this ../selected_make)}}
      <input disabled type="submit" name="make" value="{{ this }}" />
      <input type="hidden" name="make" value="{{ ../selected_make }}" />
      {{#each ../models}}
      {{#if (eq this ../../selected_model)}}
      <input disabled type="submit" name="model" value="{{ this }}" />
      Parts for {{ this }}
      {{else}}
      <input type="submit" name="model" value="{{ this }}" />
      {{/if}}
      {{else}}
      No models found.
      {{/each}}
      {{else}}
      <input type="submit" name="make" value="{{ this }}" />
      {{/if}}
    </form>
    {{else}}
    No makes found.
    {{/each}}
  </body>
</html>