{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% load humanize %}
{% block title %}Prepare Data{% endblock title %}

{% block body %}
    <div class="container-fluid">
        <form action="" method="POST" class="card border-info-subtle p-3 mt-2" autocomplete="off" id="form">
            {% csrf_token %}
            <button type="submit" class="btn btn-primary mt-2 me-2 ms-2" name="subject" value="Item Inventory">Item Inventory</button>
            <button type="submit" class="btn btn-primary mt-2 me-2 ms-2" name="subject" value="Customer List">Customer List</button>
            <div class="container-fluid card border-info p-3 mt-3">
                        {% for so_no in objects %}
                                <div class="form-check form-check-inline">
                                    <input class="form-check-input" type="checkbox" id="inlineCheckbox{{forloop.count}}" name="selected_items" value="{{so_no}}">{{so_no}}
                                  </div>
                        {% endfor %}
            
            <button type="submit" class="btn btn-primary mt-2 me-2 ms-2" name="subject" value="Price Level List">Price Level List</button>
            </div>
        </form>
    </div>
           
    <datalist id='itemname'>
        {% for customer in customers %}
        <option value="{{customer|first}}" data-pk="{{customer|first}}" data-desc="{{customer|first}}" data-rate="{{customer|first}}">
        {% endfor %}
    </datalist>

{% endblock body %}