{% extends 'base.html.twig' %}
{% block stylesheets %}
{# jquery #}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
{# OLMap #}
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.14.1/css/ol.css" type="text/css">-->
<script src="https://cdn.jsdelivr.net/npm/ol@7.4.0/dist/ol.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v7.1.0/ol.css" type="text/css">
{# jquery UI #}
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.3/jquery-ui.min.js"></script>
{# D3 #}
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
{# TomSelect #}
<link href="https://cdn.jsdelivr.net/npm/tom-select@2.2.2/dist/css/tom-select.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/tom-select@2.2.2/dist/js/tom-select.complete.min.js"></script>
{# DataTables #}
<link href="https://cdn.datatables.net/v/dt/dt-1.13.5/datatables.min.css" rel="stylesheet">
<script src="https://cdn.datatables.net/v/dt/dt-1.13.5/datatables.min.js"></script>
{# Maps #}
<script src="{{ asset('build/js/olmap.js') }}"></script>
{% if app.request.attributes.get('_route') == 'explore_analytic' %}
<script src="{{ asset('build/js/map_explore.js') }}"></script>
{% else %}
<script src="{{ asset('build/js/map.js') }}"></script>
{% endif %}
{# TURF JS #}
{% if app.request.attributes.get('_route') != 'explore_analytic' %}
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@7/turf.min.js"></script>
{% endif %}
{# <script src="{{ asset('build/js/map_img.js') }}"></script> #}
{# <script src="{{ asset('build/js/map_tile.js') }}"></script> #}
{# Stats #}
<script src="{{ asset('build/js/stats.js') }}"></script>
{# Fontawesome #}
{# <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> #}
{# Google Fonts Type #}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
{# Google Fonts Iconography #}
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
{% endblock %}
{% block body %}
{% if app.request.attributes.get('_route') != 'home' and app.request.attributes.get('_route') != 'technology' and app.request.attributes.get('_route') != 'interfaces' and app.request.attributes.get('_route') != 'team' and app.request.attributes.get('_route') != 'about' and app.request.attributes.get('_route') != 'applications' and app.request.attributes.get('_route') != 'view-application' %}
<div id="new_header">
{% if app.request.attributes.get('_route') == 'app_project_index' or app.request.attributes.get('_route') == 'app_project_detail' or app.request.attributes.get('_route') == 'app_project_home'%}
<a href="{{ path('home') }}" class="m-3 ms-0 hover"><img src="{{ asset('img/icon_planifica.png') }}" height="24px" alt="logo Retabit"/></a>
{% elseif app.request.attributes.get('_route') == 'app_analytic' or app.request.attributes.get('_route') == 'explore_analytic' or app.request.attributes.get('_route') == 'app_analytic_home' %}
<a href="{{ path('home') }}" class="m-3 ms-0 hover"><img src="{{ asset('img/icon_explora.png') }}" height="24px" alt="logo Retabit"/></a>
{% else %}
<a href="{{ path('home') }}" class="m-3 ms-0 hover"><img src="{{ asset('img/icon_explora.png') }}" height="24px" alt="logo Retabit"/></a>
{% endif %}
<ul id="left_bar_list">
<li id="new_header_map" class="mb-2"></li>
<li id="new_header_table" class="mb-2"></li>
<li id="new_header_card" class="mb-2"></li>
<li id="new_header_graf" class="mb-2"></li>
</ul>
<div id="log_div" class="dropup">
{% if is_granted ('IS_AUTHENTICATED_FULLY') %}
{% if is_granted ('ROLE_SUPER_ADMIN') %}
<a class="btn btn-primary btn-round" role="button" href="{{ path('dashboard') }}">
<span style=" ">D</span>
</a>
{% endif %}
<button type="button" class="btn btn-primary btn-round dropdown-toggle btn-dashboard" data-bs-toggle="dropdown" aria-expanded="false" style="">
<span class="material-symbols-outlined" style="font-size: inherit;" aria-hidden="true">person</span>
</button>
<ul class="dropdown-menu" style="z-index: 100; padding: 24px 24px;">
<!-- Dropdown menu links -->
<div class="mb-3">
<p>{{ app.user.name}}</p>
<small>{{ app.user.email}}</small>
</div>
<div class="d-flex justify-content-between">
<a href="{{ path('profile') }}"><span class="material-symbols-outlined" aria-hidden="true">app_registration</span> </a>
<a href="{{ path('app_logout') }}"><span class="material-symbols-outlined" aria-hidden="true">logout</span></a>
</div>
</ul>
{% elseif app.request.attributes.get('_route') == 'app_project_index' or app.request.attributes.get('_route') == 'app_project_detail' or app.request.attributes.get('_route') == 'app_project_home' %}
<a href="{{ path('app_login') }}" class="hover">Login</a>
{% endif %}
</div>
</div>
{% endif %}
{# <div class="container-fluid" id="header">
<div class="d-flex align-items-center justify-content-between">
<a href="{{ path('home') }}" class="m-3 ms-0 hover"><img src="{{ asset('img/retabit_logo.svg') }}" height="24px" alt="logo Retabit"/></a>
<div class="d-inline-block">
<a href="{{ path('home') }}" class="hover">Inicio</a>
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<a href="{{ path('app_logout') }}">Logout</a>
{% endif %}
</div>
</div>
</div> #}
{% if app.request.attributes.get('_route') == 'app_project_detail' or app.request.attributes.get('_route') == 'explore_analytic' %}
{% set container_type = 'container-fluid' %}
{% else %}
{% set container_type = 'container' %}
{% endif %}
{% if app.request.attributes.get('_route') == 'app_project' or app.request.attributes.get('_route') == 'app_project_detail' %}
{% set project = project[0] %}
{% endif %}
<div id="big_container" style="{% if app.request.attributes.get('_route') == 'home' or app.request.attributes.get('_route') == 'technology' or app.request.attributes.get('_route') == 'interfaces' or app.request.attributes.get('_route') == 'applications' or app.request.attributes.get('_route') == 'team' or app.request.attributes.get('_route') == 'about' or app.request.attributes.get('_route') == 'view-application' %}padding-left: 0;{% endif %}">
<div class="d-flex align-items-center justify-content-between border_bottom" id="header_in_top" style="height: 80px; {% if app.request.attributes.get('_route') == 'home' or app.request.attributes.get('_route') == 'technology' or app.request.attributes.get('_route') == 'interfaces' or app.request.attributes.get('_route') == 'applications' or app.request.attributes.get('_route') == 'team' or app.request.attributes.get('_route') == 'about' or app.request.attributes.get('_route') == 'view-application'%}background: #171C33;{% endif %}">
{% if app.request.attributes.get('_route') == 'app_project_index' or app.request.attributes.get('_route') == 'app_project_detail' or app.request.attributes.get('_route') == 'app_project_home'%}
<div style="display:flex; align-items:center;">
<a href="{{ path('app_project_index') }}" class="m-0 hover d-inline-block float-start" style="font-weight:100; color: #212529; letter-spacing: 1px; font-size: 30px; text-decoration:none;"><img src="{{ asset('img/retabit_explora 1.png') }}" class="ms-3" height="29px" alt="logo Retabit" style="display: inline;"/>{% trans %}Planifica{% endtrans %}</a>
{% if app.request.attributes.get('_route') == 'app_project_detail' or app.request.attributes.get('_route') == 'app_project_home' %}
<h2 class="float-start me-3 mb-0"><span class="ms-3 me-3">|</span><a href="{{ path('app_project_home',{'mun': mun}) }}" class="hover text-decoration-none hover_link">{{ municipioname.adminunitname|capitalize }}</a></h2>
{% endif %}
</div>
{% if app.request.attributes.get('_route') == 'app_project_detail' %}
{{include ('components/statsbar_project.html.twig')}}
{% endif %}
{% elseif app.request.attributes.get('_route') == 'app_analytic' or app.request.attributes.get('_route') == 'explore_analytic' or app.request.attributes.get('_route') == 'app_analytic_home' %}
<div style="display:flex; align-items:center;">
<a href="{{ path('app_analytic_home') }}" class="m-0 hover d-inline-block float-start" style="font-weight:100; color: #212529; letter-spacing: 1px; font-size: 30px; text-decoration:none;"><img src="{{ asset('img/retabit_explora 1.png') }}" class="ms-3" height="29px" alt="logo Retabit" style="display: inline;"/>{% trans %}Analiza{% endtrans %}</a>
{% if app.request.attributes.get('_route') == 'app_analytic' or app.request.attributes.get('_route') == 'explore_analytic' %}
<h2 class="float-start mb-0"><span class="ms-3 me-3">|</span><a href="{{ path('app_analytic',{'mun': mun}) }}" class="hover text-decoration-none hover_link">{{ municipioname.adminunitname|capitalize }}</a></h2>
{% endif %}
</div>
{% if app.request.attributes.get('_route') == 'explore_analytic' %}
{{include ('components/statsbar_analytic.html.twig')}}
{% endif %}
{% elseif app.request.attributes.get('_route') == 'dashboard' or app.request.attributes.get('_route') == 'users' or app.request.attributes.get('_route') == 'detail-user' or app.request.attributes.get('_route') == 'profile'%}
<div style="display:flex; align-items:center;">
<a href="{{ path('dashboard') }}" class="m-0 hover d-inline-block float-start" style="font-weight:100; color: #212529; letter-spacing: 1px; font-size: 30px; text-decoration:none;"><img src="{{ asset('img/retabit_explora 1.png') }}" class="ms-3" height="29px" alt="logo Retabit" style="display: inline;"/>{% trans %}Dashboard{% endtrans %}</a>
</div>
{% elseif app.request.attributes.get('_route') == 'app_login' or app.request.attributes.get('_route') == 'register' or app.request.attributes.get('_route') == 'app_forgot_password_request' or app.request.attributes.get('_route') == 'app_reset_password' or app.request.attributes.get('_route') == 'app_check_email' %}
<div style="display:flex; align-items:center;">
<a href="{{ path('home') }}" class="m-0 hover d-inline-block float-start" style="font-weight:100; color: #212529; letter-spacing: 1px; font-size: 30px; text-decoration:none;"><img src="{{ asset('img/retabit_explora 1.png') }}" class="ms-3" height="29px" alt="logo Retabit" style="display: inline;"/>
{% if app.request.attributes.get('_route') == 'app_login' %}
{% trans %}Login{% endtrans %}
{% elseif app.request.attributes.get('_route') == 'register' %}
{% trans %}Register{% endtrans %}
{% elseif app.request.attributes.get('_route') == 'app_forgot_password_request' %}
{% trans %}Reset Password{% endtrans %}
{% elseif app.request.attributes.get('_route') == 'app_forgot_password_request' %}
{% trans %}Reset your password{% endtrans %}
{% elseif app.request.attributes.get('_route') == 'app_check_email' %}
{% trans %}Reset your password{% endtrans %}
{% endif %}
</a>
</div>
{% else %}
<div class="container w-100 h-100 overflow-hidden">
<div class="d-flex w-100 h-100 align-items-center justify-content-between">
<div class="d-flex align-items-center">
<!-- <a href="{{ path('home') }}" class="m-3 hover"><img src="{{ asset('img/icon_explora.png') }}" height="24px" alt="logo Retabit"/></a>-->
<a href="{{ path('home') }}" class="mt-1 hover d-inline-block"><img src="{{ asset('img/logo-menu-white.png') }}" class="" height="29px" alt="logo Retabit"/></a>
</div>
<div class="d-flex justify-content-between align-items-center ">
<div class="me-5">
<a class="mx-3 item-navHeader {% if app.request.attributes.get('_route') == 'technology' %}active{% endif %}" href="{{ path('technology') }}">{% trans %}TECHNOLOGY{% endtrans %}</a>
<a class="mx-3 item-navHeader {% if app.request.attributes.get('_route') == 'interfaces' %}active{% endif %}" href="{{ path('interfaces') }}">{% trans %}INTERFACES{% endtrans %}</a>
<a class="mx-3 item-navHeader {% if app.request.attributes.get('_route') == 'applications' or app.request.attributes.get('_route') == 'view-application'%}active{% endif %}" href="{{ path('applications') }}">{% trans %}APPLICATIONS{% endtrans %}</a>
<a class="mx-3 item-navHeader {% if app.request.attributes.get('_route') == 'team' %}active{% endif %}" href="{{ path('team') }}">{% trans %}TEAM{% endtrans %}</a>
<a class="mx-3 item-navHeader {% if app.request.attributes.get('_route') == 'about' %}active{% endif %}" href="{{ path('about') }}">{% trans %}ABOUT{% endtrans %}</a>
</div>
<div class="me-3">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
{{ app.request.get('_locale')|upper }}
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}">EN</a></li>
<li><a class="dropdown-item" href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'es'})) }}">ES</a></li>
<li><a class="dropdown-item" href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ca'})) }}">CA</a></li>
</ul>
</div>
</div>
</div>
</div>
{% endif %}
</div>
<div id="header_bar" class="col-12 d-none">
<div class="container-fluid">
<div class="row align-items-center justify-content-center">
<div class="col-12">
<p class="mt-1 mb-1">
{% if app.request.attributes.get('_route') == 'home' %}
<a href="{{ path('home') }}" class="hover" > Inicio</a>
{% elseif app.request.attributes.get('_route') == 'app_analytic_home' %}
<a href="{{ path('home') }}" class="hover" > Inicio</a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_analytic_home') }}" class="hover" > Analiza </a>
{% elseif app.request.attributes.get('_route') == 'app_analytic' %}
<a href="{{ path('home') }}" class="hover" > Inicio</a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_analytic_home') }}" class="hover" > Analiza </a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_analytic', {'mun': mun }) }}" class="hover" > {{ municipioname.adminunitname|capitalize }}</a>
{% elseif app.request.attributes.get('_route') == 'explore_analytic' %}
<a href="{{ path('home') }}" class="hover" > Inicio</a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_analytic_home') }}" class="hover" > Analiza </a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_analytic', {'mun': mun }) }}" class="hover" > {{ municipioname.adminunitname|capitalize }}</a>
<span class="material-symbols-outlined">chevron_right</span>
{% for item in analytic_data %}
{% if item.slug == slug %}
{% set name_analytic = item.name %}
<a href="{{ path('app_analytic', {'mun': mun, 'slug': slug }) }}" class="hover" > {{ name_analytic|capitalize }}</a>
{% endif %}
{% endfor %}
{% elseif app.request.attributes.get('_route') == 'app_project_index' %}
<a href="{{ path('home') }}" class="hover" > Inicio</a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_project_index') }}" class="hover" > Planifica </a>
{% elseif app.request.attributes.get('_route') == 'app_project_home' %}
<a href="{{ path('home') }}" class="hover" > Inicio</a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_project_index') }}" class="hover" > Planifica </a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_project_home', {'mun': mun }) }}" class="hover" > {{ municipioname.adminunitname|capitalize }}</a>
{# {{dump(project)}} #}
{% elseif app.request.attributes.get('_route') == 'app_project_detail' %}
<a href="{{ path('home') }}" class="hover" > Inicio</a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_project_index') }}" class="hover" > Planifica </a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_project_home', {'mun': mun }) }}" class="hover" > {{ municipioname.adminunitname|capitalize }}</a>
<span class="material-symbols-outlined">chevron_right</span>
<a href="{{ path('app_project_detail', {'mun': mun, 'id_project': project.id }) }}" class="hover" > {{ project.name }}</a>
{% endif %}
</p>
</div>
</div>
</div>
</div>
{% block content %}{% endblock %}
</div>
<footer>
<div class="container">
<div class="row py-5">
<div class="col">
<div>
<img src="{{ asset('custom/logo_retabit.png') }}" alt="logo"/>
<h4 class="pt-4 pb-4">Multi-dimensional data driven services to foster residential building retrofitting programmes in the implementation of SECAPs</h4>
</div>
<div class="ministerio">
<img src="https://retabit.es/wp-content/uploads/2022/03/logo-ministerio.png" alt="logo ministerio">
<p>
Proyecto PID2020-115936RB-C21 <br>
Financiado por el Ministerio de Ciencia e Innovación
</p>
</div>
</div>
<div class="col offset-md-2">
<div class="row">
<div class="col">
<p>Legal information</p>
<ul>
<li><a href="https://retabit.es/privacy-policy">Privacy policy</a></li>
<li><a href="https://retabit.es/terms-and-conditions">Terms & conditions</a></li>
<li><a href="https://retabit.es/cookie-policy">Cookies policy</a></li>
</ul>
</div>
<div class="col">
<p>Follow us</p>
<ul>
<li><a href="https://twitter.com/retabit_es">Twitter</a></li>
<li><a href="https://www.linkedin.com/company/re-dwell">LinkedIn</a></li>
</ul>
</div>
</div>
<div class="row pt-5 align-items-center">
<a class="d-inline w-auto" href="https://www.salleurl.edu"><img class="col-6 me-3" style="width: auto;" src="{{ asset('img/footer_salle.png') }}"/></a>
<a class="d-inline w-auto" href="https://www.irec.cat/"><img class="col-6" style="width: auto;" src="{{ asset('img/footer_irec.png') }}"/></a>
<p class="mt-5">© Design and programming by <a href="https://www.salleurl.edu/en/research/groups-and-institutes/human-environment-research-group/architecture-representation-comp">ARC Engineering and Architecture La Salle</a></p>
</div>
</div>
</div>
</div>
</footer>
{% endblock %}