templates/publication/mine.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.     <h1>Mis publicaciones</h1>
  4.     <em>Recuerde que las publicaciones se transpasan automáticamente a Siding una vez validadas</em>
  5. <!-- Nav tabs -->
  6. <ul class="nav nav-tabs" id="myTab" role="tablist">
  7.     {% for year, publications in groupedPublications %}
  8.         <li class="nav-item" role="presentation">
  9.             <a class="nav-link {% if loop.first %}active{% endif %}" id="tab-{{ year }}" data-bs-toggle="tab" href="#content-{{ year }}" role="tab" aria-controls="content-{{ year }}" aria-selected="{% if loop.first %}true{% else %}false{% endif %}">
  10.                 {{ year }}
  11.             </a>
  12.         </li>
  13.     {% endfor %}
  14. </ul>
  15. <!-- Tab panes -->
  16. <div class="tab-content" id="myTabContent">
  17.     {% for year, publications in groupedPublications %}
  18.         <div class="tab-pane fade {% if loop.first %}show active{% endif %}" id="content-{{ year }}" role="tabpanel" aria-labelledby="tab-{{ year }}">
  19.             <h2 class="mt-3">Publicaciones del año {{ year }}</h2>
  20.             <table class="table datatable-basic">
  21.                 <thead>
  22.                     <tr>
  23.                         <th>Nombre</th>
  24.                         <th>Año Publicación</th>
  25.                         <th>Doi</th>
  26.                         <th>Estado validación</th>
  27.                         <th>Comentarios</th>
  28.                     </tr>
  29.                 </thead>
  30.                 <tbody>
  31.                     {% for publication in publications %}
  32.                         <tr>
  33.                             <td>{{ publication.title }}</td>
  34.                             <td>{{ publication.publishedYear }}</td>
  35.                             <td>{{ publication.doi }}</td>
  36.                             <td>
  37.                                 {% if publication.validated %}
  38.                                     Validada
  39.                                 {% else %}
  40.                                     por validar
  41.                                 {% endif %}
  42.                             </td>
  43.                             <td>{{ publication.publicComments }}</td>
  44.                         </tr>
  45.                     {% endfor %}
  46.                 </tbody>
  47.             </table>
  48.         </div>
  49.     {% endfor %}
  50. </div>
  51.     {#
  52.     <table class="table datatable-basic">
  53.         <thead>
  54.             <tr>
  55.                 <th>Nombre</th>
  56.                 <th>Año Publicación</th>
  57.                 <th>Doi</th>
  58.                 <th>Estado validación</th>
  59.                 <th>Comentarios</th>
  60.             </tr>
  61.         </thead>
  62.         <tbody>
  63.             {% for publication in publications %}
  64.             {% if publication.publishedYear == 2023 %}
  65.                 <tr>
  66.                     <td>{{ publication.title }}</td>
  67.                     <td>{{ publication.publishedYear }}</td>
  68.                     <td>{{ publication.doi }}</td>
  69.                     <td>{% if  publication.validated %} Validada {% else %} por validar {% endif %}</td>
  70.                     <td>
  71.                         <!--<a href="{{ path('publication_percentage', {'id': publication.id}) }}" class="btn-ing btn">porcentajes de participación</a>-->
  72.                         {#<button type="button" class="btn btn-ing" data-bs-toggle="modal" data-bs-target="#exampleModal">
  73.                             porcentajes de participación
  74.                         </button>#}{#
  75.                         {{ publication.publicComments}}
  76.                     </td>
  77.                 </tr>
  78.             {% endif %}
  79.             {% else %}
  80.                 <tr>
  81.                     <td colspan="13">No hay publicaciones registradas</td>
  82.                 </tr>
  83.             {% endfor %}
  84.         </tbody>
  85.     </table>
  86.     #}
  87. <!-- Modal -->
  88. <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  89.     <div class="modal-dialog">
  90.         <div class="modal-content">
  91.             <div class="modal-header">
  92.                 <h5 class="modal-title" id="exampleModalLabel">Declaración de de porcentajes no disponibles</h5>
  93.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  94.             </div>
  95.             <div class="modal-body">
  96.                 Dado que aún estamos en la carga de publicaciones por los profesores en sus perfiles WOS, la declaración de porcentajes de participación no está disponible.<br>
  97.                 Pronto podrá validar su porcentaje de participación para todas sus publicaciones 2023.
  98.             </div>
  99.             <div class="modal-footer">
  100.                 <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Ok, gracias</button>
  101.             </div>
  102.         </div>
  103.     </div>
  104. </div>
  105.     {#% if is_granted('ROLE_ADMIN') %}
  106.         <a href="{{ path('publication_new') }}" class="btn btn-danger">Ingresar publicación manualmente</a>
  107.         {% endif %#}
  108. {% endblock %}
  109. {% block javascripts %}
  110.     {{ parent() }}
  111.     {{ encore_entry_script_tags('tables') }}
  112. {% endblock %}