responsive layout

This commit is contained in:
Karl Hudgell 2024-11-02 20:15:23 +00:00
parent e2858a804b
commit cde856634e

View File

@ -1,4 +1,3 @@
<!-- templates/user_accounts.html -->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -7,6 +6,8 @@
<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="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css"> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.dataTables.min.css">
<script src="https://cdn.datatables.net/responsive/2.2.9/js/dataTables.responsive.min.js"></script>
<style> <style>
/* Blur effect for the password field */ /* Blur effect for the password field */
.password-blur { .password-blur {
@ -17,7 +18,7 @@
</head> </head>
<body> <body>
<!-- Navbar (same as index.html) --> <!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">KTVManager</a> <a class="navbar-brand" href="#">KTVManager</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
@ -29,10 +30,10 @@
<a class="nav-link" href="/">Home</a> <a class="nav-link" href="/">Home</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/accounts">Accounts</a> <!-- Link to the accounts page --> <a class="nav-link" href="/accounts">Accounts</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/urls">URLs</a> <!-- Link to the URLs page --> <a class="nav-link" href="/urls">URLs</a>
</li> </li>
</ul> </ul>
</div> </div>
@ -41,6 +42,7 @@
<!-- Main Content --> <!-- Main Content -->
<div class="container mt-5"> <div class="container mt-5">
<h2>{{ username }}'s Accounts</h2> <h2>{{ username }}'s Accounts</h2>
<div class="table-responsive">
<table class="table table-striped" id="accountsTable"> <table class="table table-striped" id="accountsTable">
<thead> <thead>
<tr> <tr>
@ -68,6 +70,7 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
<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>&copy; 2024 KTVManager | All rights reserved</p> <p>&copy; 2024 KTVManager | All rights reserved</p>
@ -88,6 +91,7 @@
const table = $('#accountsTable').DataTable({ const table = $('#accountsTable').DataTable({
"searching": true, "searching": true,
"ordering": true, "ordering": true,
"responsive": true, // Enable responsive layout
"columnDefs": [ "columnDefs": [
{ "type": "date-eu", "targets": 4 } // Column index for Expiry Date { "type": "date-eu", "targets": 4 } // Column index for Expiry Date
] ]