{% extends 'base.html' %} 
{% load static %}

{% block title %} Solicitudes de cursos creados por instructores en espera {% endblock title %}
{% block contenido %}
{% include 'message.html' %}
<div class="card p-0">
    <div class="table-responsive">
        <table class="table table-vcenter card-table">
            <thead>
                <tr>
                    <th>Fecha de solicitud</th>
                    <th>Nombre del curso</th>
                    <th>Instructor</th>
                    <th class="w-1"></th>
                    <th class="w-1"></th>
                </tr>
            </thead>
            <tbody>
                {% for solicitud in pagination %}
                <tr>
                    <td class="text-muted">{{ solicitud.fecha }}</td>
                    <td> {{solicitud.curso }} </td>
                    <td> {{solicitud.curso.instructor}}</td>
                    <td><a class="btn btn-outline-info w-100" data-solicitudid="{{ solicitud.id }}" data-argumento="aceptar">
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user-check" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
                       <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                       <path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path>
                       <path d="M6 21v-2a4 4 0 0 1 4 -4h4"></path>
                       <path d="M15 19l2 2l4 -4"></path>
                    </svg> Aceptar</a></td>
                    <td><a class="btn btn-outline-danger w-100 solicitud-id" data-solicitudid="{{ solicitud.id }}" data-argumento="rechazar">
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-trash-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
                       <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                       <path d="M3 3l18 18"></path>
                       <path d="M4 7h3m4 0h9"></path>
                       <path d="M10 11l0 6"></path>
                       <path d="M14 14l0 3"></path>
                       <path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l.077 -.923"></path>
                       <path d="M18.384 14.373l.616 -7.373"></path>
                       <path d="M9 5v-1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>
                    </svg> Eliminar</a></td>
                    
                </tr>
                {% empty %}
                <tr>
                    <td  colspan="5">No hay solicitudes recibidas.</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>
{% endblock contenido %}
{% block pagination %}  {% include 'paginacion.html' %} {% endblock pagination %}

{% block js %} 
{% include 'curso/solicitud/modal.html' %}

{% endblock js %}
