|
Last change
on this file since 5ea00d7 was 5ea00d7, checked in by Malek Alavi <malekalavi7@…>, 4 days ago |
|
Initial project upload
|
-
Property mode
set to
100644
|
|
File size:
2.0 KB
|
| Line | |
|---|
| 1 | <!DOCTYPE html>
|
|---|
| 2 | <html xmlns:th="http://www.thymeleaf.org">
|
|---|
| 3 | <head>
|
|---|
| 4 | <meta charset="UTF-8">
|
|---|
| 5 | <title>Lesson Form</title>
|
|---|
| 6 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|---|
| 7 | </head>
|
|---|
| 8 | <body>
|
|---|
| 9 |
|
|---|
| 10 | <div class="container mt-5">
|
|---|
| 11 |
|
|---|
| 12 | <!-- Navigation -->
|
|---|
| 13 | <div class="mb-4">
|
|---|
| 14 | <a th:href="@{/}" class="btn btn-secondary me-2">Back to Home</a>
|
|---|
| 15 |
|
|---|
| 16 | <a th:href="@{'/lesson/' + ${module.moduleId}}"
|
|---|
| 17 | class="btn btn-outline-dark">
|
|---|
| 18 | Back to Lessons
|
|---|
| 19 | </a>
|
|---|
| 20 | </div>
|
|---|
| 21 |
|
|---|
| 22 | <div class="card shadow-sm">
|
|---|
| 23 | <div class="card-body">
|
|---|
| 24 | <h3 class="mb-4"
|
|---|
| 25 | th:text="${lesson != null} ? 'Edit Lesson' : 'Add Lesson'">
|
|---|
| 26 | Lesson Form
|
|---|
| 27 | </h3>
|
|---|
| 28 |
|
|---|
| 29 | <form th:action="${lesson != null}
|
|---|
| 30 | ? @{'/lesson/' + ${module.moduleId} + '/edit/' + ${lesson.lessonId}}
|
|---|
| 31 | : @{'/lesson/' + ${module.moduleId} + '/add'}"
|
|---|
| 32 | method="post">
|
|---|
| 33 |
|
|---|
| 34 | <!-- Title -->
|
|---|
| 35 | <div class="mb-3">
|
|---|
| 36 | <label for="title" class="form-label">Lesson Title</label>
|
|---|
| 37 | <input type="text"
|
|---|
| 38 | id="title"
|
|---|
| 39 | name="title"
|
|---|
| 40 | class="form-control"
|
|---|
| 41 | placeholder="Enter lesson title"
|
|---|
| 42 | required
|
|---|
| 43 | th:value="${lesson != null} ? ${lesson.title} : ''">
|
|---|
| 44 | </div>
|
|---|
| 45 |
|
|---|
| 46 | <!-- Material -->
|
|---|
| 47 | <div class="mb-3">
|
|---|
| 48 | <label for="material" class="form-label">Lesson Material</label>
|
|---|
| 49 | <textarea id="material"
|
|---|
| 50 | name="material"
|
|---|
| 51 | class="form-control"
|
|---|
| 52 | rows="6"
|
|---|
| 53 | placeholder="Enter lesson material..."
|
|---|
| 54 | required
|
|---|
| 55 | th:text="${lesson != null} ? ${lesson.material} : ''"></textarea>
|
|---|
| 56 | </div>
|
|---|
| 57 |
|
|---|
| 58 | <button type="submit"
|
|---|
| 59 | class="btn btn-success w-100"
|
|---|
| 60 | th:text="${lesson != null} ? 'Save Changes' : 'Create Lesson'">
|
|---|
| 61 | Submit
|
|---|
| 62 | </button>
|
|---|
| 63 | </form>
|
|---|
| 64 |
|
|---|
| 65 | </div>
|
|---|
| 66 | </div>
|
|---|
| 67 |
|
|---|
| 68 | </div>
|
|---|
| 69 |
|
|---|
| 70 | </body>
|
|---|
| 71 | </html>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.