|
|
@@ -1,35 +1,26 @@
|
|
|
-<div class="flex flex-col items-center justify-center py-2">
|
|
|
- <h2 class="text-3xl text-center uppercase font-bold">Manage accounts</h2>
|
|
|
- <div class="container">
|
|
|
- <div class="grid grid-cols-2 gap-10 mt-5">
|
|
|
- <div>
|
|
|
- <h4 class="font-semibold text-xl uppercase mb-5">Student accounts</h4>
|
|
|
- <ul>
|
|
|
- <li *ngFor="let student of studentList">
|
|
|
- <div class="row flex flex-row items-center justify-between my-2">
|
|
|
- <div class="flex flex-row items-center justify-center">
|
|
|
- <span class="w-auto p-3 bg-gray-300 text-gray-900 text-3xl text-bold flex items-center justify-center mr-5 rounded-lg">ID: {{student.id}}</span>
|
|
|
- <p class="text-xl font-semibold">{{student.firstname}} {{student.lastname}}</p>
|
|
|
- </div>
|
|
|
- <button class="w-[200px] ml-5 text-white focus:ring-4 focus:outline-none font-medium rounded-lg text-sm px-5 py-2.5 text-center bg-gray-900 hover:bg-gray-950 focus:ring-primary-800" (click)="deleteStudent(student)">Delete</button>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <h4 class="font-semibold text-xl uppercase mb-5">Teacher accounts</h4>
|
|
|
- <ul>
|
|
|
- <li *ngFor="let teacher of teacherList">
|
|
|
- <div class="row flex flex-row items-center justify-between my-2">
|
|
|
- <div class="flex flex-row items-center justify-center">
|
|
|
- <span class="w-auto p-3 bg-gray-300 text-gray-900 text-3xl text-bold flex items-center justify-center mr-5 rounded-lg">ID: {{teacher.id}}</span>
|
|
|
- <p class="text-xl font-semibold">{{teacher.firstname}} {{teacher.lastname}}</p>
|
|
|
- </div>
|
|
|
- <button class="w-[200px] ml-5 text-white focus:ring-4 focus:outline-none font-medium rounded-lg text-sm px-5 py-2.5 text-center bg-gray-900 hover:bg-gray-950 focus:ring-primary-800" (click)="deleteTeacher(teacher)">Delete</button>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<div class="container">
|
|
|
+ <div class="card">
|
|
|
+ <h4 class="card-header">Student accounts</h4>
|
|
|
+ <ul class="card-content">
|
|
|
+ <li *ngFor="let student of studentList" class="card-item">
|
|
|
+ <div class="card-item-details">
|
|
|
+ <span class="card-item-id">ID: {{student.id}}</span>
|
|
|
+ <p class="card-item-name">{{student.firstname}} {{student.lastname}}</p>
|
|
|
+ </div>
|
|
|
+ <button class="card-item-button" (click)="deleteStudent(student)">Delete</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="card">
|
|
|
+ <h4 class="card-header">Teacher accounts</h4>
|
|
|
+ <ul class="card-content">
|
|
|
+ <li *ngFor="let teacher of teacherList" class="card-item">
|
|
|
+ <div class="card-item-details">
|
|
|
+ <span class="card-item-id">ID: {{teacher.id}}</span>
|
|
|
+ <p class="card-item-name">{{teacher.firstname}} {{teacher.lastname}}</p>
|
|
|
+ </div>
|
|
|
+ <button class="card-item-button" (click)="deleteTeacher(teacher)">Delete</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
</div>
|