|
|
@@ -1,19 +1,21 @@
|
|
1
|
1
|
{% extends 'dashboard/layout.html' %}
|
|
2
|
2
|
{% load category_tags %}
|
|
|
3
|
+{% load i18n %}
|
|
|
4
|
+
|
|
3
|
5
|
{% block body_class %}catalogue{% endblock %}
|
|
4
|
6
|
|
|
5
|
7
|
{% block title %}
|
|
6
|
|
-Category management | {{ block.super }}
|
|
|
8
|
+{% trans "Category management" %} | {{ block.super }}
|
|
7
|
9
|
{% endblock %}
|
|
8
|
10
|
|
|
9
|
11
|
{% block breadcrumbs %}
|
|
10
|
12
|
<ul class="breadcrumb">
|
|
11
|
13
|
<li>
|
|
12
|
|
- <a href="{% url dashboard:index %}">Dashboard</a>
|
|
|
14
|
+ <a href="{% url dashboard:index %}">{% trans "Dashboard" %}</a>
|
|
13
|
15
|
<span class="divider">/</span>
|
|
14
|
16
|
</li>
|
|
15
|
17
|
<li>
|
|
16
|
|
- <a href="{% url dashboard:catalogue-category-list %}">Category management</a>
|
|
|
18
|
+ <a href="{% url dashboard:catalogue-category-list %}">{% trans "Category management" %}</a>
|
|
17
|
19
|
<span class="divider">/</span>
|
|
18
|
20
|
</li>
|
|
19
|
21
|
<li class="active"><a href=".">{{ category.name }}</a></li>
|
|
|
@@ -22,13 +24,13 @@ Category management | {{ block.super }}
|
|
22
|
24
|
|
|
23
|
25
|
{% block header %}
|
|
24
|
26
|
<div class="page-header action">
|
|
25
|
|
- <h1>Category management</h1>
|
|
|
27
|
+ <h1>{% trans "Category management" %}</h1>
|
|
26
|
28
|
</div>
|
|
27
|
29
|
{% endblock header %}
|
|
28
|
30
|
|
|
29
|
31
|
{% block dashboard_content %}
|
|
30
|
32
|
|
|
31
|
|
-<p>You are editing:
|
|
|
33
|
+<p>{% trans "You are editing:" %}
|
|
32
|
34
|
<a href="{% url dashboard:catalogue-category-list %}">Home</a>
|
|
33
|
35
|
{% if ancestors %}
|
|
34
|
36
|
>
|
|
|
@@ -41,9 +43,9 @@ Category management | {{ block.super }}
|
|
41
|
43
|
<table class="table table-striped table-bordered">
|
|
42
|
44
|
<thead>
|
|
43
|
45
|
<tr>
|
|
44
|
|
- <th>Name</th>
|
|
45
|
|
- <th>Description</th>
|
|
46
|
|
- <th>Number of child categories</th>
|
|
|
46
|
+ <th>{% trans "Name" %}</th>
|
|
|
47
|
+ <th>{% trans "Description" %}</th>
|
|
|
48
|
+ <th>{% trans "Number of child categories" %}</th>
|
|
47
|
49
|
<th></th>
|
|
48
|
50
|
</tr>
|
|
49
|
51
|
</thead>
|
|
|
@@ -54,16 +56,16 @@ Category management | {{ block.super }}
|
|
54
|
56
|
<td>{{ category.description|default:""|striptags|cut:" "|truncatewords:6 }}</td>
|
|
55
|
57
|
<td>{{ category.get_num_children }}</td>
|
|
56
|
58
|
<td>
|
|
57
|
|
- <a class="btn btn-primary" href="{% url dashboard:catalogue-category-update category.id %}">Edit category</a>
|
|
58
|
|
- <a class="btn btn-primary {% if not category.has_children %}disabled{% endif %}" href="{% url dashboard:catalogue-category-detail-list pk=category.pk %}">Edit children</a>
|
|
59
|
|
- <a class="btn btn-info" href="{{ category.get_absolute_url }}">View on site</a>
|
|
60
|
|
- <a class="btn btn-danger" href="{% url dashboard:catalogue-category-delete category.id %}">Delete</a>
|
|
|
59
|
+ <a class="btn btn-primary" href="{% url dashboard:catalogue-category-update category.id %}">{% trans "Edit category" %}</a>
|
|
|
60
|
+ <a class="btn btn-primary {% if not category.has_children %}disabled{% endif %}" href="{% url dashboard:catalogue-category-detail-list pk=category.pk %}">{% trans "Edit children" %}</a>
|
|
|
61
|
+ <a class="btn btn-info" href="{{ category.get_absolute_url }}">{% trans "View on site" %}</a>
|
|
|
62
|
+ <a class="btn btn-danger" href="{% url dashboard:catalogue-category-delete category.id %}">{% trans "Delete" %}</a>
|
|
61
|
63
|
</td>
|
|
62
|
64
|
</tr>
|
|
63
|
65
|
{% endfor %}
|
|
64
|
66
|
</tbody>
|
|
65
|
67
|
</table>
|
|
66
|
68
|
|
|
67
|
|
-<a class="btn btn-large btn-primary" href="{% url dashboard:catalogue-category-create %}">Create a new category</a>
|
|
|
69
|
+<a class="btn btn-large btn-primary" href="{% url dashboard:catalogue-category-create %}">{% trans "Create a new category" %}</a>
|
|
68
|
70
|
|
|
69
|
71
|
{% endblock dashboard_content %}
|