|
Last change
on this file since 5ea00d7 was 5ea00d7, checked in by Malek Alavi <malekalavi7@…>, 3 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 th:text="${plan != null} ? 'Edit Subscription Plan' : 'Add Subscription Plan'">Subscription Plan</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 | <div class="container mt-5">
|
|---|
| 10 | <h2 th:text="${plan != null} ? 'Edit Subscription Plan' : 'Add Subscription Plan'">Add Subscription Plan</h2>
|
|---|
| 11 |
|
|---|
| 12 | <form th:action="${plan != null} ? @{/edit/subscription-plan/{id}(id=${plan.planId})} : @{/add/subscription-plan}" method="post">
|
|---|
| 13 | <div class="mb-3">
|
|---|
| 14 | <label for="name" class="form-label">Plan Name</label>
|
|---|
| 15 | <input type="text" class="form-control" id="name" name="name" th:value="${plan != null} ? ${plan.name} : ''" required>
|
|---|
| 16 | </div>
|
|---|
| 17 |
|
|---|
| 18 | <div class="mb-3">
|
|---|
| 19 | <label for="price" class="form-label">Price</label>
|
|---|
| 20 | <input type="number" step="0.01" class="form-control" id="price" name="price" th:value="${plan != null} ? ${plan.price} : ''" required>
|
|---|
| 21 | </div>
|
|---|
| 22 |
|
|---|
| 23 | <div class="mb-3">
|
|---|
| 24 | <label for="durationMonths" class="form-label">Duration (months)</label>
|
|---|
| 25 | <input type="number" class="form-control" id="durationMonths" name="durationMonths" th:value="${plan != null} ? ${plan.durationMonths} : ''" required>
|
|---|
| 26 | </div>
|
|---|
| 27 |
|
|---|
| 28 | <div class="mb-3">
|
|---|
| 29 | <label for="description" class="form-label">Description</label>
|
|---|
| 30 | <textarea class="form-control" id="description" name="description" rows="3" required
|
|---|
| 31 | th:text="${plan != null} ? ${plan.description} : ''"></textarea>
|
|---|
| 32 | </div>
|
|---|
| 33 |
|
|---|
| 34 | <button type="submit" class="btn btn-success" th:text="${plan != null} ? 'Update' : 'Add'">Add</button>
|
|---|
| 35 | <a href="/subscription-plans" class="btn btn-secondary">Cancel</a>
|
|---|
| 36 | </form>
|
|---|
| 37 | </div>
|
|---|
| 38 |
|
|---|
| 39 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|---|
| 40 | </body>
|
|---|
| 41 | </html>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.