File: tree_change_list_results.html

package info (click to toggle)
python-django-treebeard 4.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,160 kB
  • sloc: python: 5,010; makefile: 184
file content (40 lines) | stat: -rw-r--r-- 1,697 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
{% 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" }}"/>
        <script>
            var MOVE_NODE_ENDPOINT = 'move/';
        </script>
    </div>
{% endif %}