|
1 | 1 | @model Classes |
2 | 2 |
|
3 | 3 | <div class="min-h-screen text-center"> |
4 | | - <p class="dark:text-white font-bold tect-2xl md:text-5xl justify-center items-center pb-10">Add Classes</p> |
| 4 | + <p class="dark:text-white font-bold tect-2xl md:text-5xl justify-center items-center pb-10">Add a Class</p> |
5 | 5 |
|
6 | | - <form method="post"> |
| 6 | + <form method="post" asp-controller="Record" asp-action="AddClass"> |
7 | 7 | <table class="min-w-full bg-transparent shadow-md rounded-lg text-center"> |
8 | 8 | <thead> |
9 | 9 | <tr> |
|
14 | 14 | <tbody> |
15 | 15 | <tr class="border-t"> |
16 | 16 | <td class="py-2 px-4"> |
17 | | - <input asp-for="period" type="text" class="form-control w-full bg-transparent rounded px-2 py-1 text-white placeholder-white::placeholder text-center outline-none" placeholder="Enter period" /> |
| 17 | + <input asp-for="period" type="text" class="form-control w-full bg-transparent rounded px-2 py-1 dark:text-white placeholder-white::placeholder text-center outline-none" placeholder="Enter period" /> |
| 18 | + <span asp-validation-for="period" class="text-danger"></span> |
18 | 19 | </td> |
19 | 20 | <td class="py-2 px-4"> |
20 | | - <input asp-for="className" type="text" class="form-control w-full bg-transparent rounded px-2 py-1 text-white placeholder-white::placeholder text-center outline-none" placeholder="Enter name" /> |
| 21 | + <input asp-for="className" type="text" class="form-control w-full bg-transparent rounded px-2 py-1 dark:text-white placeholder-white::placeholder text-center outline-none" placeholder="Enter name" /> |
| 22 | + <span asp-validation-for="className" class="text-danger"></span> |
21 | 23 | </td> |
22 | 24 | </tr> |
23 | 25 | </tbody> |
24 | 26 | </table> |
25 | 27 |
|
26 | 28 | <div class="flex items-center justify-center mt-2 f"> |
27 | 29 | <div class="text-center mt-6 inline-flex"> |
28 | | - <button type="submit" class="text-white border border-white bg-transparent font-semibold hover:bg-gray-500 hover:text-gray-800 py-2 px-4 rounded items-center justify-center transition duration-100 ease-in-out"> |
29 | | - <i class="bi bi-plus-circle mr-2"> </i> Add to Timetable |
| 30 | + <button type="submit" class="dark:text-white border dark:border-white bg-transparent font-semibold hover:bg-gray-500 hover:text-gray-800 py-2 px-4 rounded items-center justify-center transition duration-100 ease-in-out"> |
| 31 | + Add to Timetable |
30 | 32 | </button> |
31 | 33 | </div> |
32 | 34 |
|
33 | 35 | <div class="w-10"> </div> |
34 | 36 |
|
35 | 37 | <div class="text-center mt-6 inline-flex"> |
36 | 38 | <a asp-controller="Record" asp-action="TimeTable" class="text-gray-400 border border-gray-400 bg-transparent font-semibold hover:bg-gray-500 hover:text-gray-800 py-2 px-4 rounded items-center justify-center transition duration-100 ease-in-out"> |
37 | | - <i class="bi bi-plus-circle mr-2"> </i> Back to Timetable |
| 39 | + Back to Timetable |
38 | 40 | </a> |
39 | 41 | </div> |
40 | 42 | </div> |
|
0 commit comments