You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

65 lines
3.0 KiB

{% load menu_tags %}
{% url 'docs_invoice_list' as url_invoice_list %}
{% url 'docs_faktura_list' as url_faktura_list %}
{% url 'docs_nakladn_list' as url_nakladn_list %}
{% url 'docs_aktrabot_list' as url_aktrabot_list %}
{% url 'docs_platejka_list' as url_platejka_list %}
{% url 'docs_dover_list' as url_dover_list %}
{% url 'docs_aktsverki_list' as url_aktsverki_list %}
{% url 'customer_profile_view' as customer_profile_view %}
{% url 'customer_clients_list' as customer_clients_list %}
{% if user.is_anonymous %}
{% 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>
{% if child.children %}
<ul>
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
</ul>
{% endif %}
</li>
{% endfor %}
{% else %}
<li class="child{% if request.path == url_invoice_list %} selected{% endif %}">
<a href="{{ url_invoice_list }}">СЧЕТА</a>
</li>
<li class="child{% if request.path == url_aktrabot_list %} selected{% endif %}">
<a href="{{ url_aktrabot_list }}">АКТЫ ВЫПОЛНЕННЫХ РАБОТ</a>
</li>
<li class="child{% if request.path == url_faktura_list %} selected{% endif %}">
<a href="{{ url_faktura_list }}">СЧЕТА-ФАКТУРЫ</a>
</li>
{% endif %}
<li id="other_docs">
<a href="#" id="other_docs_a">Другие документы</a>
{% if user.is_anonymous %}
<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 %}">
<a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<ul class="other_docs_menu hidden">
<li class="child{% if request.path == url_aktsverki_list %} selected{% endif %}">
<a href="{{ url_aktsverki_list }}">АКТЫ СВЕРКИ</a>
</li>
<li class="child{% if request.path == url_dover_list %} selected{% endif %}">
<a href="{{ url_dover_list }}">ДОВЕРЕННОСТИ</a>
</li>
<li class="child{% if request.path == url_platejka_list %} selected{% endif %}">
<a href="{{ url_platejka_list }}">ПЛАТЁЖНЫЕ ПОРУЧЕНИЯ</a>
</li>
</ul>
{% endif %}
</li>
<li class="yellow child{% if request.path == customer_profile_view %} selected{% endif %}">
<a href="{{ customer_profile_view }}">МОИ РЕКВИЗИТЫ</a>
</li>
<li class="yellow child{% if request.path == customer_clients_list %} selected{% endif %}">
<a href="{{ customer_clients_list }}">МОИ КОНТРАГЕНТЫ</a>
</li>