Commit 9c009bf5 authored by Elliot Axel Noriega's avatar Elliot Axel Noriega
Browse files

Finalizacion de carga historico, pendiente exportar carga historico y...

Finalizacion de carga historico, pendiente exportar carga historico y notificacion de error de cargas pendientes
parent 655c695e
Loading
Loading
Loading
Loading
+1.36 KiB (18.6 KiB)

File changed.

No diff preview for this file type.

+23 −10
Original line number Diff line number Diff line
@@ -35,6 +35,21 @@
            justify-content: center;
            align-items: center;
        }

        .fixed-top-alert {
            position: fixed;
            top: 0;
            left: 55%;
            transform: translateX(-50%);
            z-index: 10000; /* Ajusta este valor según sea necesario */
            opacity: 1;
            transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
          }
  
        .hidden {
          top: -50px; /* Cambia esto según la altura de tu alerta */
          opacity: 0;
        }
    </style>
{% endblock estilos %}
    
@@ -43,8 +58,7 @@
{% block contenido %}

{% if errores %}
<div class="align-content-center" style="display: flex; justify-content: center; align-items: center;">
    <div id="customAlert" class="text-center alert alert-danger alert-dismissible fade show text-white fixed-top-alert" role="alert" style="width: 50%;">
<div id="customAlert" class="text-center alert alert-danger alert-dismissible fade show text-white fixed-top-alert" role="alert">
    <span class="material-symbols-outlined" style="font-size: xx-large;vertical-align: middle;">
        warning 
    </span>
@@ -53,7 +67,6 @@
      <span aria-hidden="true">&times;</span>
    </button>
</div>
</div>
{% endif %}

<div class="text-center">
+3 −3
Original line number Diff line number Diff line
@@ -11,9 +11,9 @@
    Finalizar Carga
{% endblock PaginaActual %}

{% block nav-Docentes %}
{% block nav-Cargas %}
    active
{% endblock nav-Docentes %}
{% endblock nav-Cargas %}

{% block contenido %}

@@ -58,7 +58,7 @@
  </div>
  <div class="col-4 text-center">
    <!-- Botón para confirmar la finaizacion del ciclo -->
    <a href="#" class="btn bg-gradient-danger">Finalizar ciclo</a>
    <a href="{% url 'FinalizarCiclo' ciclo.id %}" class="btn bg-gradient-danger">Finalizar ciclo</a>
  </div>
</div>
{% endblock contenido %}
 No newline at end of file
+59 −10
Original line number Diff line number Diff line
@@ -16,12 +16,32 @@
{% endblock nav-Cargas %}


{% block estilos %}
    <style>
        .fixed-top-alert {
            position: fixed;
            top: 0;
            left: 55%;
            transform: translateX(-50%);
            z-index: 10000; /* Ajusta este valor según sea necesario */
            opacity: 1;
            transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
          }
  
        .hidden {
          top: -50px; /* Cambia esto según la altura de tu alerta */
          opacity: 0;
        }
    </style>
{% endblock estilos %}
    


    

{% block contenido %}
{% if errores %}
<div class="align-content-center" style="display: flex; justify-content: center; align-items: center;">
    <div id="customAlert" class="text-center alert alert-danger alert-dismissible fade show text-white fixed-top-alert" role="alert" style="width: 50%;">
<div id="customAlert" class="text-center alert alert-danger alert-dismissible fade show text-white fixed-top-alert" role="alert">
    <span class="material-symbols-outlined" style="font-size: xx-large;vertical-align: middle;">
        warning 
    </span>
@@ -30,7 +50,6 @@
      <span aria-hidden="true">&times;</span>
    </button>
</div>
</div>
{% endif %}
<div class="text-center">
    <h3>Detalles carga</h3>
@@ -43,6 +62,14 @@
    <div class="card-body px-0 pt-0 pb-2" >
        
        <div class="row text-center">
            {% if esCargaHistorico %}
            <div class="col">
                <h6><strong>Nombre: </strong>{{carga.nombre_docente}}</h6>
            </div>
            <div class="col">
                <h6><strong>Matricula: </strong>{{carga.matricula_docente}}</h6>
            </div>
            {% else %}
            {% if not carga.docente is None %}
            <div class="col">
                <h6><strong>Nombre: </strong>{{carga.docente.nombre}} {{carga.docente.apellidos}}</h6>
@@ -56,6 +83,7 @@
            {% else %}
            <h6>No se ha proporcionado un docente para esta carga </h6>
            {% endif %}
            {% endif %}
        </div>
    </div>
</div>
@@ -69,6 +97,21 @@
    </div>
    <div class="card-body px-0 pt-0 pb-2">
        <div class="row" style="margin-bottom: 10px;">
            {% if esCargaHistorico %}
            <div class="col text-center">
                <h6><strong>Nombre:</strong> {{carga.nombre_materia}}</h6>
            </div>
            <div class="col text-center">
                <h6><strong>Semestre:</strong> {{carga.semestre_materia}}</h6>
            </div>
            <div class="col text-center">
                <h6><strong>Grupo:</strong> {{carga.grupo_materia}}</h6>
            </div>
            <div class="col text-center">
                <h6><strong>Horas:</strong> {{carga.horas_materia}}</h6>
            </div>
            {% else %}

            <div class="col text-center">
                <h6><strong>Nombre:</strong> {{carga.materia.nombre}}</h6>
            </div>
@@ -81,6 +124,8 @@
            <div class="col text-center">
                <h6><strong>Horas:</strong> {{carga.materia.horas}}</h6>
            </div>

            {% endif %}
        </div>
    </div>
</div>
@@ -193,6 +238,9 @@
        <div class="row justify-content-center" style="margin-bottom: 10px;">
            <div class="col-3 text-center">
                <h5>Tipo de Carga:</h5>
                {% if esCargaHistorico %}
                <h6>{{carga.tipo_carga}}</h6>
                {% else %}
                {% if carga.tipo_carga == '1' %}   <h6>Base</h6>
                {% elif carga.tipo_carga == '2' %} <h6>Tiempo determinado</h6>
                {% elif carga.tipo_carga == '3' %} <h6>Suplencia</h6>
@@ -203,6 +251,7 @@
                {% else %}
                <h6>No se ha asignado el tipo de carga</h6>    
                {% endif %}
                {% endif %}
                    
            </div>
            <div class="col-2">
Loading