109 lines
5.8 KiB
Plaintext
109 lines
5.8 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"%>
|
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
<%@ page isELIgnored="false" %>
|
|
<spring:url value="/animal/${MODEL_MAP_ANIMAL.getId()}/add/care" var="animalAddCareURL" />
|
|
<spring:url value="/animal/${MODEL_MAP_ANIMAL.getId()}/delete/care" var="animalDeleteCareURL" />
|
|
<spring:url value="/animal/${MODEL_MAP_ANIMAL.getId()}/add/consent_behavior" var="animalAddConsentBehaviorURL" />
|
|
<spring:url value="/animal/${MODEL_MAP_ANIMAL.getId()}/delete/consent_behavior" var="animalDeleteConsentBehaviorURL" />
|
|
|
|
<%@ include file="base/language.jsp" %>
|
|
|
|
|
|
<html>
|
|
<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>
|
|
<div class="row">
|
|
<div class="col-lg-1">
|
|
</div>
|
|
|
|
<div class="col-lg-5">
|
|
<h4>Liste des soins</h4>
|
|
<div class="list-group">
|
|
<c:forEach items="${MODEL_MAP_ANIMAL.getListCares()}" var="care">
|
|
<a href="${animalURL}/${MODEL_MAP_ANIMAL.getId()}/care/${care.getId()}" class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
${care.getName()}
|
|
<form class="pull-right" action="${animalDeleteCareURL}/${care.getId()}" method="POST">
|
|
<button class="btn btn-danger" type="submit" data-toggle="tooltip" data-placement="bottom" title="Suppression"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-1"></div>
|
|
<div class="col-lg-11"><small>${care.getDescription()}</small></div>
|
|
</div>
|
|
</a>
|
|
</c:forEach>
|
|
</div>
|
|
<hr/>
|
|
<h4>Ajouter un soin</h4>
|
|
<form id="addCareForm" action="${animalAddCareURL}" method="POST">
|
|
<input type="text" id="form_care_name" name="name" class="form-control" placeholder="Soin" required />
|
|
<textarea id="form_care_description_name" name="description" class="form-control" placeholder="Description du soin (optionel)" ></textarea>
|
|
<button class="btn btn btn-primary" type="submit">Ajouter</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col-lg-1">
|
|
</div>
|
|
|
|
<div class="col-lg-5">
|
|
<h4>Liste des comportements de consentements</h4>
|
|
<div class="list-group">
|
|
<c:forEach items="${MODEL_MAP_ANIMAL.getListConsentBehavior()}" var="consentBehavior">
|
|
<a href="${animalURL}/${MODEL_MAP_ANIMAL.getId()}/consent_behavior/${consentBehavior.getId()}" class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
${consentBehavior.getName()}
|
|
<form class="pull-right" action="${animalDeleteConsentBehaviorURL}/${consentBehavior.getId()}" method="POST">
|
|
<button class="btn btn-danger" type="submit" data-toggle="tooltip" data-placement="bottom" title="Suppression"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-1"></div>
|
|
<div class="col-lg-11"><small>${consentBehavior.getDescription()}</small></div>
|
|
</div>
|
|
</a>
|
|
</c:forEach>
|
|
</div>
|
|
<hr/>
|
|
<h4>Ajouter un comportement de consentement</h4>
|
|
<form id="addCareForm" action="${animalAddConsentBehaviorURL}" method="POST">
|
|
<input type="text" id="form_consent_behavior_name" name="name" class="form-control" placeholder="Comportement de consentement" required />
|
|
<textarea id="form_consent_behavior_description_name" name="description" class="form-control" placeholder="Description du comportement de consentement (optionel)" ></textarea>
|
|
<button class="btn btn btn-primary" type="submit">Ajouter</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<%@ include file="base/footer.jsp" %>
|
|
</div>
|
|
</body>
|
|
</html>
|