25 lines
782 B
HTML
25 lines
782 B
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<link rel="stylesheet" href="{{ STATIC_URL }}/static/admin/css/base.css" />
|
|
</head>
|
|
<body>
|
|
<div id="content" class="flex">
|
|
<h1>Music Shop</h1>
|
|
{% if parent_category_list %}
|
|
<ul>
|
|
{% for parent_category in parent_category_list %}
|
|
<li><a href="{% url 'category' parent_category.id %}">{{ parent_category.name }}</a></li>
|
|
{% for category in category_list %}
|
|
<ul>
|
|
<li><a href="{% url 'category' category.id %}">{{ category.name }}</a></li>
|
|
</ul>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No categories are available.</p>
|
|
{% endif %}
|
|
</div>
|
|
</body>
|
|
</html>
|