{% extends 'list-crud.html' %}
{% load static %}

{% block filter %}
<form id="filterForm" method="get" style="display: inline;">
    <input type="hidden" name="filter" id="filterInput" value="{{ request.GET.filter|default:'active' }}">
    <button type="button" class="btn btn-primary" id="activeBtn">Active</button>
    <button type="button" class="btn btn-primary" id="allBtn">All</button>
</form>
{% endblock filter %}

{% block table_header %}
        <th style="display: none;">Select</th>
        <th>Preinfo №</th>
        <th>Container №</th>
        <th>Container type</th>
        <th>Line</th>
        <th>Created on</th>
        <th>Created by</th>
        <th>Status</th>
{% endblock table_header %}

{% block table_data %}
    <td>{{ object.id }}</td>
    <td>{{ object.container_number }}</td>
    <td>{{ object.container_type }}</td>
    <td>{{ object.line.short_name }}</td>
    <td>{{ object.created_on }}</td>
    <td>{{ object.created_by.username }}</td>
    <td>{{ object.received|yesno:"Received,Pending" }}</td>
{% endblock %}

