{% extends "forms/form.html" %} {% load exfiltry %} {% load exsyntax %} {% block list_content_title %} {% if parent_pk > 0 %}

{{title|wiki_href|safe}} {% if parent %} {% if parent and parent.title %} - {{parent.title}} {% else %} - {{parent}} {% endif %} {% endif %}

{% else %}

{{title|wiki_href|safe}} {% if settings.DEBUG %} >> {% endif %}

{% if settings.DEBUG %}
model: {{object_list.model|get_model_app}}/{{object_list.model|class_name}}, template: {{template}}
{% endif %} {% endif %} {% endblock %} {% block list_content_actions %} {% with gtree=get|get_or_tree %} {% if vtype == 'tree' or vtype == 'gettree' %} {% if standard_web_browser %} {% if parent_pk > 0 and base_filter != parent_pk|to_str %} {% if base_filter %} {% action "home-_self" "/" url=table_path_and_base_filter|append_str:base_filter|append_str:'/{{target}}/{{gtree}}/' %} {% else %} {% action "home-_self" "/" url=table_path_and_base_filter|append_str:'0/{{target}}/{{gtree}}/' %} {% endif %} {% else %} {% action "home-_self" "/" url=table_path_and_base_filter|append_str:'0/{{target}}/tree/' tag_class="+disabled" %} {% endif %} {% else %} {% if parent_pk > 0 and base_filter != parent_pk|to_str %} {% else %} {% endif %} {% endif %} {% if parent|get_all_model_parents|length > 1 %} {% if not base_parent_pk %} {% for pos in parent|get_all_model_parents reversed %} {% if not forloop.last %} {% action "back-_self" pos.code url=table_path_and_base_filter|append_str:'{{pos.id}}/{{target}}/{{gtree}}/' %} {% endif %} {% endfor %} {% endif %} {% endif %} {% endif %} {% block list_content_actions_new_row %} {% if not readonly %} {% if parent_pk and parent_pk > 0 %} {% new_row "New element" url=table_path|append_str:'%d/this/-/add/'|format:parent.id %} {% else %} {% new_row "New element" url=table_path|append_str:'0/this/-/add/' %} {% endif %} {% endif %} {% endblock %} {% endwith %} {% endblock %} {% block list_row_header_start %} {% if not no_id %} {% if standard_web_browser %} {% with gtree=get|get_or_tree %} {% if vtype == 'tree' or vtype == 'gettree' %} {% if parent_pk > 0 and base_filter != parent_pk|to_str %} {% action "back-_self" ".." url=table_path_and_base_filter|append_str:'-{{parent_pk}}/{{target}}/{{ro}}{{gtree}}/' %} {% else %} {% action "back-_self" ".." url=table_path_and_base_filter|append_str:'-{{parent_pk}}/{{target}}/{{ro}}{{gtree}}/' tag_class="+disabled" attrs="+disabled='disabled'" %} {% endif %} {% endif %} {% endwith %} {% id_num 'Id' %} {% endif %} {% endif %} {% endblock %} {% block id_extra %} {% if vtype == 'tree' or vtype == 'gettree' %} {% if standard_web_browser %} {% with gtree=get|get_or_tree %} {% if object|model_has_children %} {% icon "fa-plus fa-lg" %} {% else %} {% if get %} {% icon "fa-ban fa-lg" %} {% else %} {% icon "fa-plus-square-o fa-lg" %} {% endif %} {% endif %} {% endwith %} {% else %} {% with gtree=get|get_or_tree %} {% if object|model_has_children %} + {% else %} {% if get %} {% icon "fa-ban fa-lg" %} {% else %} + {% endif %} {% endif %} {% endwith %} {% endif %} {% endif %} {% if standard_web_browser %} {{ block.super }} {% endif %} {% endblock %} {% block tabsort_parameters_block2 %} {% with not_multiple_select=0 sort=0 %} {{ block.super }} {% endwith %} {% endblock %}