{% extends 'fittings/base.html' %} {% load i18n %} {% load humanize %} {% load filters %} {% load static %} {% block more_css %} {% endblock %} {% block page_title %}{% translate "Add Category" %}{% endblock %} {% block fittings_block %}
{% translate "New Category" %}
{% csrf_token %}
{% translate "Only selected groups will have access to fittings and doctrines in this category. If no groups are selected the category will be visible to all with fittings module access." %}

{% endblock %} {% block extra_javascript %} {% endblock %} {% block extra_script %} var color_picker = document.getElementById("color"); var color_picker_wrapper = document.getElementById("color-wrapper"); color_picker.onchange = function() { color_picker_wrapper.style.backgroundColor = color_picker.value; } color_picker_wrapper.style.backgroundColor = color_picker.value; new SlimSelect({ select: "#groupSelect", hideSelectedOption: true }); new SlimSelect({select: "#fitSelect", hideSelectedOption: true}); new SlimSelect({select: "#docSelect", hideSelectedOption: true}); {% endblock %}