annotate mysite/templates/band/buy.html @ 5:e602b5302b94

Added support for countries beside the USA.
author Brian Neal <bgneal@gmail.com>
date Thu, 14 May 2009 00:31:39 +0000
parents 0dcfcdf50c62
children d771b81e927e
rev   line source
bgneal@1 1 {% extends 'band/base.html' %}
bgneal@1 2 {% block title %}The Madeira | Merchandise{% endblock %}
bgneal@1 3 {% block content %}
bgneal@1 4 <h1>Madeira Merchandise</h1>
bgneal@1 5 {% for album in albums %}
bgneal@1 6 <h2>{{ album.title }} </h2>
bgneal@1 7 <div style="float: right;">
bgneal@1 8 <img src="{{ album.photo.image.url }}" alt="{{ album.title }}" title="{{ album.title }}" />
bgneal@1 9 </div>
bgneal@1 10 {% if album.label_release_set %}
bgneal@1 11 <ul>
bgneal@1 12 {% for release in album.label_release_set.all %}
bgneal@1 13 <li><a href="{{ release.record_label.url }}">{{ release.record_label.name }}</a>
bgneal@1 14 {{ release.catalog_number }}, {{ release.release_date|date:"F d, Y" }}</li>
bgneal@1 15 {% endfor %}
bgneal@1 16 </ul>
bgneal@1 17 {% endif %}
bgneal@1 18 {{ album.desc|safe|linebreaks }}
bgneal@1 19 <p>Track listing:</p>
bgneal@1 20 <ol>
bgneal@1 21 {% for track in album.album_track_set.all %}
bgneal@1 22 <li>{{ track.track_name }}</li>
bgneal@1 23 {% endfor %}
bgneal@1 24 </ol>
bgneal@1 25 {% if album.album_merchant_set %}
bgneal@1 26 <p>Buy {{ album.title }} at:</p>
bgneal@1 27 <ul>
bgneal@1 28 {% for merchant in album.album_merchant_set.all %}
bgneal@1 29 <li><a href="{{ merchant.url }}">{{ merchant.name }}</a></li>
bgneal@1 30 {% endfor %}
bgneal@1 31 </ul>
bgneal@1 32 {% endif %}
bgneal@1 33 <br clear="all" />
bgneal@1 34 {% endfor %}
bgneal@1 35 {% if merchandise %}
bgneal@1 36 <hr />
bgneal@1 37 {{ config.ordering_info|safe|linebreaks }}
bgneal@1 38 {% endif %}
bgneal@1 39 {% for item in merchandise %}
bgneal@1 40 <h2>{{ item.name }}</h2>
bgneal@1 41 <div style="float: right;">
bgneal@1 42 <img src="{{ item.photo.image.url }}" alt="{{ item.name }}" title="{{ item.name }}" />
bgneal@1 43 </div>
bgneal@1 44 {{ item.desc|safe|linebreaks }}
bgneal@1 45 {% if item.in_stock %}
bgneal@1 46 <p>Price: ${{ item.price }}</p>
bgneal@1 47 {% else %}
bgneal@1 48 <p><strike>Price: ${{ item.price }}</strike> <strong>SOLD OUT!</strong></p>
bgneal@1 49 {% endif %}
bgneal@1 50 <br clear="all" />
bgneal@1 51 {% endfor %}
bgneal@1 52 {% endblock %}