{% extends 'cmdbase/base.html' %} {% load i18n static %} {% block title %}{{ category.name }} (Category){% endblock %} {% block content %}

{{ category.name }}

Category


{% if request.user.is_staff %}

{{ _("Admin") }}

{% endif %}
{% if parents %}
Parents
{% for parent in parents %} {% if not forloop.first %}>{% endif %} {{ parent }} {% endfor %}
{% endif %} {% if category.child_set.exists %}
Children
{% include "cmdbase/_category_children_tree.html" %}
{% endif %} {% if category.help %}
Help
{{ category.help }}
{% endif %}

Created: {{ category.created }} | Updated: {{ category.updated }} | Id: {{ category.id }}


Props

{% if request.user.is_staff %} {{ _("Admin") }} {% endif %}

{% if request.user.is_staff %}{% endif %} {% for cp in category.categoryprop_set.all %} {% if request.user.is_staff %}{% endif %} {% endfor %}
Fullname Category Ordinal Nature Unit Config Help
{{ cp.prop_fullname }} {% if cp.prop_category_id == category.id %}{{ category.name }}{% else %}{{ cp.prop_category_name }}{% endif %} {{ cp.prop_ordinal }} {{ cp.get_prop_nature_display | default_if_none:'' }} {{ cp.prop_unit | default_if_none:'' }} {{ cp.prop_config | default_if_none:'' }} {{ cp.prop_help | default_if_none:'' }}

Items

{% if request.user.is_staff %} {{ _("Admin") }} {% endif %}

{% for item in items %} {% endfor %}
Name Category
{{ item.name }} {% if item.category_id == category.id %}{{ category.name }}{% else %}{{ item.category }}{% endif %}
{% endblock %}