Initial commit
This commit is contained in:
24
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_change_list.html
vendored
Normal file
24
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_change_list.html
vendored
Normal 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 %}
|
||||
37
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_change_list_results.html
vendored
Normal file
37
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_change_list_results.html
vendored
Normal 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">
|
||||
</span>{% endfor %}
|
||||
{% endif %}
|
||||
{{ item }}
|
||||
{% endfor %}</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="hidden" id="has-filters" value="{{ filtered|yesno:"1,0" }}"/>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
21
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_list.html
vendored
Normal file
21
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_list.html
vendored
Normal 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 %}
|
||||
7
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_list_results.html
vendored
Normal file
7
env/lib/python3.10/site-packages/treebeard/templates/admin/tree_list_results.html
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{% if results %}
|
||||
<ul>
|
||||
{% for result in results %}
|
||||
<li class="{% cycle 'row1' 'row2' %}">{{ result }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user