Spaces:
Sleeping
Sleeping
Upload dashboard.html
Browse files- dashboard.html +120 -0
dashboard.html
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Dashboard</title>
|
| 6 |
+
<!-- AdminLTE CSS -->
|
| 7 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/3.1.0/css/adminlte.min.css">
|
| 8 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" />
|
| 10 |
+
<style>
|
| 11 |
+
html, body {
|
| 12 |
+
height: 100%;
|
| 13 |
+
margin: 0;
|
| 14 |
+
display: flex;
|
| 15 |
+
flex-direction: column;
|
| 16 |
+
}
|
| 17 |
+
.wrapper {
|
| 18 |
+
flex: 1; /* This allows the content to grow and push the footer down */
|
| 19 |
+
padding: 10px;
|
| 20 |
+
margin-left: -35px;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
</style>
|
| 24 |
+
</head>
|
| 25 |
+
<body>
|
| 26 |
+
{% include 'sidepane.html' %}
|
| 27 |
+
|
| 28 |
+
<div class="wrapper">
|
| 29 |
+
<!-- Main content
|
| 30 |
+
<h1>Welcome,tothe RedMindGPT {{ username }}!</h1>
|
| 31 |
+
<h1>Your role in redmindgptis: {{ role }}</h1> -->
|
| 32 |
+
<section class="main-header" style="border-bottom: none;border-top: none;">
|
| 33 |
+
<div class="container-fluid">
|
| 34 |
+
<div class="row">
|
| 35 |
+
<div class="col-lg-4 col-6">
|
| 36 |
+
<div class="small-box bg-info">
|
| 37 |
+
<div class="inner margin-left:10px;">
|
| 38 |
+
<h3>4</h3>
|
| 39 |
+
<h4>KnowledgeBase</h4>
|
| 40 |
+
</div>
|
| 41 |
+
<div class="icon">
|
| 42 |
+
<i class="ion ion-bag"></i>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<div class="col-lg-4 col-6">
|
| 48 |
+
<div class="small-box bg-success">
|
| 49 |
+
<div class="inner">
|
| 50 |
+
<h3>1</h3>
|
| 51 |
+
<h4>Data connectors</h4>
|
| 52 |
+
</div>
|
| 53 |
+
<div class="icon">
|
| 54 |
+
<i class="ion ion-stats-bars"></i>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div class="col-lg-4 col-6">
|
| 60 |
+
<div class="small-box bg-warning">
|
| 61 |
+
<div class="inner">
|
| 62 |
+
<h3>4</h3>
|
| 63 |
+
<h4>API Connectors</h4>
|
| 64 |
+
</div>
|
| 65 |
+
<div class="icon">
|
| 66 |
+
<i class="ion ion-person-add"></i>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div class="col-lg-4 col-6">
|
| 72 |
+
<div class="small-box bg-warning">
|
| 73 |
+
<div class="inner">
|
| 74 |
+
<h3>5</h3>
|
| 75 |
+
<h4>Prompt_Templates</h4>
|
| 76 |
+
</div>
|
| 77 |
+
<div class="icon">
|
| 78 |
+
<i class="ion ion-person-add"></i>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
</section>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<input type="hidden" id="userRole" name="userRole" value={{ role }}>
|
| 88 |
+
|
| 89 |
+
<footer>
|
| 90 |
+
{% include 'footer.html' %}
|
| 91 |
+
</footer>
|
| 92 |
+
|
| 93 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/adminlte.min.js"></script>
|
| 94 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
| 95 |
+
<script>
|
| 96 |
+
window.addEventListener('pageshow', function(event) {
|
| 97 |
+
if (event.persisted || (window.performance && window.performance.navigation.type === 2)) {
|
| 98 |
+
window.location.reload();
|
| 99 |
+
}
|
| 100 |
+
});
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 105 |
+
var role1 = document.getElementById("userRole").value;
|
| 106 |
+
if (!role1) {
|
| 107 |
+
var roleFromInput = sessionStorage.getItem('userRole');
|
| 108 |
+
sessionStorage.setItem('userRole', roleFromInput);
|
| 109 |
+
console.log("Role set in sessionStorage:", roleFromInput);
|
| 110 |
+
} else {
|
| 111 |
+
sessionStorage.setItem('userRole', role1);
|
| 112 |
+
console.log("Retrieved user role from input:", role1); // Debugging
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
});
|
| 116 |
+
</script>
|
| 117 |
+
</body>
|
| 118 |
+
|
| 119 |
+
</body>
|
| 120 |
+
</html>
|