1. Kevin Veroneau
  2. dvd-collection

Source

dvd-collection / collection / templates / search.html

{% extends "base.html" %}
{% load bootstrap %}

{% block title %}Search{% endblock %}

{% block base_content %}
{% include "search_form.html" %}
{% if results %}
<table class="table table-condensed table-striped">
  <thead><tr><th>Title</th><th>Format</th><th>Genre</th><th>Rated</th></tr></thead>
  <tbody>
    {% for movie in results %}
    <tr><td>{{movie|link}}</td><td><a href="{% url 'browse_format' movie.format %}">{{movie.get_format_display}}</a></td><td>{{movie.genre|link}}</td><td>{{movie.rating|ratingicon}}</td></tr>
    {% endfor %}
  </tbody>
</table>
{% endif %}
{% endblock %}