From 31907e58394484c2447402f630c0a5c93c5b37e7 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Sun, 12 May 2013 11:02:04 -0400 Subject: minimum viable demonstration --- templates/base.html | 14 ++++++++++++++ templates/grid.html | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ templates/index.html | 8 ++++++++ 3 files changed, 75 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/grid.html create mode 100644 templates/index.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..779181a --- /dev/null +++ b/templates/base.html @@ -0,0 +1,14 @@ + + + + + {% block title %}partmom{% endblock %} + + {% block head %}{% endblock %} + + +
+{% block content %}{% endblock %} +
+ + diff --git a/templates/grid.html b/templates/grid.html new file mode 100644 index 0000000..3a4c71e --- /dev/null +++ b/templates/grid.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} +{% block title %}partmom: {{ grid.vendor }} {{ grid.familyname }}{% endblock %} +{% block content %} +

{{ grid.vendor }} {{ grid.familyname }}

+ +{% for spec in grid.shared_specs %} + {{ spec }}: {{ grid.shared_specs[spec] }}
+{% endfor %} +
+ + +{% for row in grid.data_table %} + + {% for cell in row %} + + {% endfor %} + +{% endfor %} + + + +{% for cell in grid.price_row %} + +{% endfor %} + + +{% for row in grid.package_table %} + + {% for cell in row %} + + {% endfor %} + +{% endfor %} + + + +{% for cell in grid.suffix_row %} + +{% endfor %} + + +
{{ cell[1] }}
Price: + {% if cell.url %}{% endif %} + {{ cell.price }} + {% if cell.url %}{% endif %} +
{{ cell }}
All Parts: + {% for part in cell %} + {% if part.url %}{{ part.suffix }} + {% else %}{{ part.suffix }} + {% endif %}
+ {% endfor %} +
+{% endblock %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..cc04491 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} +Part families: + +{% endblock %} -- cgit v1.2.3