-
Notifications
You must be signed in to change notification settings - Fork 239
Expand file tree
/
Copy pathtree_editor.html
More file actions
32 lines (26 loc) · 1.06 KB
/
tree_editor.html
File metadata and controls
32 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "admin/change_list.html" %}
{% load admin_list i18n static %}
{% block extrahead %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static 'feincms/tree_editor.css' %}">
{% include "admin/feincms/load-jquery.include" %}
<script type="text/javascript">
feincms.tree_structure = JSON.parse('{{ tree_structure|default:"{}" }}');
feincms.node_levels = JSON.parse('{{ node_levels|default:"{}" }}');
</script>
<script type="text/javascript" src="{% static 'feincms/js.cookie.js' %}"></script>
<script type="text/javascript" src="{% static 'feincms/tree_editor.js' %}"></script>
{% endblock %}
{% block filters %}
<div id="changelist-filter">
<h2>{% trans 'Shortcuts' %}</h2>
<ul>
<li><a id="collapse_entire_tree" href="#">{% trans 'Collapse tree' %}</a></li>
<li><a id="open_entire_tree" href="#">{% trans 'Expand tree' %}</a></li>
</ul>
{% if cl.filter_specs %}
<h2>{% trans 'Filter' %}</h2>
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
{% endif %}
</div>
{% endblock %}