{% extends "part/category.html" %}
{% load static %}
{% load i18n %}

{% block menubar %}
{% include 'part/category_navbar.html' with tab='parameters' %}
{% endblock %}

{% block heading %}
{% trans "Part Parameters" %}
{% endblock %}

{% block details %}

<table class='table table-striped table-condensed' data-toolbar='#button-toolbar' id='parametric-part-table'>
</table>

{% endblock %}

{% block js_ready %}
{{ block.super }}

    /* Hide Button Toolbar */
    window.onload = function hideButtonToolbar() {
        var toolbar = document.getElementById("button-toolbar");
        toolbar.style.display = "none";
    };

    loadParametricPartTable(
        "#parametric-part-table",
        { 
            headers: {{ headers|safe }},
            data: {{ parameters|safe }},
        }
    );

{% endblock %}