Changeset 1181 in main


Ignore:
Timestamp:
06/06/12 13:08:19 (7 years ago)
Author:
pcosquer
Message:

template: revisions: shows a better explanation message if the object is cancelled or deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/templates/revisions.html

    r820 r1181  
    88            {% if confirmation %} class="confirmation" {% endif %} action=""> 
    99            {{ add_revision_form }} 
    10              
     10 
    1111            {% if confirmation %} 
    1212                {% block confirmation %} {% endblock %} 
     
    1717    {% else %} 
    1818        {% if is_readable %} 
    19             {% trans "You can not revise this object since a revision already exist." %} 
     19 
     20            {% if obj.is_cancelled %} 
     21                {% trans "You can not revise this object since it is cancelled." %} 
     22            {% else %} 
     23                {% if obj.is_deprecated %} 
     24                    {% trans "You can not revise this object since it is deprecated." %} 
     25                {% else %} 
     26                    {% trans "You can not revise this object since a revision already exist." %} 
     27                {% endif %} 
     28            {% endif %} 
     29 
    2030        {% endif %} 
    2131    {% endif %} 
Note: See TracChangeset for help on using the changeset viewer.