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

Revision 662, 2.0 KB checked in by pcosquer, 8 years ago (diff)

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

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 content %}
7<form method="POST" action="">
8    {{ children_formset.management_form }}
9    <table class="Content">
10        <tr>
11            <th class="Content">{% trans "Order" %}</th>
12            <th class="Content">{% trans "Quantity" %} </th>
13            <th class="Content" style="width:50px"> {% trans "Unit" %}</th>
14            <th class="Content"> {{ obj.reference }} </th>
15            <th class="Content"> {{ obj.revision }} </th>
16            <th class="Content"> {{ obj.type }} </th>
17            <th class="Content"> {{ obj.name }} </th>
18            <th class="Content"> {{ obj.state.name }} </th>
19            <th class="Content"> {% trans "Delete ?" %} </th>
20        </tr>
21        {% for form in children_formset.forms %}
22            {{ form.id }}
23            {{ form.parent }}
24            {{ form.child }}
25            <tr class="Content">
26                <td class="Content"> {{ form.order }} </td>
27                <td class="Content"> {{ form.quantity }} </td>
28                <td class="Content" style="width:50px"> {{ form.unit }} </td>
29                <td class="Content">
30                    <a href="{{form.instance.child.plmobject_url}}">
31                        {{ form.instance.child.reference }}
32                    </a>
33                </td>
34                <td class="Content"> {{ form.instance.child.revision }} </td>
35                <td class="Content"> {{ form.instance.child.type }} </td>
36                <td class="Content"> {{ form.instance.child.name }} </td>
37                <td class="Content"> {{ form.instance.child.state.name }} </td>
38                <td class="Content"> {{ form.delete }} </td>
39            </tr>
40        {% endfor %}
41    </table>
42    <input type="submit" class="{{"Button"|button}}" value="{% trans "Validate" %}" name="_validate"/>
43    <input type="submit" class="{{"Button"|button}}" value="{% trans "Undo" %}" name="_undo"/>
44</form>
45{% endblock %}
46
47
Note: See TracBrowser for help on using the repository browser.