Implement Duck listing

This commit is contained in:
2014-12-23 09:28:43 +01:00
committed by Gergely Polonkai
parent 56d19e07d9
commit 8c9475d076
7 changed files with 60 additions and 12 deletions

View File

@@ -0,0 +1,23 @@
{% extends 'front_template.html' %}
{% load booking_tags %}
{% block body %}
{% if duck_list %}
{% for duck in duck_list %}
<div class="duck" id="duck-icon-{{ duck.id }}" style="background-color: #{{ duck.color }};">
{{ duck }}<br>
{{ duck.species }}
</div>
<div class="profile" id="duck-profile-{{ duck.id }}">
Employee for {{ duck.age|age_format:1 }}<br>
Location: {{ duck.location }}<br>
DPX: {{ duck.dpx }}<br>
<div class="button" id="duck-book-{{ duck.id }}">book-button</div>
<div class="button" id="duck-complist-{{ duck.id }}">complist-button</div>
<div class="button" id="duck-namesugg-{{ duck.id }}">namesugg-button</div>
<div class="button" id="duck-adopt-{{ duck.id }}">adopt-button</div>
</div>
{% endfor %}
<br class="clear">
{% endif %}
{% endblock %}

View File

@@ -5,7 +5,7 @@
</head>
<body>
<h1>Rubber Duck Booking Tool</h1>
<a href="{% url 'index' %}">Home</a>
<a href="{% url 'booking:list' %}">Home</a>
<a href="{% url 'booking:terms' %}">Terms and Conditions</a>
<a href="{% url 'booking:vocabulary' %}">Vocabulary</a>
<a href="{% url 'booking:disclaimer' %}">Disclaimer</a>