{% extends "base.html" %} {% block title %}分类管理{% endblock %} {% block content %}
添加主分类
添加子分类
已存在的分类
{% for main_id, cat in categories.items()|sort(attribute='1.weight', reverse=True) %}
{{ cat.name }}(ID: {{ main_id }}) {{ cat.get('weight', 0) }} {% if cat.get('private', False) %} 私有 {% endif %}
编辑 删除
    {% for sub_id, subData in cat.sub.items()|sort(attribute='1.weight', reverse=True) %}
  • {{ subData.name }}(ID: {{ sub_id }}) {{ subData.get('weight', 0) }} {% if cat.get('sub_private', {}).get(sub_id, False) %} 私有 {% endif %}
    编辑 删除
  • {% endfor %}
{% endfor %}
{% for main_id, cat in categories.items()|sort(attribute='1.weight', reverse=True) %}
{{ cat.name }} (ID: {{ main_id }}) {{ cat.get('weight', 0) }} {% if cat.get('private', False) %} 私有 {% endif %}
子分类列表
{% for sub_id, subData in cat.sub.items()|sort(attribute='1.weight', reverse=True) %}
{{ subData.name }} (ID: {{ sub_id }}) {{ subData.get('weight', 0) }} {% if cat.get('sub_private', {}).get(sub_id, False) %} 私有 {% endif %}
编辑 删除
{% endfor %}
{% endfor %}
{% endblock %}