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.
72 lines
3.2 KiB
72 lines
3.2 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_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>
|
|
{% 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_nakladn_list %} selected{% endif %}">
|
|
<a href="{{ url_nakladn_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 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 %}">
|
|
<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 }}"style="padding-left: 40px;">МОИ РЕКВИЗИТЫ</a>
|
|
</li>
|
|
<li class="yellow child{% if request.path == customer_clients_list %} selected{% endif %}">
|
|
<a href="{{ customer_clients_list }}"style="padding-left: 30px;">МОИ КОНТРАГЕНТЫ</a>
|
|
</li>
|
|
|
|
{# endif #}
|
|
|