Mercurial > public > madeira
comparison mysite/templates/band/buy.html @ 1:0dcfcdf50c62
Initial import of Madeira project from the private repository.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 06 Apr 2009 03:10:59 +0000 |
parents | |
children | d771b81e927e |
comparison
equal
deleted
inserted
replaced
0:df0370bfe3f0 | 1:0dcfcdf50c62 |
---|---|
1 {% extends 'band/base.html' %} | |
2 {% block title %}The Madeira | Merchandise{% endblock %} | |
3 {% block content %} | |
4 <h1>Madeira Merchandise</h1> | |
5 {% for album in albums %} | |
6 <h2>{{ album.title }} </h2> | |
7 <div style="float: right;"> | |
8 <img src="{{ album.photo.image.url }}" alt="{{ album.title }}" title="{{ album.title }}" /> | |
9 </div> | |
10 {% if album.label_release_set %} | |
11 <ul> | |
12 {% for release in album.label_release_set.all %} | |
13 <li><a href="{{ release.record_label.url }}">{{ release.record_label.name }}</a> | |
14 {{ release.catalog_number }}, {{ release.release_date|date:"F d, Y" }}</li> | |
15 {% endfor %} | |
16 </ul> | |
17 {% endif %} | |
18 {{ album.desc|safe|linebreaks }} | |
19 <p>Track listing:</p> | |
20 <ol> | |
21 {% for track in album.album_track_set.all %} | |
22 <li>{{ track.track_name }}</li> | |
23 {% endfor %} | |
24 </ol> | |
25 {% if album.album_merchant_set %} | |
26 <p>Buy {{ album.title }} at:</p> | |
27 <ul> | |
28 {% for merchant in album.album_merchant_set.all %} | |
29 <li><a href="{{ merchant.url }}">{{ merchant.name }}</a></li> | |
30 {% endfor %} | |
31 </ul> | |
32 {% endif %} | |
33 <br clear="all" /> | |
34 {% endfor %} | |
35 {% if merchandise %} | |
36 <hr /> | |
37 {{ config.ordering_info|safe|linebreaks }} | |
38 {% endif %} | |
39 {% for item in merchandise %} | |
40 <h2>{{ item.name }}</h2> | |
41 <div style="float: right;"> | |
42 <img src="{{ item.photo.image.url }}" alt="{{ item.name }}" title="{{ item.name }}" /> | |
43 </div> | |
44 {{ item.desc|safe|linebreaks }} | |
45 {% if item.in_stock %} | |
46 <p>Price: ${{ item.price }}</p> | |
47 {% else %} | |
48 <p><strike>Price: ${{ item.price }}</strike> <strong>SOLD OUT!</strong></p> | |
49 {% endif %} | |
50 <br clear="all" /> | |
51 {% endfor %} | |
52 {% endblock %} |