view mysite/templates/band/buy.html @ 11:89978c135246

Added MySpace and Facebook links to sidebar.
author Brian Neal <bgneal@gmail.com>
date Sun, 02 May 2010 18:21:38 +0000
parents 0dcfcdf50c62
children d771b81e927e
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>
   <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 %}