|
@@ -1,4 +1,3 @@
|
|
-<!-- templates/index.html -->
|
|
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<html lang="en">
|
|
<head>
|
|
<head>
|
|
@@ -6,6 +5,7 @@
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>KTVManager</title>
|
|
<title>KTVManager</title>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
|
|
+ <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}" />
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
|
|
|
|
@@ -30,60 +30,60 @@
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</nav>
|
|
|
|
|
|
-<!-- Main Content -->
|
|
|
|
-<div class="container mt-5">
|
|
|
|
- <h1>Welcome {{ username }}!</h1>
|
|
|
|
- <br>
|
|
|
|
- <h2>You have {{ accounts }} active accounts</h2>
|
|
|
|
- <br>
|
|
|
|
-
|
|
|
|
- {% if current_month_accounts %}
|
|
|
|
- <h3>Accounts Expiring This Month</h3>
|
|
|
|
- <table class="table table-bordered table-striped">
|
|
|
|
- <thead class="thead-dark">
|
|
|
|
- <tr>
|
|
|
|
- <th>Stream Name</th>
|
|
|
|
- <th>Username</th>
|
|
|
|
- <th>Expiry Date</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- {% for account in current_month_accounts %}
|
|
|
|
|
|
+ <!-- Main Content -->
|
|
|
|
+ <main class="container mt-5">
|
|
|
|
+ <h1>Welcome {{ username }}!</h1>
|
|
|
|
+ <br>
|
|
|
|
+ <h2>You have {{ accounts }} active accounts</h2>
|
|
|
|
+ <br>
|
|
|
|
+
|
|
|
|
+ {% if current_month_accounts %}
|
|
|
|
+ <h3>Accounts Expiring This Month</h3>
|
|
|
|
+ <table class="table table-bordered table-striped">
|
|
|
|
+ <thead class="thead-dark">
|
|
<tr>
|
|
<tr>
|
|
- <td>{{ account.stream }}</td>
|
|
|
|
- <td>{{ account.username }}</td>
|
|
|
|
- <td>{{ account.expiaryDate_rendered }}</td>
|
|
|
|
|
|
+ <th>Stream Name</th>
|
|
|
|
+ <th>Username</th>
|
|
|
|
+ <th>Expiry Date</th>
|
|
</tr>
|
|
</tr>
|
|
- {% endfor %}
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- {% endif %}
|
|
|
|
- {% if expired_accounts %}
|
|
|
|
- <h3>Expired Accounts</h3>
|
|
|
|
- <table class="table table-bordered table-striped">
|
|
|
|
- <thead class="thead-dark">
|
|
|
|
- <tr>
|
|
|
|
- <th>Stream Name</th>
|
|
|
|
- <th>Username</th>
|
|
|
|
- <th>Expiry Date</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- {% for account in expired_accounts %}
|
|
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ {% for account in current_month_accounts %}
|
|
|
|
+ <tr>
|
|
|
|
+ <td>{{ account.stream }}</td>
|
|
|
|
+ <td>{{ account.username }}</td>
|
|
|
|
+ <td>{{ account.expiaryDate_rendered }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ {% endif %}
|
|
|
|
+ {% if expired_accounts %}
|
|
|
|
+ <h3>Expired Accounts</h3>
|
|
|
|
+ <table class="table table-bordered table-striped">
|
|
|
|
+ <thead class="thead-dark">
|
|
<tr>
|
|
<tr>
|
|
- <td>{{ account.stream }}</td>
|
|
|
|
- <td>{{ account.username }}</td>
|
|
|
|
- <td>{{ account.expiaryDate_rendered }}</td>
|
|
|
|
|
|
+ <th>Stream Name</th>
|
|
|
|
+ <th>Username</th>
|
|
|
|
+ <th>Expiry Date</th>
|
|
</tr>
|
|
</tr>
|
|
- {% endfor %}
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- {% endif %}
|
|
|
|
-</div>
|
|
|
|
-
|
|
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ {% for account in expired_accounts %}
|
|
|
|
+ <tr>
|
|
|
|
+ <td>{{ account.stream }}</td>
|
|
|
|
+ <td>{{ account.username }}</td>
|
|
|
|
+ <td>{{ account.expiaryDate_rendered }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ {% endif %}
|
|
|
|
+ </main>
|
|
|
|
|
|
|
|
+ <!-- Footer -->
|
|
<footer class="bg-dark text-white text-center py-3 mt-5">
|
|
<footer class="bg-dark text-white text-center py-3 mt-5">
|
|
- <p>© 2024 KTV Manager | All rights reserved</p>
|
|
|
|
|
|
+ <p></p>
|
|
</footer>
|
|
</footer>
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|