view mysite/templates/band/buy.html @ 88:7245c769e31e django1.3

Close this branch. I'm not sure if I merged it correctly to the default branch, because the graphlog doesn't look right. But the changes were made to default somehow. So closing this off to prevent future confusion.
author Brian Neal <bgneal@gmail.com>
date Sat, 13 Apr 2013 18:08:19 -0500
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 %}