view 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
line wrap: on
line source
{% extends 'band/base.html' %}
{% block title %}The Madeira | Merchandise{% endblock %}
{% block content %}
<h1>Madeira Merchandise</h1>
{% for album in albums %}
   <h2>{{ album.title }} </h2>
   <p>
   <img class="right" src="{{ album.photo.image.url }}" alt="{{ album.title }}" title="{{ album.title }}" />
   </p>
   {% 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>
   <p>
      <img class="right" src="{{ item.photo.image.url }}" alt="{{ item.name }}" title="{{ item.name }}" />
   </p>
   {{ 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 %}