69 lines
2.9 KiB
Plaintext
69 lines
2.9 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>
|
|
<fmt:message key="progression.title">
|
|
<fmt:param value="${MODEL_MAP_ANIMAL.getName()}" />
|
|
</fmt:message>
|
|
</h1></center>
|
|
<h4><fmt:message key="progression.${MODEL_MAP_PROGRESSION_TYPE}"></fmt:message> - <fmt:message key="progression.value.${MODEL_MAP_PROGRESSION}"></fmt:message></h4>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th><fmt:message key="progression.table.column.care"></fmt:message></th>
|
|
<th><fmt:message key="progression.table.column.behavior"></fmt:message></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>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$('[data-toggle="tooltip"]').tooltip();
|
|
});
|
|
</script>
|
|
</html>
|