{% extends "base.html" %} {% load i18n plmapp_tags %} {% block css %} {% endblock %} {% block content %} {# lifecycle : display all states #}
{% trans "You can not demote this object since its state is official or more advanced." %}
{% endif %} {% else %}{% trans "You do not have the permission to demote this object." %}
{% endif %} {% endif %} {# promote #} {% if is_signer %} {% if not is_promotable %}{% trans "You can not promote this object:" %}
{{ obj.promotion_errors.as_ul }} {% if promote_assembly %}{% trans "But you can try to promote the whole assembly." %}
{% endif %} {% elif not can_approve %} {% trans "You already have approved this promotion." %} {% endif %} {% else %}{% trans "You do not have the permission to promote this object." %}
{% endif %} {# cancel #} {% if obj.is_draft and is_owner %} {% if not can_cancel %} {% with obj.get_all_revisions|length as nb_revision %} {% if nb_revision > 1 %}{% trans "You can not cancel this object since it has more than one revision." %}
{% endif %} {% endwith %} {% if obj.has_links %}{% trans "You can not cancel this object since it is related to another object (part, document)." %}
{% endif %} {% endif %} {% elif not is_owner %}{% trans "You do not have the permission to cancel this object." %}
{% else %}{% trans "You can not cancel this object since its state is more advanced than draft." %}
{% endif %}{% trans "This object has been published:" %} {% trans "Public link" %}