annotate mysite/templates/band/buy.html @ 19:1b6b3e38e918

Fix path to fancybox css file.
author Brian Neal <bgneal@gmail.com>
date Wed, 08 Sep 2010 00:49:37 +0000
parents d771b81e927e
children
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@12 7 <p>
bgneal@12 8 <img class="right" src="{{ album.photo.image.url }}" alt="{{ album.title }}" title="{{ album.title }}" />
bgneal@12 9 </p>
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@12 41 <p>
bgneal@12 42 <img class="right" src="{{ item.photo.image.url }}" alt="{{ item.name }}" title="{{ item.name }}" />
bgneal@12 43 </p>
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 %}