diff options
author | bryan newbold <bnewbold@robocracy.org> | 2013-05-13 12:54:51 -0400 |
---|---|---|
committer | bryan newbold <bnewbold@robocracy.org> | 2013-05-13 12:55:41 -0400 |
commit | 24cd1e99faf93d64019588d8344d8f89036088b0 (patch) | |
tree | e8ecf6dfd4cd3c9694cbe7d4f2ac291c3eb50003 /templates/grid.html | |
parent | 9a486c19a6ef6499bfddb76c3557e5e337c25f1a (diff) | |
download | partmom-24cd1e99faf93d64019588d8344d8f89036088b0.tar.gz partmom-24cd1e99faf93d64019588d8344d8f89036088b0.zip |
progress
Diffstat (limited to 'templates/grid.html')
-rw-r--r-- | templates/grid.html | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/templates/grid.html b/templates/grid.html index 3a4c71e..37f62d6 100644 --- a/templates/grid.html +++ b/templates/grid.html @@ -3,22 +3,31 @@ {% block content %} <h1>{{ grid.vendor }} {{ grid.familyname }}</h1> +<table class="sharedspecs"> {% for spec in grid.shared_specs %} - <b>{{ spec }}:</b> {{ grid.shared_specs[spec] }}<br> + <tr><th>{{ spec }}</th> + <td>{{ grid.shared_specs[spec] }}</td> + </tr> {% endfor %} +</table> <br> -<table> +<table class="grid"> {% for row in grid.data_table %} -<tr> +<tr class="{{ loop.cycle("evenrow", "oddrow") }} {% if loop.first %}strongrow{% endif %}"> {% for cell in row %} - <td colspan="{{ cell[0] }}">{{ cell[1] }}</td> + {% if loop.first %} + <th class="colheader" colspan="{{ cell[0] }}">{{ cell[1] }}</th> + {% else %} + <td colspan="{{ cell[0] }}">{{ cell[1] }}</td> + {% endif %} {% endfor %} + {% if loop.first %}</span>{% endif %} </tr> {% endfor %} -<tr> -<td>Price: </td> +<tr class="strongrow"> +<th class="colheader">Price</th> {% for cell in grid.price_row %} <td class="{{ cell.css }}"> {% if cell.url %}<a href="{{ cell.url }}">{% endif %} @@ -29,15 +38,19 @@ </tr> {% for row in grid.package_table %} -<tr> +<tr class="{{ loop.cycle("evenrow", "oddrow") }}"> {% for cell in row %} - <td>{{ cell }}</td> + {% if loop.first %} + <th class="colheader">Pins in {{ cell }} Package</th> + {% else %} + <td>{{ cell }}</td> + {% endif %} {% endfor %} </tr> {% endfor %} -<tr> -<td>All Parts: </td> +<tr class="strongrow allparts"> +<th class="colheader">All Parts</th> {% for cell in grid.suffix_row %} <td> {% for part in cell %} @@ -50,4 +63,10 @@ </tr> </table> + +<div class="fineprint"> +Fineprint: Prices from <a href="http://octopart.com">Octopart</a> API and only +include "authorized" distributors, regardless of stock. Some distributors +(Avnet?) do not allow their pricing to be included in the API results. +</div> {% endblock %} |