diff mysite/templates/band/buy.html @ 1:0dcfcdf50c62

Initial import of Madeira project from the private repository.
author Brian Neal <bgneal@gmail.com>
date Mon, 06 Apr 2009 03:10:59 +0000
parents
children d771b81e927e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mysite/templates/band/buy.html	Mon Apr 06 03:10:59 2009 +0000
@@ -0,0 +1,52 @@
+{% extends 'band/base.html' %}
+{% block title %}The Madeira | Merchandise{% endblock %}
+{% block content %}
+<h1>Madeira Merchandise</h1>
+{% for album in albums %}
+   <h2>{{ album.title }} </h2>
+   <div style="float: right;">
+   <img src="{{ album.photo.image.url }}" alt="{{ album.title }}" title="{{ album.title }}" />
+   </div>
+   {% if album.label_release_set %}
+      <ul>
+      {% for release in album.label_release_set.all %}
+         <li><a href="{{ release.record_label.url }}">{{ release.record_label.name }}</a> 
+            {{ release.catalog_number }}, {{ release.release_date|date:"F d, Y" }}</li>
+      {% endfor %}
+      </ul>
+   {% endif %}
+   {{ album.desc|safe|linebreaks }}
+   <p>Track listing:</p>
+   <ol>
+   {% for track in album.album_track_set.all %}
+      <li>{{ track.track_name }}</li>
+   {% endfor %}
+   </ol>
+   {% if album.album_merchant_set %}
+      <p>Buy {{ album.title }} at:</p>
+      <ul>
+      {% for merchant in album.album_merchant_set.all %}
+         <li><a href="{{ merchant.url }}">{{ merchant.name }}</a></li>
+      {% endfor %}
+      </ul>
+   {% endif %}
+   <br clear="all" />
+{% endfor %}
+{% if merchandise %}
+   <hr />
+   {{ config.ordering_info|safe|linebreaks }}
+{% endif %}
+{% for item in merchandise %}
+   <h2>{{ item.name }}</h2>
+   <div style="float: right;">
+      <img src="{{ item.photo.image.url }}" alt="{{ item.name }}" title="{{ item.name }}" />
+   </div>
+   {{ item.desc|safe|linebreaks }}
+   {% if item.in_stock %}
+      <p>Price: ${{ item.price }}</p>
+   {% else %}
+      <p><strike>Price: ${{ item.price }}</strike> <strong>SOLD OUT!</strong></p>
+   {% endif %}
+   <br clear="all" />
+{% endfor %}
+{% endblock %}