Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-362
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-362
2023-362
Commits
d4fa74ef
Commit
d4fa74ef
authored
Oct 30, 2023
by
Thathsarani R.P.H.S.R
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create table.html
parent
279cf756
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
0 deletions
+87
-0
IT20201364/templates/table.html
IT20201364/templates/table.html
+87
-0
No files found.
IT20201364/templates/table.html
0 → 100644
View file @
d4fa74ef
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
zenBot Conversation
</title>
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9"
crossorigin=
"anonymous"
>
<link
rel=
"stylesheet"
href=
"../static/style.css"
>
<script
src=
"../static/script.js"
></script>
<script
src=
"../static/script2.js"
></script>
<!------ display shortcut icon ------>
<link
rel=
"shortcut icon"
href=
"../static/logo.png"
>
<style>
.navbar
{
background-color
:
#0b0b45
;
}
.container
{
border-radius
:
10px
;
box-shadow
:
0px
0px
20px
rgba
(
0
,
0
,
0
,
0.1
);
}
.card
{
text-align
:
center
;
}
/* Define styles for text color */
.text-danger
{
color
:
red
;
}
.text-warning
{
color
:
yellow
;
}
</style>
</head>
<body
style=
"background-color: whitesmoke;"
>
<script
src=
"https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"
integrity=
"sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin=
"anonymous"
></script>
<nav
class=
"navbar"
>
<div
class=
"container-fluid"
>
<img
src=
"../static/logo.svg"
alt=
""
width=
"200"
height=
"50"
style=
"position: relative; left: 45%;"
>
<form
class=
"d-flex"
>
<input
class=
"form-control me-2"
type=
"search"
placeholder=
"Search"
aria-label=
"Search"
hidden
>
</form>
</div>
</nav>
<center>
<div
class=
"container-mt-5"
>
<br>
<br>
<!-- Button to toggle "Previous Records" visibility -->
<button
type=
"button"
class=
"toggle-button"
onclick=
"togglePreviousRecords()"
>
Toggle Previous stresses
</button>
<br>
<br>
<div
id=
"previous-records"
class=
"previous-stress-level"
>
<h3>
Stress Level Records
</h3>
<div
class=
"card-dev"
>
<div
class=
"row"
>
{% for stress_level in stress_levels %}
<div
class=
"col-md-4"
>
<div
class=
"card mb-3 pt-3 pb-4 bg-info text-dark border border-danger"
>
<p
class=
"fw-bold tex-dark"
>
{{ stress_level.user_id }}
</p>
<p>
{{ stress_level.login_time.strftime('%Y-%m-%d') }}
</p>
<p>
{{ stress_level.login_time.strftime('%H:%M:%S') }}
</p>
<!-- Conditional text color based on stress_level -->
<p
class=
"fw-bold"
style=
"color: {% if stress_level.stress_level == 'High Stress' %}red{% else %}black{% endif %}"
>
{{ stress_level.stress_level }}
</p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</center>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment