diff --git a/templates/bootstrap_table.html b/templates/bootstrap_table.html index 269d879..a5290e6 100644 --- a/templates/bootstrap_table.html +++ b/templates/bootstrap_table.html @@ -21,8 +21,12 @@ {% for brick in inventory_file.results %} {% if brick.is_spare == False %} - - {{ brick.element_id }} + {% if brick.element_id == None %} + + {% else %} + + {% endif %} + {{ brick.element_id }} {{ brick.part.part_num }} {{ brick.part.name }} {{ brick.color.id }} @@ -76,7 +80,11 @@ {% for brick in inventory_file.results %} {% if brick.is_spare == True %} - + {% if brick.element_id == None %} + + {% else %} + + {% endif %} {{ brick.element_id }} {{ brick.part.part_num }} {{ brick.part.name }} diff --git a/templates/frontpage.html b/templates/frontpage.html new file mode 100644 index 0000000..6eb0cf3 --- /dev/null +++ b/templates/frontpage.html @@ -0,0 +1,53 @@ + + + + + +Responsive Grid + + + + +
+ +{% for i in set_list %} + +
+ Image +

{{ i['name'] }}

+

Set: {{ i['set_num'] }}

+

Year: {{ i['year'] }}

+

Parts: {{ i['num_parts'] }}

+

Inventory: Link

+
+ +{% endfor %} + +
+ +