|
|
|
|
@ -11,7 +11,9 @@ |
|
|
|
|
{% url 'customer_profile_view' as customer_profile_view %} |
|
|
|
|
{% url 'customer_clients_list' as customer_clients_list %} |
|
|
|
|
|
|
|
|
|
{% if user.is_anonymous %} |
|
|
|
|
{# if user.is_authenticated #} |
|
|
|
|
|
|
|
|
|
{% if not user.is_authenticated %} |
|
|
|
|
{% for child in children|slice:":4" %} |
|
|
|
|
<li class="child{% if child.selected %} selected{% endif %}{% if child.ancestor %} ancestor{% endif %}{% if child.sibling %} sibling{% endif %}{% if child.descendant %} descendant{% endif %}"> |
|
|
|
|
<a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a> |
|
|
|
|
@ -38,7 +40,7 @@ |
|
|
|
|
{% endif %} |
|
|
|
|
<li id="other_docs"> |
|
|
|
|
<a href="#" id="other_docs_a">Другие документы</a> |
|
|
|
|
{% if user.is_anonymous %} |
|
|
|
|
{% if not user.is_authenticated %} |
|
|
|
|
<ul class="other_docs_menu hidden"> |
|
|
|
|
{% for child in children|slice:"4:" %} |
|
|
|
|
<li class="child{% if child.selected %} selected{% endif %}{% if child.ancestor %} ancestor{% endif %}{% if child.sibling %} sibling{% endif %}{% if child.descendant %} descendant{% endif %}"> |
|
|
|
|
@ -66,3 +68,5 @@ |
|
|
|
|
<li class="yellow child{% if request.path == customer_clients_list %} selected{% endif %}"> |
|
|
|
|
<a href="{{ customer_clients_list }}"style="padding-left: 30px;">МОИ КОНТРАГЕНТЫ</a> |
|
|
|
|
</li> |
|
|
|
|
|
|
|
|
|
{# endif #} |
|
|
|
|
|