templates/publication/_form.html.twig line 1

Open in your IDE?
  1. {{ form_start(form) }}
  2.     {{ form_row(form.validated) }}
  3.     <div class="accordion" id="accordionExample">
  4.         <div class="accordion-item">
  5.             <h2 class="accordion-header">
  6.                 <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne"
  7.                     aria-expanded="true" aria-controls="collapseOne">
  8.                     Participación de profesores
  9.                 </button>
  10.             </h2>
  11.             <div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordionExample">
  12.                 <div class="accordion-body">
  13.                     <ul>
  14.                         {% for publicationAuthor in form.publicationAuthors %}
  15.                             {% if publicationAuthor.vars.value.author is not null %}
  16.                                 <li>Porcentaje de participación de {{ publicationAuthor.vars.value.firstname}} {{
  17.                                     publicationAuthor.vars.value.lastname}}
  18.                                     {{ form_row(publicationAuthor.participation) }}</li>        
  19.                             {% endif %}
  20.                         {% endfor %}
  21.                     </ul>
  22.                 </div>
  23.             </div>
  24.         </div>
  25.         <div class="accordion-item">
  26.             <h2 class="accordion-header">
  27.                 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
  28.                     data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
  29.                     Otros Coautores
  30.                 </button>
  31.             </h2>
  32.             <div id="collapseTwo" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
  33.                 <div class="accordion-body">
  34.                     <ul>
  35.                         {% for publicationAuthor in form.publicationAuthors %}
  36.                             {% if publicationAuthor.vars.value.externalAuthor is not null %}
  37.                             <li id="{{publicationAuthor.vars.value.id}}">Coautor: {{ publicationAuthor.vars.value.firstname}} {{
  38.                                 publicationAuthor.vars.value.lastname}} [ {{publicationAuthor.vars.value.getOrganizationsString}} ]
  39.                                 <button type="button" class="btn btn-danger btn-sm change-delete-li">Eliminar</button>
  40.                                 <a href="{{ path('app_publication_author_2_author', {'id': publicationAuthor.vars.value.id}) }}" class="btn btn-sm btn-war">Convertir a author ING</a>
  41.                                 {% if publicationAuthor.vars.value.isUC %}
  42.                                 {{ form_row(publicationAuthor.masterStudent) }}
  43.                                 {{ form_row(publicationAuthor.phdStudent) }}
  44.                                 {{ form_row(publicationAuthor.ucNotIng) }}
  45.                                 {{ form_row(publicationAuthor.postdoc) }}
  46.                                 {% endif %}
  47.                             </li>
  48.                             {% endif %}
  49.                         {% endfor %}
  50.                     </ul>
  51.                 </div>
  52.             </div>
  53.         </div>
  54.         <div class="accordion-item">
  55.             <h2 class="accordion-header">
  56.                 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
  57.                     data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
  58.                     Atributos de la publicación
  59.                 </button>
  60.             </h2>
  61.             <div id="collapseThree" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
  62.                 <div class="accordion-body">
  63.                     {{ form_row(form.interdisciplinary) }}
  64.                     {{ form_row(form.publicationType)}}
  65.                 </div>
  66.             </div>
  67.         </div>
  68.         <div class="accordion-item">
  69.             <h2 class="accordion-header">
  70.                 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
  71.                     data-bs-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
  72.                     Revista
  73.                 </button>
  74.             </h2>
  75.             <div id="collapseFour" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
  76.                 <div class="accordion-body">
  77.                     {{ form_row(form.publisher) }}
  78.                 </div>
  79.             </div>
  80.         </div>
  81.         <div class="accordion-item">
  82.             <h2 class="accordion-header">
  83.                 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
  84.                     data-bs-target="#collapseFive" aria-expanded="false" aria-controls="collapseFive">
  85.                     Comentarios
  86.                 </button>
  87.             </h2>
  88.             <div id="collapseFive" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
  89.                 <div class="accordion-body">
  90.                     {{ form_row(form.privateComments) }}
  91.                     {{ form_row(form.publicComments) }}
  92.                 </div>
  93.             </div>
  94.         </div>
  95.     </div>
  96.     <!-- Modal -->
  97. <div class="modal fade" id="deleteModal" tabindex="-1" aria-labelledby="deleteModalLabel" aria-hidden="true">
  98.         <div class="modal-dialog">
  99.             <div class="modal-content">
  100.                 <div class="modal-header">
  101.                     <h5 class="modal-title" id="deleteModalLabel">Elimnar author</h5>
  102.                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  103.                 </div>
  104.                 <div class="modal-body">
  105.                     Va a eliminar este autor de la publicación, debe hacerlo solo si está duplicado o si ocurrió otro error.<br>
  106.                     Una vez que haga click en "Guardar" esta acción no se puede revertir.<br> 
  107.                     ¿Está seguro de proceder?
  108.                 </div>
  109.                 <div class="modal-footer">
  110.                     <button type="button" class="btn btn-secondary" data-bs-dismiss="modal" id="not-delete-author-btn">No, volver</button>
  111.                     <button type="button" class="btn btn-danger" id="delete-author-btn">Si, eliminar!</button>
  112.                 </div>
  113.             </div>
  114.         </div>
  115.     </div>
  116.     <div class="unused" style="display:none;">{{ form_widget(form) }}</div>
  117.     <br>
  118.     <button class="btn">{{ button_label|default('Save') }}</button>
  119. {{ form_end(form) }}