-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.full-height { | ||
height: auto; | ||
} | ||
|
||
@media (min-width: 576px) { | ||
.full-height { | ||
min-height: 100vh; | ||
height: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,25 +15,26 @@ | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js"></script> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.13.7/datatables.min.css"/> | ||
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.13.7/datatables.min.js"></script> | ||
<link rel="stylesheet" href="static/css/styles.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="container-fluid overflow-hidden"> | ||
<div class="row vh-100 overflow-auto"> | ||
<div class="col-12 col-sm-3 col-xl-2 px-sm-2 px-0 bg-dark d-flex sticky-top"> | ||
<div class="d-flex flex-sm-column flex-row flex-grow-1 align-items-center align-items-sm-start px-3 pt-2 text-white"> | ||
<div class="row full-height overflow-auto"> | ||
<div class="col-md-3 col-sm-4 col-xs-12 bg-dark full-height"> | ||
<div class="d-flex flex-sm-column flex-xs-row flex-row align-items-center align-items-sm-start px-3 pt-2 text-white flex-grow-0 sm-vh-100 full-height"> | ||
<p class="fs-5 d-flex align-items-center pb-sm-3 mb-md-0 me-md-auto text-white text-decoration-none">PRISMO Access System</p> | ||
<ul class="nav nav-pills flex-sm-column flex-row flex-nowrap flex-shrink-1 flex-sm-grow-0 flex-grow-1 mb-sm-auto mb-0 justify-content-center align-items-center align-items-sm-start" id="menu"> | ||
<ul class="nav nav-pills flex-sm-column flex-row flex-nowrap flex-shrink-1 flex-sm-grow-0 flex-grow-0 mb-sm-auto mb-0 justify-content-center align-items-center align-items-sm-start" id="menu"> | ||
<li class="nav-item"> | ||
<a href="/users" class="nav-link px-sm-0 px-2"> | ||
<a href="/login" class="nav-link px-sm-0 px-2"> | ||
<i class="fs-5 bi-people"></i><span class="ms-1 d-none d-sm-inline">Users</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/devices" class="nav-link px-sm-0 px-2"> | ||
<a href="/devices" data-bs-toggle="collapse" class="nav-link px-sm-0 px-2"> | ||
<i class="fs-5 bi-phone-vibrate-fill"></i><span class="ms-1 d-none d-sm-inline">Devices</span> </a> | ||
</li> | ||
<li> | ||
|
@@ -45,7 +46,7 @@ | |
<i class="fs-5 bi-gear-wide-connected"></i><span class="ms-1 d-none d-sm-inline">Settings</span> </a> | ||
</li> | ||
</ul> | ||
<div class="dropdown py-sm-4 mt-sm-auto ms-auto ms-sm-0 flex-shrink-1"> | ||
<div class="dropdown py-sm-4 mt-sm-auto ms-auto ms-sm-0"> | ||
<a href="#" class="d-flex align-items-center text-white text-decoration-none dropdown-toggle" id="dropdownUser1" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<i class="bi bi-person-circle" class="rounded-circle"></i> | ||
<span class="d-none d-sm-inline mx-1">{{ current_user }}</span> | ||
|
@@ -56,12 +57,12 @@ | |
</div> | ||
</div> | ||
</div> | ||
<div class="col d-flex flex-column h-sm-100"> | ||
<main class="row overflow-auto"> | ||
<div class="col pt-4"> | ||
<div class="col-md-9 col-sm-8 col-xs-12 vh-100"> | ||
<div class="col d-flex flex-column h-sm-100"> | ||
<div class="col"> | ||
{% block content %}{% endblock %} | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters