Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{# Used for MP and NS trees #}
{% extends "admin/change_list.html" %}
{% load admin_list admin_tree static %}
{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static 'treebeard/treebeard-admin.css' %}" />
{% endblock %}
{% block extrahead %}
{{ block.super }}
<script src="{% url 'admin:jsi18n' %}"></script>
<script data-csrftoken="{{ csrf_token }}" src="{% static 'treebeard/treebeard-admin.js' %}"></script>
{% endblock %}
{% block result_list %}
{% if action_form and actions_on_top and cl.full_result_count %}
{% admin_actions %}
{% endif %}
{% result_tree cl request %}
{% if action_form and actions_on_bottom and cl.full_result_count %}
{% admin_actions %}
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,37 @@
{% if result_hidden_fields %}
<div class="hiddenfields"> {# DIV for HTML validation #}
{% for item in result_hidden_fields %}{{ item }}{% endfor %}
</div>
{% endif %}
{% if results %}
<div class="results">
<table cellspacing="0" id="result_list">
<thead>
<tr>
{% for header in result_headers %}
<th{{ header.class_attrib }}>
{% if header.sortable %}<a href="{{ header.url }}"
{% if header.tooltip %}title="{{ header.tooltip }}"{% endif %}>{% endif %}
{{ header.text|capfirst }}
{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
</tr>
</thead>
<tbody>
{% for node_id, parent_id, node_level, children_num, result in results %}
<tr id="node-{{ node_id }}-id" class="{% cycle 'row1' 'row2' %}"
level="{{ node_level }}" children-num="{{ children_num }}"
parent="{{ parent_id }}" node="{{ node_id }}">
{% for item in result %}
{% if forloop.counter == 1 %}
{% for spacer in item.depth %}<span class="grab">&nbsp;
</span>{% endfor %}
{% endif %}
{{ item }}
{% endfor %}</tr>
{% endfor %}
</tbody>
</table>
<input type="hidden" id="has-filters" value="{{ filtered|yesno:"1,0" }}"/>
</div>
{% endif %}

View File

@@ -0,0 +1,21 @@
{# Used for AL trees #}
{% extends "admin/change_list.html" %}
{% load admin_list admin_tree_list i18n %}
{% block extrastyle %}
{{ block.super }}
{% endblock %}
{% block extrahead %}
{{ block.super }}
{% endblock %}
{% block result_list %}
{% if action_form and actions_on_top and cl.full_result_count %}
{% admin_actions %}
{% endif %}
{% result_tree cl request %}
{% if action_form and actions_on_bottom and cl.full_result_count %}
{% admin_actions %}
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% if results %}
<ul>
{% for result in results %}
<li class="{% cycle 'row1' 'row2' %}">{{ result }}</li>
{% endfor %}
</ul>
{% endif %}