templates/templates/pages/center/center-schedule-subject.html.twig line 1

Open in your IDE?
  1. {% extends "layouts/organization.html.twig" %}
  2. {% block bodyClass %}{% endblock %}
  3. {% block siteHeader %}
  4.     {% include 'organisms/organization-header.html.twig' %}
  5. {% endblock %}
  6. {% block pageHeader %}
  7.     <usc-page-header>
  8.         <template v-slot:breadcrumb>
  9.             <ol class="at-breadcrumb">
  10.                 <li class="breadcrumb-item"><a href="{{ path('center-schedule') }}">Horarios</a></li>
  11.                 <li class="breadcrumb-item"><a href="{{ path('center-schedule-subject-list') }}">Materias</a></li>
  12.             </ol>
  13.         </template>
  14.         <h1 class="at-title">Nome da materia</h1>
  15.         <template v-slot:filters>
  16.             <div class="ml-filters-group">
  17.                 <usc-dropdown-filter
  18.                         label="Curso"
  19.                         target-container="#filtered-container-1"
  20.                         target-items=".school-year"
  21.                         :initial-value="{value: 'Curso 2019-2020'}"
  22.                 >
  23.                     <template v-slot:default="slotProps">
  24.                         <li>
  25.                             <a href="">Curso 2019-2020</a>
  26.                         </li>
  27.                         <li>
  28.                             <a href="">Curso 2018-2019</a>
  29.                         </li>
  30.                         <li>
  31.                             <a href="">Curso 2017-2018</a>
  32.                         </li>
  33.                         <li>
  34.                             <a href="">Curso 2016-2017</a>
  35.                         </li>
  36.                         <li>
  37.                             <a href="">Curso 2015-2016</a>
  38.                         </li>
  39.                         <li>
  40.                             <a href="">Curso 2014-2015</a>
  41.                         </li>
  42.                         <li>
  43.                             <a href="">Curso 2013-2014</a>
  44.                         </li>
  45.                         <li>
  46.                             <a href="">Curso 2012-2013</a>
  47.                         </li>
  48.                     </template>
  49.                 </usc-dropdown-filter>
  50.                 <usc-dropdown-filter
  51.                         label="Cuadrimestre"
  52.                         :initial-value="{value: 'Primeiro cuadrimestre'}"
  53.                         id="filtro-cuadrimestre"
  54.                 >
  55.                     <template v-slot:default="slotProps">
  56.                         <li>
  57.                             <button type="button" @click="slotProps.filter" data-value="primeiro-cuadrimestre">Primeiro cuadrimestre</button>
  58.                         </li>
  59.                         <li>
  60.                             <button type="button" @click="slotProps.filter" data-value="segundo-cuadrimestre">Segundo cuadrimestre</button>
  61.                         </li>
  62.                     </template>
  63.                 </usc-dropdown-filter>
  64.                 <usc-dropdown-filter
  65.                         label="Semana"
  66.                         :initial-value="{value: '1ª semana (23out/30out)'}"
  67.                         parent="#filtro-cuadrimestre"
  68.                         id="filtro-semana"
  69.                 >
  70.                     <template v-slot:default="slotProps">
  71.                         <li data-parent="primeiro-cuadrimestre">
  72.                             <button type="button" @click="slotProps.filter" data-value="semana-44">1ª semana (26out/1nov)</button>
  73.                         </li>
  74.                         <li data-parent="primeiro-cuadrimestre">
  75.                             <button type="button" @click="slotProps.filter" data-value="semana-45">2ª semana (2nov/8nov)</button>
  76.                         </li>
  77.                         <li class="is-hidden" data-parent="segundo-cuadrimestre">
  78.                             <button type="button" @click="slotProps.filter" data-value="semana-5">1ª semana (1feb/7feb)</button>
  79.                         </li>
  80.                         <li class="is-hidden" data-parent="segundo-cuadrimestre">
  81.                             <button type="button" @click="slotProps.filter" data-value="semana-6">2ª semana (8feb/14feb)</button>
  82.                         </li>
  83.                     </template>
  84.                 </usc-dropdown-filter>
  85.                 <usc-dropdown-filter
  86.                         label="Tipo"
  87.                         target-container="#filtered-container-selector"
  88.                         target-items=".target-items-selector"
  89.                         id="filtro-tipo"
  90.                 >
  91.                     <template v-slot:default="slotProps">
  92.                         <li>
  93.                             <button type="button" @click="slotProps.reset">Todos os tipos</button>
  94.                         </li>
  95.                         <li>
  96.                             <button type="button" @click="slotProps.filter" data-value="expositiva">Expositivas</button>
  97.                         </li>
  98.                         <li>
  99.                             <button type="button" @click="slotProps.filter" data-value="seminario">Seminarios</button>
  100.                         </li>
  101.                         <li>
  102.                             <button type="button" @click="slotProps.filter" data-value="laboratorio">Laboratorio
  103.                             </button>
  104.                         </li>
  105.                         <li>
  106.                             <button type="button" @click="slotProps.filter" data-value="titorias">Titorías</button>
  107.                         </li>
  108.                     </template>
  109.                 </usc-dropdown-filter>
  110.                 <usc-dropdown-filter
  111.                         label="Grupo"
  112.                         target-container="#filtered-container-selector"
  113.                         target-items=".target-items-selector"
  114.                         parent="#filtro-tipo"
  115.                 >
  116.                     <template v-slot:default="slotProps">
  117.                         <li>
  118.                             <button type="button" @click="slotProps.reset">Todos os grupos</button>
  119.                         </li>
  120.                         <li data-parent="expositiva">
  121.                             <button type="button" @click="slotProps.filter" data-value="cle_1">Grupo /CLE_1</button>
  122.                         </li>
  123.                         <li data-parent="expositiva">
  124.                             <button type="button" @click="slotProps.filter" data-value="cle_2">Grupo /CLE_2</button>
  125.                         </li>
  126.                         <li data-parent="expositiva">
  127.                             <button type="button" @click="slotProps.filter" data-value="cle_3">Grupo /CLE_3</button>
  128.                         </li>
  129.                         <li data-parent="seminario">
  130.                             <button type="button" @click="slotProps.filter" data-value="clis_1">Grupo /CLIS_1</button>
  131.                         </li>
  132.                         <li data-parent="seminario">
  133.                             <button type="button" @click="slotProps.filter" data-value="clis_2">Grupo /CLIS_2</button>
  134.                         </li>
  135.                         <li data-parent="laboratorio">
  136.                             <button type="button" @click="slotProps.filter" data-value="clil_1">Grupo /CLIL_1</button>
  137.                         </li>
  138.                         <li data-parent="laboratorio">
  139.                             <button type="button" @click="slotProps.filter" data-value="clil_2">Grupo /CLIL_2</button>
  140.                         </li>
  141.                     </template>
  142.                 </usc-dropdown-filter>
  143.             </div>
  144.         </template>
  145.     </usc-page-header>
  146. {% endblock %}
  147. {% block pageContent %}
  148.     <section class="org-tier is-minimal">
  149.         <div class="tier-content" id="filtered-container-selector">
  150.             <div class="row">
  151.                 <div class="col-md-6" id="weeks-container">
  152.                     <table
  153.                             class="ml-table is-primary"
  154.                             v-table-hide-headers="[{header: '.luns-header', items: '.luns-content'}, {header: '.martes-header', items: '.martes-content'}, {header: '.mercores-header', items: '.mercores-content'}]"
  155.                     >
  156.                         <caption>1º Cuadrimestre - 1ª semana (23out/30out)</caption>
  157.                         <tbody>
  158.                         <tr class="luns-header">
  159.                             <th colspan="3">Luns</th>
  160.                         </tr>
  161.                         <tr class="target-items-selector expositiva cle_1 luns-content">
  162.                             <td>00:00-00:00</td>
  163.                             <td>Grupo CLE_1</td>
  164.                             <td>Nome da aula</td>
  165.                         </tr>
  166.                         <tr class="target-items-selector expositiva cle_2 luns-content">
  167.                             <td>00:00-00:00</td>
  168.                             <td>Grupo CLE_2</td>
  169.                             <td>Nome da aula</td>
  170.                         </tr>
  171.                         <tr class="target-items-selector expositiva cle_3 luns-content">
  172.                             <td>00:00-00:00</td>
  173.                             <td>Grupo CLE_3</td>
  174.                             <td>Nome da aula</td>
  175.                         </tr>
  176.                         <tr class="target-items-selector seminario clis_2 luns-content">
  177.                             <td>00:00-00:00</td>
  178.                             <td>Grupo CLIS_2</td>
  179.                             <td>Nome da aula</td>
  180.                         </tr>
  181.                         <tr class="target-items-selector seminario clis_1 luns-content">
  182.                             <td>00:00-00:00</td>
  183.                             <td>Grupo CLIS_1</td>
  184.                             <td>Nome da aula</td>
  185.                         </tr>
  186.                         <tr class="target-items-selector laboratorio clil_2 luns-content">
  187.                             <td>00:00-00:00</td>
  188.                             <td>Grupo CLIL_2</td>
  189.                             <td>Nome da aula</td>
  190.                         </tr>
  191.                         <tr class="martes-header">
  192.                             <th colspan="3">Martes</th>
  193.                         </tr>
  194.                         <tr class="target-items-selector seminario clis_1 martes-content">
  195.                             <td>00:00-00:00</td>
  196.                             <td>Grupo CLIS_1</td>
  197.                             <td>Nome da aula</td>
  198.                         </tr>
  199.                         <tr class="target-items-selector seminario clis_2 martes-content">
  200.                             <td>00:00-00:00</td>
  201.                             <td>Grupo CLIS_2</td>
  202.                             <td>Nome da aula</td>
  203.                         </tr>
  204.                         <tr class="target-items-selector seminario clis_1 martes-content">
  205.                             <td>00:00-00:00</td>
  206.                             <td>Grupo CLIS1</td>
  207.                             <td>Nome da aula</td>
  208.                         </tr>
  209.                         <tr class="mercores-header">
  210.                             <th colspan="3">Mércores</th>
  211.                         </tr>
  212.                         <tr class="target-items-selector seminario clis_2 mercores-content">
  213.                             <td>00:00-00:00</td>
  214.                             <td>Grupo CLIS_2</td>
  215.                             <td>Nome da aula</td>
  216.                         </tr>
  217.                         <tr class="target-items-selector seminario clis_2 mercores-content">
  218.                             <td>00:00-00:00</td>
  219.                             <td>Grupo CLIS_2</td>
  220.                             <td>Nome da aula</td>
  221.                         </tr>
  222.                         <tr class="target-items-selector seminario clis_1 mercores-content">
  223.                             <td>00:00-00:00</td>
  224.                             <td>Grupo CLIS_1</td>
  225.                             <td>Nome da aula</td>
  226.                         </tr>
  227.                         </tbody>
  228.                     </table>
  229.                 </div>
  230.                 <div class="col-md-6">
  231.                     <table class="ml-table is-primary">
  232.                         <caption>Exames</caption>
  233.                         <tbody>
  234.                         <tr class="target-items-selector seminario clis_1">
  235.                             <td>Data+Hora</td>
  236.                             <td>Grupo CLIS_1</td>
  237.                             <td>Nome da aula</td>
  238.                         </tr>
  239.                         <tr class="target-items-selector seminario clis_2">
  240.                             <td>Data+Hora</td>
  241.                             <td>Grupo CLIS_2</td>
  242.                             <td>Nome da aula</td>
  243.                         </tr>
  244.                         <tr class="target-items-selector laboratorio clil_1">
  245.                             <td>Data+Hora</td>
  246.                             <td>Grupo CLIL_1</td>
  247.                             <td>Nome da aula</td>
  248.                         </tr>
  249.                         <tr class="target-items-selector laboratorio clil_2">
  250.                             <td>Data+Hora</td>
  251.                             <td>Grupo CLIL_2</td>
  252.                             <td>Nome da aula</td>
  253.                         </tr>
  254.                         </tbody>
  255.                     </table>
  256.                     <table class="ml-table is-primary">
  257.                         <caption>Profesorado</caption>
  258.                         <tbody>
  259.                         <tr>
  260.                             <td><a href="">Nome Apelido Apelido</a></td>
  261.                             <td>Coordinador/a</td>
  262.                         </tr>
  263.                         <tr>
  264.                             <td colspan="2"><a href="">Nome Apelido Apelido</a></td>
  265.                         </tr>
  266.                         <tr>
  267.                             <td colspan="2"><a href="">Nome Apelido Apelido</a></td>
  268.                         </tr>
  269.                         </tbody>
  270.                     </table>
  271.                 </div>
  272.             </div>
  273.         </div>
  274.     </section>
  275. {% endblock %}
  276. {% block siteFooter %}
  277.     {% include 'organisms/site-footer.html.twig' %}
  278. {% endblock %}
  279. {% block javascripts %}
  280.     {{ parent() }}
  281.     <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
  282.     <script type="text/javascript">
  283.       $(function () {
  284.         window.uscUi.eventBus.$on('dropdown-filter-changed', function (filterId, value) {
  285.             if (filterId === 'filtro-semana' && value) {
  286.               $.get('{{ path('center-schedule-subject_ajax') }}', function (data) {
  287.                 $('#weeks-container').html(data);
  288.                 window.uscUi.render('#weeks-container');
  289.                 window.uscUi.eventBus.$emit('dropdown-reload-items');
  290.               });
  291.             }
  292.         });
  293.       });
  294.     </script>
  295. {% endblock %}