{% extends "bases/unical_storage_list.html" %} {% load i18n %} {% load static %} {% load unicms_storage_handler %} {% load unicms_templates %} {% block content %} {% get_allowed_website request.get_host as host %} {% settings_value "CMS_PATH_PREFIX" as cms_path_prefix %} {% settings_value "CMS_STORAGE_BASE_PATH" as base_prefix %} {% settings_value "CMS_STORAGE_STRUCTURE_VIEW_PREFIX_PATH" as structures_prefix %} {% block storage_block_top %} {% include "blocks/includes/unical_storage_check.html" %} {% endblock storage_block_top %}
{% block search %}

{% include "includes/unical_storage_search_input.html" with id=id %} {% block structure_type_filter %}
{% endblock structure_type_filter %}
{% endblock search %}

[[ item.StructureName ]]

[[ labels['StructureTypeName'] ]] > [[ item.StructureTypeName ]]
{% block storage_block_bottom %}
{% trans "No items here" %}
{% endblock storage_block_bottom %} {% endblock content %} {% block extra_scripts %} {% endblock extra_scripts %} {% block extra_data %} {% get_current_language as LANGUAGE_CODE %} {% settings_value "CMS_STORAGE_STRUCTURETYPES_API" as types_api %} search_dict: {}, selected_types: this.getItemFromSession("{{ id }}", 'type'), is_loading_types: true, {% get_father_from_url url as father_code %} loader_source_types: '{{ types_api }}?lang={{ LANGUAGE_CODE }}', selected_search: this.getItemFromSession("{{ id }}", 'search'), allowed_types: [], types_filter: [], {% endblock extra_data %} {% block extra_mounted %} // if url if pre-filtered resize select field // this allows to auto generate select options according to URL get filters! let params = new URLSearchParams(this.url.split('?')[1]); let get_types = params.get("type") if (get_types != null){ let get_types_list = get_types.split(',') this.allowed_types = get_types } this.parameters = {{ id }}_encodeQueryData(this.getItemsFromSession("{{ id }}")) this.callTypes(); {% endblock extra_mounted %} {% block extra_methods %} callTypes() { axios .get(this.loader_source_types) .then(response => { this.types_filter = response.data.results; this.is_loading_types = false }) }, {% endblock extra_methods %}