Skip to content
Snippets Groups Projects
Commit 038f885d authored by Jessie Ragot's avatar Jessie Ragot
Browse files

Change the style of the list of doctors and refactor the Medical history class...

Change the style of the list of doctors and refactor the Medical history class to pass names in English
parent 4cd05028
Branches
No related tags found
1 merge request!19[feature]models-change+authentification+registration
...@@ -11,13 +11,13 @@ import java.time.LocalDate; ...@@ -11,13 +11,13 @@ import java.time.LocalDate;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
class HistoriqueMedical { class HistoryMedical {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id; private Long id;
private String antecedents; private String history;
private String notes; private String notes;
private LocalDate dateConsultation; private LocalDate consultationDate;
@ManyToOne @ManyToOne
@JoinColumn(name = "patient_id") @JoinColumn(name = "patient_id")
......
spring.application.name=projetIndu spring.application.name=projetIndu
spring.datasource.url=jdbc:mysql://localhost:3307 spring.datasource.url=jdbc:mysql://localhost:3306/projet
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=mypassword spring.datasource.password=jessie
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
spring.jpa.hibernate.ddl-auto=create spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.format_sql=true
spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.prefix=classpath:/templates/
...@@ -14,5 +14,7 @@ spring.servlet.multipart.max-file-size=100MB ...@@ -14,5 +14,7 @@ spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB spring.servlet.multipart.max-request-size=100MB
spring.mvc.hiddenmethod.filter.enabled=true spring.mvc.hiddenmethod.filter.enabled=true
spring.banner.location=banner.txt
spring.banner.location=banner.txt
\ No newline at end of file
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="fr">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Liste des Médecins</title> <title>Liste des Médecins</title>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
</head> </head>
<body> <body class="bg-light">
<h1>Liste des médecins</h1>
<table> <div class="container mt-5">
<h1 class="text-center mb-4">Liste des Médecins</h1>
<table class="table table-striped table-hover shadow-sm">
<thead class="table-dark">
<tr> <tr>
<th>Nom</th> <th>Nom</th>
<th>Prenom</th> <th>Prénom</th>
<th>Spécialité</th> <th>Spécialité</th>
<th>Email</th> <th>Email</th>
</tr> </tr>
</thead>
<tbody>
<tr th:each="doctor : ${doctors}"> <tr th:each="doctor : ${doctors}">
<td th:text="${doctor.lastName}"></td> <td th:text="${doctor.lastName}"></td>
<td th:text="${doctor.firstName}"></td> <td th:text="${doctor.firstName}"></td>
<td th:text="${doctor.speciality}"></td> <td th:text="${doctor.speciality}"></td>
<td th:text="${doctor.email}"></td> <td th:text="${doctor.email}"></td>
</tr> </tr>
</tbody>
</table> </table>
<div class="text-center mt-4">
<a href="/" class="btn btn-primary">Retour à l'accueil</a>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body> </body>
</html> </html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment