{{ form_start(form) }}
{{ form_row(form.validated) }}
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne"
aria-expanded="true" aria-controls="collapseOne">
Participación de profesores
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordionExample">
<div class="accordion-body">
<ul>
{% for publicationAuthor in form.publicationAuthors %}
{% if publicationAuthor.vars.value.author is not null %}
<li>Porcentaje de participación de {{ publicationAuthor.vars.value.firstname}} {{
publicationAuthor.vars.value.lastname}}
{{ form_row(publicationAuthor.participation) }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Otros Coautores
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
<div class="accordion-body">
<ul>
{% for publicationAuthor in form.publicationAuthors %}
{% if publicationAuthor.vars.value.externalAuthor is not null %}
<li id="{{publicationAuthor.vars.value.id}}">Coautor: {{ publicationAuthor.vars.value.firstname}} {{
publicationAuthor.vars.value.lastname}} [ {{publicationAuthor.vars.value.getOrganizationsString}} ]
<button type="button" class="btn btn-danger btn-sm change-delete-li">Eliminar</button>
<a href="{{ path('app_publication_author_2_author', {'id': publicationAuthor.vars.value.id}) }}" class="btn btn-sm btn-war">Convertir a author ING</a>
{% if publicationAuthor.vars.value.isUC %}
{{ form_row(publicationAuthor.masterStudent) }}
{{ form_row(publicationAuthor.phdStudent) }}
{{ form_row(publicationAuthor.ucNotIng) }}
{{ form_row(publicationAuthor.postdoc) }}
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Atributos de la publicación
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
<div class="accordion-body">
{{ form_row(form.interdisciplinary) }}
{{ form_row(form.publicationType)}}
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
Revista
</button>
</h2>
<div id="collapseFour" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
<div class="accordion-body">
{{ form_row(form.publisher) }}
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseFive" aria-expanded="false" aria-controls="collapseFive">
Comentarios
</button>
</h2>
<div id="collapseFive" class="accordion-collapse collapse" data-bs-parent="#accordionExample">
<div class="accordion-body">
{{ form_row(form.privateComments) }}
{{ form_row(form.publicComments) }}
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="deleteModal" tabindex="-1" aria-labelledby="deleteModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="deleteModalLabel">Elimnar author</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Va a eliminar este autor de la publicación, debe hacerlo solo si está duplicado o si ocurrió otro error.<br>
Una vez que haga click en "Guardar" esta acción no se puede revertir.<br>
¿Está seguro de proceder?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" id="not-delete-author-btn">No, volver</button>
<button type="button" class="btn btn-danger" id="delete-author-btn">Si, eliminar!</button>
</div>
</div>
</div>
</div>
<div class="unused" style="display:none;">{{ form_widget(form) }}</div>
<br>
<button class="btn">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}