{% extends "layouts/organization.html.twig" %}
{% block bodyClass %}{% endblock %}
{% block siteHeader %}
{% include 'organisms/organization-header.html.twig' %}
{% endblock %}
{% block pageHeader %}
<usc-page-header>
<template v-slot:breadcrumb>
<ol class="at-breadcrumb">
<li class="breadcrumb-item"><a href="{{ path('center-schedule') }}">Horarios</a></li>
<li class="breadcrumb-item"><a href="{{ path('center-schedule-subject-list') }}">Materias</a></li>
</ol>
</template>
<h1 class="at-title">Nome da materia</h1>
<template v-slot:filters>
<div class="ml-filters-group">
<usc-dropdown-filter
label="Curso"
target-container="#filtered-container-1"
target-items=".school-year"
:initial-value="{value: 'Curso 2019-2020'}"
>
<template v-slot:default="slotProps">
<li>
<a href="">Curso 2019-2020</a>
</li>
<li>
<a href="">Curso 2018-2019</a>
</li>
<li>
<a href="">Curso 2017-2018</a>
</li>
<li>
<a href="">Curso 2016-2017</a>
</li>
<li>
<a href="">Curso 2015-2016</a>
</li>
<li>
<a href="">Curso 2014-2015</a>
</li>
<li>
<a href="">Curso 2013-2014</a>
</li>
<li>
<a href="">Curso 2012-2013</a>
</li>
</template>
</usc-dropdown-filter>
<usc-dropdown-filter
label="Cuadrimestre"
:initial-value="{value: 'Primeiro cuadrimestre'}"
id="filtro-cuadrimestre"
>
<template v-slot:default="slotProps">
<li>
<button type="button" @click="slotProps.filter" data-value="primeiro-cuadrimestre">Primeiro cuadrimestre</button>
</li>
<li>
<button type="button" @click="slotProps.filter" data-value="segundo-cuadrimestre">Segundo cuadrimestre</button>
</li>
</template>
</usc-dropdown-filter>
<usc-dropdown-filter
label="Semana"
:initial-value="{value: '1ª semana (23out/30out)'}"
parent="#filtro-cuadrimestre"
id="filtro-semana"
>
<template v-slot:default="slotProps">
<li data-parent="primeiro-cuadrimestre">
<button type="button" @click="slotProps.filter" data-value="semana-44">1ª semana (26out/1nov)</button>
</li>
<li data-parent="primeiro-cuadrimestre">
<button type="button" @click="slotProps.filter" data-value="semana-45">2ª semana (2nov/8nov)</button>
</li>
<li class="is-hidden" data-parent="segundo-cuadrimestre">
<button type="button" @click="slotProps.filter" data-value="semana-5">1ª semana (1feb/7feb)</button>
</li>
<li class="is-hidden" data-parent="segundo-cuadrimestre">
<button type="button" @click="slotProps.filter" data-value="semana-6">2ª semana (8feb/14feb)</button>
</li>
</template>
</usc-dropdown-filter>
<usc-dropdown-filter
label="Tipo"
target-container="#filtered-container-selector"
target-items=".target-items-selector"
id="filtro-tipo"
>
<template v-slot:default="slotProps">
<li>
<button type="button" @click="slotProps.reset">Todos os tipos</button>
</li>
<li>
<button type="button" @click="slotProps.filter" data-value="expositiva">Expositivas</button>
</li>
<li>
<button type="button" @click="slotProps.filter" data-value="seminario">Seminarios</button>
</li>
<li>
<button type="button" @click="slotProps.filter" data-value="laboratorio">Laboratorio
</button>
</li>
<li>
<button type="button" @click="slotProps.filter" data-value="titorias">Titorías</button>
</li>
</template>
</usc-dropdown-filter>
<usc-dropdown-filter
label="Grupo"
target-container="#filtered-container-selector"
target-items=".target-items-selector"
parent="#filtro-tipo"
>
<template v-slot:default="slotProps">
<li>
<button type="button" @click="slotProps.reset">Todos os grupos</button>
</li>
<li data-parent="expositiva">
<button type="button" @click="slotProps.filter" data-value="cle_1">Grupo /CLE_1</button>
</li>
<li data-parent="expositiva">
<button type="button" @click="slotProps.filter" data-value="cle_2">Grupo /CLE_2</button>
</li>
<li data-parent="expositiva">
<button type="button" @click="slotProps.filter" data-value="cle_3">Grupo /CLE_3</button>
</li>
<li data-parent="seminario">
<button type="button" @click="slotProps.filter" data-value="clis_1">Grupo /CLIS_1</button>
</li>
<li data-parent="seminario">
<button type="button" @click="slotProps.filter" data-value="clis_2">Grupo /CLIS_2</button>
</li>
<li data-parent="laboratorio">
<button type="button" @click="slotProps.filter" data-value="clil_1">Grupo /CLIL_1</button>
</li>
<li data-parent="laboratorio">
<button type="button" @click="slotProps.filter" data-value="clil_2">Grupo /CLIL_2</button>
</li>
</template>
</usc-dropdown-filter>
</div>
</template>
</usc-page-header>
{% endblock %}
{% block pageContent %}
<section class="org-tier is-minimal">
<div class="tier-content" id="filtered-container-selector">
<div class="row">
<div class="col-md-6" id="weeks-container">
<table
class="ml-table is-primary"
v-table-hide-headers="[{header: '.luns-header', items: '.luns-content'}, {header: '.martes-header', items: '.martes-content'}, {header: '.mercores-header', items: '.mercores-content'}]"
>
<caption>1º Cuadrimestre - 1ª semana (23out/30out)</caption>
<tbody>
<tr class="luns-header">
<th colspan="3">Luns</th>
</tr>
<tr class="target-items-selector expositiva cle_1 luns-content">
<td>00:00-00:00</td>
<td>Grupo CLE_1</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector expositiva cle_2 luns-content">
<td>00:00-00:00</td>
<td>Grupo CLE_2</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector expositiva cle_3 luns-content">
<td>00:00-00:00</td>
<td>Grupo CLE_3</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector seminario clis_2 luns-content">
<td>00:00-00:00</td>
<td>Grupo CLIS_2</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector seminario clis_1 luns-content">
<td>00:00-00:00</td>
<td>Grupo CLIS_1</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector laboratorio clil_2 luns-content">
<td>00:00-00:00</td>
<td>Grupo CLIL_2</td>
<td>Nome da aula</td>
</tr>
<tr class="martes-header">
<th colspan="3">Martes</th>
</tr>
<tr class="target-items-selector seminario clis_1 martes-content">
<td>00:00-00:00</td>
<td>Grupo CLIS_1</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector seminario clis_2 martes-content">
<td>00:00-00:00</td>
<td>Grupo CLIS_2</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector seminario clis_1 martes-content">
<td>00:00-00:00</td>
<td>Grupo CLIS1</td>
<td>Nome da aula</td>
</tr>
<tr class="mercores-header">
<th colspan="3">Mércores</th>
</tr>
<tr class="target-items-selector seminario clis_2 mercores-content">
<td>00:00-00:00</td>
<td>Grupo CLIS_2</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector seminario clis_2 mercores-content">
<td>00:00-00:00</td>
<td>Grupo CLIS_2</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector seminario clis_1 mercores-content">
<td>00:00-00:00</td>
<td>Grupo CLIS_1</td>
<td>Nome da aula</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6">
<table class="ml-table is-primary">
<caption>Exames</caption>
<tbody>
<tr class="target-items-selector seminario clis_1">
<td>Data+Hora</td>
<td>Grupo CLIS_1</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector seminario clis_2">
<td>Data+Hora</td>
<td>Grupo CLIS_2</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector laboratorio clil_1">
<td>Data+Hora</td>
<td>Grupo CLIL_1</td>
<td>Nome da aula</td>
</tr>
<tr class="target-items-selector laboratorio clil_2">
<td>Data+Hora</td>
<td>Grupo CLIL_2</td>
<td>Nome da aula</td>
</tr>
</tbody>
</table>
<table class="ml-table is-primary">
<caption>Profesorado</caption>
<tbody>
<tr>
<td><a href="">Nome Apelido Apelido</a></td>
<td>Coordinador/a</td>
</tr>
<tr>
<td colspan="2"><a href="">Nome Apelido Apelido</a></td>
</tr>
<tr>
<td colspan="2"><a href="">Nome Apelido Apelido</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
{% endblock %}
{% block siteFooter %}
{% include 'organisms/site-footer.html.twig' %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script type="text/javascript">
$(function () {
window.uscUi.eventBus.$on('dropdown-filter-changed', function (filterId, value) {
if (filterId === 'filtro-semana' && value) {
$.get('{{ path('center-schedule-subject_ajax') }}', function (data) {
$('#weeks-container').html(data);
window.uscUi.render('#weeks-container');
window.uscUi.eventBus.$emit('dropdown-reload-items');
});
}
});
});
</script>
{% endblock %}