MedicalTrainingTracker/src/main/webapp/vue/animal_progression.jsp

59 lines
2.4 KiB
Plaintext

<%@page import="fr.geoffrey.medical_training_tracker.dao.bean.Animal"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page isELIgnored="false" %>
<%@ include file="base/language.jsp" %>
<!DOCTYPE html>
<html lang="${language}">
<head>
<%@ include file="base/header.jsp" %>
<style type="text/css">
fieldset {
margin: auto;
width: 600px;
margin-top: 30px;
margin-bottom: 10px;
padding: 20px;
text-align: left;
border: 2px solid #aaa;
}
fieldset a {
width: 150px;
margin-bottom: 10px;
float: right;
}
</style>
</head>
<body>
<div class="container">
<%@ include file="base/navbar.jsp" %>
<center><h1>Feuille de ${MODEL_MAP_ANIMAL.getName()}</h1></center>
<h4>Progression par moi ${MODEL_MAP_PROGRESSION}</h4>
<table class="table table-hover">
<thead>
<tr>
<th>Soin</th>
<th>Comportement de consentement</th>
</tr>
</thead>
<tbody>
<c:forEach items="${MODEL_MAP_ANIMAL.getProgressionList()}" var="progression">
<tr class="
<c:if test="${MODEL_MAP_PROGRESSION == 'TRAINED'}">success</c:if>
<c:if test="${MODEL_MAP_PROGRESSION == 'CURRENTLY_TRAINING'}">info</c:if>
<c:if test="${MODEL_MAP_PROGRESSION == 'NOT_TRAINED'}">active</c:if>
">
<td><a href="${animalURL}/${MODEL_MAP_ANIMAL.getId()}/care/${progression.getCare().getId()}">${progression.getCare().getName()}</a></td>
<td><a href="${animalURL}/${MODEL_MAP_ANIMAL.getId()}/consent_behavior/${progression.getConsentBehavior().getId()}">${progression.getConsentBehavior().getName()}</a></td>
</tr>
</c:forEach>
</tbody>
</table>
<%@ include file="base/footer.jsp" %>
</div>
</body>
</html>