From 1259dad8d561bd390262314035d5252905d1c12e Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 23 Feb 2021 17:37:08 -0500 Subject: basic make/model/parts list flow functional --- src/templates/index.html | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'src/templates/index.html') diff --git a/src/templates/index.html b/src/templates/index.html index 6b2f54a..683891c 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -11,28 +11,27 @@

Parts Catalog

+ {{#each makes}}
- + {{#if (eq this ../selected_make)}} + + + {{#each ../models}} + {{#if (eq this ../../selected_model)}} + + Parts for {{ this }} + {{else}} + + {{/if}} + {{else}} + No models found. + {{/each}} + {{else}} + + {{/if}}
+ {{else}} + No makes found. + {{/each}} -- cgit v1.2.3