-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ayoub ETOULLALI
committed
Apr 26, 2023
1 parent
86722aa
commit da15733
Showing
42 changed files
with
2,864 additions
and
47 deletions.
There are no files selected for viewing
92 changes: 50 additions & 42 deletions
92
+/app-security1/src/main/resources/templates/patients.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,63 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:th="http://www.thymeleaf.org" | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="template1"> | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorate="template1"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Patients</title> | ||
<link rel="stylesheet" href="/webjars/bootstrap/5.2.3/css/bootstrap.min.css"> | ||
</head> | ||
<body> | ||
<div layout:fragment="content1"> | ||
<div class="container mt-2"> | ||
<div class="card"> | ||
<div class="card-header">Liste des patients</div> | ||
<div class="card-body"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>ID</th> <th>NOM</th> <th>Date Naissance</th> <th>Malade</th> <th>Score</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr th:each="p:${listePatients}"> | ||
<td th:text="${p.id}"></td> <!-- use p.id ou p.getId()--> | ||
<td th:text="${p.nom}"></td> | ||
<td th:text="${p.dateNaissance}"></td> | ||
<td th:text="${p.malade}"></td> | ||
<td th:text="${p.score}"></td> | ||
<td th:if="${#authorization.expression('hasRole(''ADMIN'')')}"> | ||
<a onclick=" return confirm('sur ?')" class="btn btn-danger" th:href="@{/admin/delete(id=${p.id},keyword=${keyword},page=${pageCurrent})}"> | ||
Delete | ||
</a> | ||
</td> | ||
<td th:if="${#authorization.expression('hasRole(''ADMIN'')')}"> | ||
<a class="btn btn-success" th:href="@{/admin/editPatient(id=${p.id},keyword=${keyword},page=${pageCurrent})}"> | ||
Edit | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<ul class="nav nav-pills"> | ||
<li th:each="page,status:${pages}"> | ||
<a th:class="${status.index==pageCurrent?'btn btn-primary ms-1':'btn btn-outline-primary ms-1'}" | ||
th:text="${status.index}" | ||
th:href="@{/user/index(page=${status.index},keyword=${keyword})}"> <!-- keyword=${keyword} : garde keyword actuel --> | ||
</a> <!-- status : index count size(fixe) current --> | ||
</li> | ||
</ul> | ||
</div> | ||
<div layout:fragment="content1"> | ||
<div class="container mt-2"> | ||
<div class="card"> | ||
<div class="card-header">Liste des patients</div> | ||
<div class="card-body"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>ID</th> | ||
<th>NOM</th> | ||
<th>Date Naissance</th> | ||
<th>Malade</th> | ||
<th>Score</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr th:each="p:${listePatients}"> <!-- param --> | ||
<td th:text="${p.id}"></td> <!-- use p.id ou p.getId()--> | ||
<td th:text="${p.nom}"></td> | ||
<td th:text="${p.dateNaissance}"></td> | ||
<td th:text="${p.malade}"></td> | ||
<td th:text="${p.score}"></td> | ||
<td th:if="${#authorization.expression('hasRole(''ADMIN'')')}"> | ||
<a onclick=" return confirm('sur ?')" class="btn btn-danger" | ||
th:href="@{/admin/delete(id=${p.id},keyword=${keyword},page=${pageCurrent})}"> | ||
<!-- controller (traitement) --> | ||
Delete | ||
</a> | ||
</td> | ||
<td th:if="${#authorization.expression('hasRole(''ADMIN'')')}"> | ||
<a class="btn btn-success" | ||
th:href="@{/admin/editPatient(id=${p.id},keyword=${keyword},page=${pageCurrent})}"> | ||
Edit | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<ul class="nav nav-pills"> | ||
<li th:each="page,status:${pages}"> | ||
<a th:class="${status.index==pageCurrent?'btn btn-primary ms-1':'btn btn-outline-primary ms-1'}" | ||
th:text="${status.index}" | ||
th:href="@{/user/index(page=${status.index},keyword=${keyword})}"> | ||
<!-- keyword=${keyword} : garde keyword actuel --> | ||
</a> <!-- status : index count size(fixe) current --> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...et Injection des dépendances/.idea/Inversion de contrôle et Injection des dépendances.iml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Activité Pratique N° 1/Inversion de contrôle et Injection des dépendances/.idea/misc.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Activité Pratique N° 1/Inversion de contrôle et Injection des dépendances/.idea/modules.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
|
||
public interface CustomerRepository extends JpaRepository<Customer,Long> { | ||
|
||
|
||
} |
Oops, something went wrong.