source: main/branches/3D/openPLM/templates/DisplayObjectChild.htm @ 662

Revision 662, 2.5 KB checked in by pcosquer, 9 years ago (diff)

3D branch: merge changes from trunk (rev [661])

  • Property svn:executable set to *
Line 
1{% extends "MiddleDisplayObject.htm" %}
2{% load i18n plmapp_tags %}
3
4<!-- Manage html display in the Content div which correspond to the "children" menu -->
5
6{% block scripts %}
7
8    <script type="text/javascript" src="/media/js/bom.js"></script>
9    <script>
10        $(function() {
11            $( "#id_date_0" ).datepicker();
12        });
13    </script>
14
15{% endblock %}
16
17{% block content %}
18    {% if is_owner and obj.is_editable %}
19        <a class="{{"Button"|button}}" href="./add/"><span class="ui-button-text">{% trans "ADD" %}</span></a>
20        <a class="{{"Button"|button}}" href="./edit/"><span class="ui-button-text">{% trans "EDIT" %}</span></a>
21    {% endif %}
22    <form method="GET" action="">
23        {% trans "Display :" %}
24        <ul>
25            {{display_form.as_ul}}
26        </ul>
27        <input type="submit" class="{{"Button"|button}}" value="{% trans "GO !" %}"/>
28    </form>
29    <table class="Content">
30        <tr class="Content">
31            <th class="Content" style="width:50px"> </th>
32            <th class="Content" style="width:50px"> {% trans "Ord." %} </th>
33            <th class="Content" style="width:50px"> {% trans "Qty" %}</th>
34            <th class="Content" style="width:50px"> {% trans "Unit" %}</th>
35            <th class="Content"> {{ obj.reference }} </th>
36            <th class="Content"> {{ obj.revision }} </th>
37            <th class="Content"> {{ obj.type }} </th>
38            <th class="Content"> {{ obj.name }} </th>
39            <th class="Content"> {{ obj.state.name }} </th>
40        </tr>
41        {% for level, link in children %}
42            <tr class="Content">
43                <td class="Content expander open level{{level}}" style="padding-left:{{level|add:"-1"}}0px;" >
44                    <span class="expander">↳</span>
45                </td>
46
47                <td class="Content"> {{ link.order }} </td>
48                <td class="Content"> {{ link.quantity }} </td>
49                <td class="Content"> {{ link.get_unit_display }} </td>
50                <td class="Content">
51                    <a href="/object/{{link.child.type}}/{{link.child.reference}}/{{link.child.revision}}/">
52                        {{ link.child.reference }}
53                    </a>
54                </td>
55                <td class="Content"> {{ link.child.revision }} </td>
56                <td class="Content"> {{ link.child.type }} </td>
57                <td class="Content"> {{ link.child.name }} </td>
58                <td class="Content"> {{ link.child.state.name }} </td>
59            </tr>
60        {% endfor %}
61        </table>
62{% endblock %}
63
64
Note: See TracBrowser for help on using the repository browser.