view madeira/templates/band/buy.html @ 55:0176eca97d1d

In the middle of revamping the band application. Moved the base and home templates out of the band directory. Started hacking on the band models, finally getting rid of older models and views. Not everything works yet in this commit.
author Brian Neal <bgneal@gmail.com>
date Sat, 07 Apr 2012 15:58:51 -0500
parents ab83b727d97f
children 5ff9c130f47f
line wrap: on
line source
{% extends '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 />
<p>Support your favorite band! We may have a Paypal based payment system coming soon. In the meantime, place your orders for t-shirts and stickers by sending an email to <a href="mailto:themadeira@themadeira.net">themadeira@themadeira.net</a>.</p>
{% 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 %}