You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

77 lines
3.3 KiB

{% extends 'base.html' %}
{% block menuapp %}
{% include 'gestion/_menu-riesgos.html' %}
{% endblock menuapp %}
{% block content %}
<div class="container-xl">
<div class="app-card app-card-notification shadow-sm mb-4">
<div class="app-card-header px-4 py-3">
<div class="row g-3 align-items-center">
<div class="col-12 col-lg-auto text-center text-lg-start">
<h4>{{ proyecto.referencia }}</h4>
<ul class="notification-meta list-inline mb-0">
<li class="list-inline-item">{{ proyecto.titulo }}</li>
</ul>
</div>
</div>
</div>
<div class="app-card-body p-4">
{% if riesgos %}
<table class="table app-table-hover mb-0 text-left">
<thead>
<tr>
<th class="cell">Proyecto</th>
<th class="cell">Título</th>
<th class="cell">Descripción</th>
<th class="cell">Responsable</th>
<th class="cell">Importe</th>
<th class="cell">Probabilidad</th>
<th class="cell">Valor</th>
<th class="cell">Fecha de liberación</th>
<th class="cell">A liberar</th>
<th class="cell">A ejecutar</th>
<th class="cell">Acción</th>
</tr>
</thead>
<tbody>
{% for riesgo in riesgos %}
<tr>
<td class="cell"><a href="{% url 'gestion:detalle_proyecto' riesgo.proyecto.id %}">{{ riesgo.proyecto.titulo }}</a></td>
<td class="cell">{{ riesgo.titulo }}</td>
<td class="cell">{{ riesgo.descripcion }}</td>
<td class="cell">{{ riesgo.responsable }} €</td>
<td class="cell">{{ riesgo.importe }} €</td>
<td class="cell">{{ riesgo.probabilidad }} €</td>
<td class="cell">{{ riesgo.valor }}</td>
<td class="cell">{{ riesgo.fecha_liberacion }}</td>
<td class="cell">{{ riesgo.a_liberar }}</td>
<td class="cell">{{ riesgo.a_ejecutar }}</td>
<td class="cell">{{ riesgo.accion.descripcion }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No se han encontrado riesgos para este proyecto</p>
{% endif %}
</div>
</div>
<div class="row g-3 mb-4 align-items-center justify-content-between">
<div class="col-auto">
<a class="btn app-btn-secondary" href="{% url 'gestion:lista_riesgos' %}">Volver al inicio</a>
</div>
<div class="col-auto">
<a class="btn app-btn-primary" href="{% url 'gestion:nuevo_riesgo' %}">Añadir riesgo</a> <!-- Faltaría poner el id del proyecto-->
</div>
</div>
</div>
{% endblock %}