source: main/trunk/openPLM/templates/DisplayObjectChild.htm @ 486

Revision 486, 2.4 KB checked in by pcosquer, 8 years ago (diff)

new (dark and less ugly) design ;-)

  • 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"> {{ obj.reference }} </th>
35            <th class="Content"> {{ obj.revision }} </th>
36            <th class="Content"> {{ obj.type }} </th>
37            <th class="Content"> {{ obj.name }} </th>
38            <th class="Content"> {{ obj.state.name }} </th>
39        </tr>
40        {% for level, link in children %}
41            <tr class="Content">
42                <td class="Content expander open level{{level}}" style="padding-left:{{level|add:"-1"}}0px;" >
43                    <span class="expander">↳</span>
44                </td>
45
46                <td class="Content"> {{ link.order }} </td>
47                <td class="Content"> {{ link.quantity }} </td>
48                <td class="Content">
49                    <a href="/object/{{link.child.type}}/{{link.child.reference}}/{{link.child.revision}}/">
50                        {{ link.child.reference }}
51                    </a>
52                </td>
53                <td class="Content"> {{ link.child.revision }} </td>
54                <td class="Content"> {{ link.child.type }} </td>
55                <td class="Content"> {{ link.child.name }} </td>
56                <td class="Content"> {{ link.child.state.name }} </td>
57            </tr>
58        {% endfor %}
59        </table>
60{% endblock %}
61
62
Note: See TracBrowser for help on using the repository browser.