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

Revision 662, 2.1 KB checked in by pcosquer, 8 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 "lifecycle" menu -->
5
6{% block content %}
7    <div id="form-promote-dialog" title="{% trans "Are you sure?" %}" style="display:none">
8        <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>{% trans "If you promote or demote this object, you may not be allowed to undo this action." %}</p>
9    </div>
10
11    <form id ="form-promote" class="confirmation"  action="" method="POST">
12        {% if is_signer_dm %}
13            {% if obj.is_editable %}
14                <input name="action" type="submit" class="{{"Button"|button}}" value="DEMOTE" />
15            {% else %}
16                <p>{% trans "You can not demote this object since its state is official or more advanced." %}</p>
17            {% endif %}
18        {% else %}
19            <p>{% trans "You do not have the permission to demote this object." %}</p>
20        {% endif %}
21        {% if is_signer %}
22            {% if obj.is_promotable %}
23                <input name="action" type="submit" class="{{"Button"|button}}" value="PROMOTE" />
24            {% else %}
25                <p>{% trans "You can not promote this object:" %}</p>
26                {{ obj.promotion_errors.as_ul }}
27            {% endif %}
28        {% else %}
29            <p>{% trans "You do not have the permission to promote this object." %}</p>
30        {% endif %}
31    </form>
32    <table class="Content">
33        <tr class="Content">
34            {% for status, is_current_state in object_lifecycle %}
35                <td class="Content status Button ui-state-default ui-button-text-only
36                    {% if is_current_state %}
37                        ui-state-active active
38                    {% else %}
39                        ui-state-inactive
40                    {% endif %}
41                    ">
42                    {{status|upper}}</td>
43                {% if not forloop.last %}
44                    <td class="Content arrow">===&gt;</td>
45                {% endif %}
46            {% endfor %}
47        </tr>
48    </table>
49{% endblock %}
50
Note: See TracBrowser for help on using the repository browser.