File: tree_change_list_results.html

package info (click to toggle)
python-django-treebeard 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 796 kB
  • ctags: 1,022
  • sloc: python: 4,868; makefile: 180
file content (38 lines) | stat: -rw-r--r-- 1,540 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
{% if result_hidden_fields %}
    <div class="hiddenfields"> {# DIV for HTML validation #}
        {% for item in result_hidden_fields %}{{ item }}{% endfor %}
    </div>
{% endif %}
{% if 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, has_children, 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>
{% endif %}