{% 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_LABORATORY_VIEW_PREFIX_PATH" as laboratory_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 filters %}
{% block filter_infrastructure %}
{% endblock filter_infrastructure %}
{% endblock filters %}
{% endblock search %}
{% if teacher_id %} {% trans "Manager" %} {% endif %}

[[ item.LaboratoryName ]]

[[ labels['DepartmentName'] ]] > [[ item.DepartmentName ]]
[[ labels['Area'] ]] > [[ item.Area ]]
[[ labels['LaboratoryScopes'] ]] > [[ scope.ScopeDescription ]]
[[ labels['InfrastructureName'] ]] > [[ item.InfrastructureName ]]
[[ labels['Interdepartmental'] ]] > [[ item.Interdepartmental ]]
{% 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_DEPARTMENTSFILTER_API" as departmentsfilter_api %} {% settings_value "CMS_STORAGE_LABORATORIES_AREAS_API" as laboratories_areas_api %} {% settings_value "CMS_STORAGE_LABORATORIES_SCOPES_API" as laboratories_scopes_api %} {% settings_value "CMS_STORAGE_INFRASTRUCTURES_API" as infrastructures_api %} {% settings_value "CMS_STORAGE_ERC1LIST_API" as erc1list_api %} search_dict: {}, departments: [], areas: [], scopes: [], infrastructures: [], erc1_list: [], is_loading_departments: true, is_loading_areas: true, is_loading_erc1: true, is_loading_scopes: true, is_loading_infrastructures: true, loader_source_departments: '{{ departmentsfilter_api }}?lang={{ LANGUAGE_CODE }}', loader_source_areas: '{{ laboratories_areas_api }}?lang={{ LANGUAGE_CODE }}', loader_source_erc1: '{{ erc1list_api }}?lang={{ LANGUAGE_CODE }}', loader_source_scopes: '{{ laboratories_scopes_api }}?lang={{ LANGUAGE_CODE }}', loader_source_infrastructures: '{{ infrastructures_api }}?lang={{ LANGUAGE_CODE }}', selected_area: this.getItemFromSession("{{ id }}", 'area'), selected_department: this.getItemFromSession("{{ id }}", 'department'), selected_search: this.getItemFromSession("{{ id }}", 'search'), selected_erc1: (this.getItemFromSession("{{ id }}", 'erc1') || "").split(","), selected_scope: this.getItemFromSession("{{ id }}", 'scope'), selected_infrastructure: this.getItemFromSession("{{ id }}", 'infrastructure') {% endblock extra_data %} {% block extra_mounted %} {% block call_laboratory_on_mounted %} this.callAreas(); this.callDepartments(); this.callERC1List(); this.callScopes(); this.callInfrastructures(); {% endblock call_laboratory_on_mounted %} this.parameters = {{ id }}_encodeQueryData(this.getItemsFromSession("{{ id }}")) {% endblock extra_mounted %} {% block extra_methods %} {% block laboratory_call_method %} callAreas() { axios .get(this.loader_source_areas) .then(response => { this.areas = response.data.results; this.is_loading_areas = false }) }, callScopes() { axios .get(this.loader_source_scopes) .then(response => { this.scopes = response.data.results; this.is_loading_scopes = false }) }, callInfrastructures() { axios .get(this.loader_source_infrastructures) .then(response => { this.infrastructures = response.data.results; this.is_loading_infrastructures = false }) }, callDepartments() { axios .get(this.loader_source_departments) .then(response => { this.departments = response.data.results; this.is_loading_departments = false }) }, callERC1List(params) { axios .get(this.loader_source_erc1) .then(response => { this.erc1_list = response.data.results; this.is_loading_erc1 = false }) }, {% endblock laboratory_call_method %} {% endblock extra_methods %}