# HG changeset patch # User BenoƮt Allard # Date 1412848202 -7200 # Node ID e39fd204eb333614fc57192c07c221a747973ff9 # Parent 95c79e518204c0e7ae4f772b52405957560c781e Remove possibility to view and edit a product (edit from the view page) and set url relative diff -r 95c79e518204 -r e39fd204eb33 farol/templates/producttree/view.j2 --- a/farol/templates/producttree/view.j2 Thu Oct 09 11:17:27 2014 +0200 +++ b/farol/templates/producttree/view.j2 Thu Oct 09 11:50:02 2014 +0200 @@ -50,51 +50,51 @@ {% call panel(heading="Branches", badge=producttree._branches | length, title=4, extended=True) %} {% for branch in producttree._branches recursive %} {% call panel() %} -

{{ branch._type}}: {{ branch._name }} (edit)

+

{{ branch._type}}: {{ branch._name }} (edit)

{% if branch._product %} - {{ branch._product._name }} (edit) +

{{ branch._product._name }}

{% else %} {{ loop(branch._childs) }} {% endif %} {% if branch.isOrphaned() %} -

This branch is orphaned. A product or a new branch should be created as child of this one.

+

This branch is orphaned. A product or a new branch should be created as child of this one.

{% endif %} {% endcall %} {% endfor %} - add branch + add branch {% endcall %} {% call panel(heading="Products", badge=producttree.nbProducts(), title=4) %} {% for product in producttree._products if product._parent is sameas producttree %} -

{{ product._name }} (edit)

+

{{ product._name }}

{% endfor %} - add product + add product {% endcall %} {% call panel(heading="Relationships", badge=producttree._relationships | length, title=4) %} {% for relationship in producttree._relationships %} {% call panel() %} -

{{ cvrf.getProductForID(relationship._productreference)._name }} as {{ relationship._relationtype | lower }} {{ cvrf.getProductForID(relationship._relatestoproductreference)._name }} (edit)

- {% if relationship._product %}

{{ relationship._product._name }} (edit)

{% endif %} +

{{ cvrf.getProductForID(relationship._productreference)._name }} as {{ relationship._relationtype | lower }} {{ cvrf.getProductForID(relationship._relatestoproductreference)._name }} (edit)

+ {% if relationship._product %}

{{ relationship._product._name }}

{% endif %} {% if relationship.isOrphaned() %} -

This relationship is orphaned. A product should be created as child of this one.

+

This relationship is orphaned. A product should be created as child of this one.

{% endif %} {% endcall %} {% endfor %} - add + add {% endcall %} {% call panel(heading="Groups", badge=producttree._groups | length, title=4) %} {% for group in producttree._groups %} {% call panel() %} - edit + edit {% if group._description %}

{{ group._description }}

{% endif %} {% endcall %} {% endfor %} - add + add {% endcall %} {% endblock %}