|
Last change
on this file since 5ea00d7 was 5ea00d7, checked in by Malek Alavi <malekalavi7@…>, 5 days ago |
|
Initial project upload
|
-
Property mode
set to
100644
|
|
File size:
1.8 KB
|
| Line | |
|---|
| 1 | <!DOCTYPE html>
|
|---|
| 2 | <html xmlns:th="http://www.thymeleaf.org">
|
|---|
| 3 | <head>
|
|---|
| 4 | <meta charset="UTF-8">
|
|---|
| 5 | <title>Subscription Plans</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 | <div class="d-flex justify-content-between align-items-center mb-3">
|
|---|
| 11 | <h2>Subscription Plans</h2>
|
|---|
| 12 | <a href="/add/subscription-plan" class="btn btn-primary">Add New Plan</a>
|
|---|
| 13 | </div>
|
|---|
| 14 |
|
|---|
| 15 | <div class="mb-3">
|
|---|
| 16 | <a href="/" class="btn btn-secondary">← Back to Home</a>
|
|---|
| 17 | </div>
|
|---|
| 18 |
|
|---|
| 19 | <table class="table table-striped">
|
|---|
| 20 | <thead class="table-dark">
|
|---|
| 21 | <tr>
|
|---|
| 22 | <th>Name</th>
|
|---|
| 23 | <th>Price</th>
|
|---|
| 24 | <th>Duration (months)</th>
|
|---|
| 25 | <th>Description</th>
|
|---|
| 26 | <th>Actions</th>
|
|---|
| 27 | </tr>
|
|---|
| 28 | </thead>
|
|---|
| 29 | <tbody>
|
|---|
| 30 | <tr th:each="plan : ${plans}">
|
|---|
| 31 | <td th:text="${plan.name}">Plan Name</td>
|
|---|
| 32 | <td th:text="${plan.price}">100.00</td>
|
|---|
| 33 | <td th:text="${plan.durationMonths}">12</td>
|
|---|
| 34 | <td th:text="${plan.description}">Description</td>
|
|---|
| 35 | <td>
|
|---|
| 36 | <a th:href="@{/edit/subscription-plan/{id}(id=${plan.planId})}" class="btn btn-warning btn-sm">Edit</a>
|
|---|
| 37 |
|
|---|
| 38 | <form th:action="@{/delete/subscription-plan/{id}(id=${plan.planId})}" method="post"
|
|---|
| 39 | style="display:inline-block;"
|
|---|
| 40 | onsubmit="return confirm('Are you sure you want to delete this plan?');">
|
|---|
| 41 | <button type="submit" class="btn btn-danger btn-sm">Delete</button>
|
|---|
| 42 | </form>
|
|---|
| 43 | </td>
|
|---|
| 44 | </tr>
|
|---|
| 45 | </tbody>
|
|---|
| 46 | </table>
|
|---|
| 47 | </div>
|
|---|
| 48 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|---|
| 49 | </body>
|
|---|
| 50 | </html>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.