{% load i18n %}
{% load static %}
{% load inventree_extras %}

<ul class='list-group'>
    <li class='list-group-item'>
        <a href='#' id='build-menu-toggle'>
            <span class='menu-tab-icon fas fa-expand-arrows-alt'></span>
        </a>
    </li>

    <li class='list-group-item {% if tab == "details" %}active{% endif %}' title='{% trans "Build Order Details" %}'>
        <a href='{% url "build-detail" build.id %}'>
            <span class='fas fa-info-circle'></span>
            {% trans "Details" %}
        </a>
    </li>

    {% if build.active %}
    
    <li class='list-group-item {% if tab == "allocate" %}active{% endif %}' title='{% trans "Allocate Stock" %}'>
        <a href='{% url "build-allocate" build.id %}'>
            <span class='fas fa-tools'></span>
            {% trans "Allocate Stock" %}
        </a>
    </li>
    {% endif %}

    <li class='list-group-item {% if tab == "output" %}active{% endif %}' title='{% trans "Build Outputs" %}'>
        <a href='{% url "build-output" build.id %}'>
            <span class='fas fa-box'></span>
            {% trans "Build Outputs" %}
        </a>
    </li>

    <li class='list-group-item {% if tab == "children" %}active{% endif %}' title='{% trans "Child Build Orders" %}'>
        <a href='{% url "build-children" build.id %}'>
            <span class='fas fa-sitemap'></span>
            {% trans "Child Builds" %}
        </a>
    </li>

    <li class='list-group-item {% if tab == "attachments" %}active{% endif %}' title='{% trans "Attachments" %}'>
        <a href='{% url "build-attachments" build.id %}'>
            <span class='fas fa-paperclip'></span>
            {% trans "Attachments" %}
        </a>
    </li>

    <li class='list-group-item {% if tab == "notes" %}active{% endif %}' title='{% trans "Build Order Notes" %}'>
        <a href='{% url "build-notes" build.id %}'>
            <span class='fas fa-clipboard'></span>
            {% trans "Notes" %}
        </a>
    </li>

</ul>

