<!--todo make this a macro to allow custom layout etc-->
<!--todo use jquery tables or something to make sortable-->

<h3 class="heading-medium">
    Previously uploaded Prospectuses
</h3>

<table id="contentItemsTable">
    <thead>
    <tr id="contentItemsTableHeader">
        <th scope="col">Prospectus title</th>
        <th class="numeric" scope="col">Subject</th>
        <th class="numeric" scope="col">File name</th>
    </tr>
    </thead>
    <tbody>

    {% for item in contentItems %}
    <tr id="contentItem{{ loop.index0 }}">
        <td id="contentItem{{ loop.index0 }}-title">{{ item.title }}</td>
        <td id="contentItem{{ loop.index0 }}-subject" class="numeric">{{ item.category }}</td>
        <td id="contentItem{{ loop.index0 }}-filename" class="numeric">{{ item.filename }}</td>
    </tr>
    {% else %}
    <tr>
        <td>There are no results found.</td>
    </tr>
    {% endfor %}

    </tbody>
</table>

<!--todo make this a macro to allow custom layout etc-->
<!--todo use jquery tables or something to make sortable-->

<h3 class="heading-medium">
    Previous uploads
</h3>

<table id="contentItemsTable">
    <thead>
    <tr id="contentItemsTableHeader">
        <th scope="col">Prospectus title</th>
        <th class="numeric" scope="col">Subject</th>
        <th class="numeric" scope="col">File name</th>
    </tr>
    </thead>
    <tbody>

    {% for item in contentItems %}
    <tr id="contentItem{{ loop.index0 }}">
        <td id="contentItem{{ loop.index0 }}-title">{{ item.title }}</td>
        <td id="contentItem{{ loop.index0 }}-subject" class="numeric">{{ item.category }}</td>
        <td id="contentItem{{ loop.index0 }}-filename" class="numeric">{{ item.filename }}</td>
    </tr>
    {% else %}
    <tr>
        <td colspan="3">No previous uploads</td>
    </tr>
    {% endfor %}

    </tbody>
</table>

Fix table header and no items display
Fix table header and no items display

