Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ShallowSink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
a272-jones
ShallowSink
Commits
8ee5fd7a
Commit
8ee5fd7a
authored
1 week ago
by
a272-jones
Browse files
Options
Downloads
Patches
Plain Diff
AI Engineer bug when viewing / deleting records fixed. new container!!!
parent
f7056eab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ActualProjectCode/DjangoProject/templates/modelForms/deleteRecord.html
+1
-1
1 addition, 1 deletion
...Code/DjangoProject/templates/modelForms/deleteRecord.html
ActualProjectCode/DjangoProject/templates/profile.html
+52
-192
52 additions, 192 deletions
ActualProjectCode/DjangoProject/templates/profile.html
with
53 additions
and
193 deletions
ActualProjectCode/DjangoProject/templates/modelForms/deleteRecord.html
+
1
−
1
View file @
8ee5fd7a
...
...
@@ -95,7 +95,7 @@
<form
method=
"post"
>
{% csrf_token %}
<button
type=
"submit"
class=
"btn btn-danger"
>
Yes, Delete
</button>
<a
href=
"{% url '
back_to_dashboard
' %}"
class=
"btn btn-secondary"
>
Cancel
</a>
<a
href=
"{% url '
profile
' %}"
class=
"btn btn-secondary"
>
Cancel
</a>
</form>
</div>
</body>
...
...
This diff is collapsed.
Click to expand it.
ActualProjectCode/DjangoProject/templates/profile.html
+
52
−
192
View file @
8ee5fd7a
<!DOCTYPE html>
<html>
<head>
<title>
ShallowSink - Dashboard
</title>
{% load static %}
<link
rel=
"stylesheet"
href=
"{% static 'styles.css' %}"
>
<style>
/* General Styles */
body
{
font-family
:
Arial
,
sans-serif
;
margin
:
0
;
padding
:
0
;
background-color
:
#f4f4f4
;
color
:
#333
;
}
header
{
background-color
:
#004085
;
color
:
#ffffff
;
padding
:
15px
0
;
text-align
:
center
;
}
header
h1
{
margin
:
0
;
}
/* Main Layout */
.container
{
display
:
flex
;
max-width
:
1200px
;
margin
:
20px
auto
;
background
:
#ffffff
;
border-radius
:
8px
;
box-shadow
:
0
4px
6px
rgba
(
0
,
0
,
0
,
0.1
);
}
/* Sidebar */
.sidebar
{
width
:
25%
;
background-color
:
#f8f9fa
;
padding
:
20px
;
border-right
:
1px
solid
#ddd
;
}
.sidebar
h3
{
color
:
#004085
;
margin-bottom
:
15px
;
}
.sidebar
.profile-section
{
margin-bottom
:
20px
;
font-size
:
14px
;
}
.sidebar
.profile-section
.info-label
{
font-weight
:
bold
;
color
:
#333
;
}
.sidebar
.profile-section
.info-value
{
color
:
#555
;
}
/* Content Area */
.content
{
width
:
75%
;
padding
:
30px
20px
;
}
.content
h1
{
font-size
:
24px
;
color
:
#004085
;
}
.content
h2
{
font-size
:
20px
;
color
:
#004085
;
margin-top
:
20px
;
margin-bottom
:
10px
;
}
.content
p
{
font-size
:
16px
;
line-height
:
1.5
;
margin-bottom
:
10px
;
}
.content
a
,
.content
h1
a
{
color
:
#004085
;
text-decoration
:
none
;
font-weight
:
bold
;
border
:
2px
solid
#004085
;
padding
:
8px
12px
;
border-radius
:
5px
;
display
:
inline-block
;
margin-top
:
10px
;
transition
:
background-color
0.3s
,
color
0.3s
;
}
.content
a
:hover
,
.content
h1
a
:hover
{
background-color
:
#004085
;
color
:
#ffffff
;
}
.content
hr
{
margin
:
30px
0
;
border
:
none
;
border-top
:
1px
solid
#ddd
;
}
.actions
.logout-btn
{
text-decoration
:
none
;
display
:
inline-block
;
font-weight
:
bold
;
padding
:
10px
16px
;
background-color
:
#dc3545
;
/* Red background for logout */
color
:
#ffffff
;
border
:
2px
solid
#dc3545
;
border-radius
:
4px
;
transition
:
background-color
0.3s
,
color
0.3s
;
margin-left
:
10px
;
}
.actions
.logout-btn
:hover
{
background-color
:
#c82333
;
color
:
#ffffff
;
}
</style>
<title>
Profile
</title>
</head>
<body>
<header>
<h1>
ShallowSink Dashboard
</h1>
</header>
<div
class=
"container"
>
<!-- Sidebar Section -->
<div
class=
"sidebar"
>
<h3>
Your Profile
</h3>
<div
class=
"profile-section"
>
<p><span
class=
"info-label"
>
Username:
</span>
<span
class=
"info-value"
>
{{ user.username }}
</span></p>
<p><span
class=
"info-label"
>
Email:
</span>
<span
class=
"info-value"
>
{{ user.email }}
</span></p>
<p><span
class=
"info-label"
>
Role:
</span>
<span
class=
"info-value"
>
{{ user.profile.role }}
</span></p>
<p><span
class=
"info-label"
>
Joined:
</span>
<span
class=
"info-value"
>
{{ user.date_joined|date:"F j, Y" }}
</span></p>
</div>
<div
class=
"actions"
>
<a
href=
"{% url 'logout' %}"
class=
"logout-btn"
>
Logout
</a>
</div>
</div>
<!-- Content Section -->
<div
class=
"content"
>
<!-- Display the dynamic dashboard content -->
<h1>
Welcome, {{ user.username }}!
</h1>
{% if user.profile.role == 'ai_engineer' %}
<!-- AI Engineer Dashboard -->
<h2>
AI Engineer Dashboard
</h2>
<p>
Access AI-related tools and data.
</p>
<hr>
<h1>
Upload Dataset
</h1>
<h2><a
href=
"{% url 'userUpload' %}"
>
Upload
</a></h2>
<h1>
Upload new ML Model
</h1>
<h2><a
href=
"{% url 'mlUpload' %}"
>
Upload
</a></h2>
<hr>
<h1>
Access ML Interactions
</h1>
<h2><a
href=
"{% url 'interactionView' %}"
>
All Interactions
</a></h2>
{% elif user.profile.role == 'finance' %}
<!-- Finance Dashboard -->
<h2>
Finance Dashboard
</h2>
<p>
View financial reports and tools.
</p>
<hr>
<h1><a
href=
"{% url 'genBillings' %}"
>
Generate Billings
</a></h1>
{% elif user.profile.role == 'admin' %}
<!-- Admin Dashboard -->
<h2>
Admin Page
</h2>
<p>
View all Activity
</p>
<p><a
href=
"{% url 'manageUsers' %}"
>
Manage Users
</a></p>
<p><a
href=
""
>
View all Activity
</a></p>
{% else %}
<!-- User Dashboard -->
<h2>
User Dashboard
</h2>
<p>
Manage your tasks and profile.
</p>
<hr>
<h2>
Upload Files to ML
</h2>
<h1><a
href=
"{% url 'userUpload' %}"
>
Upload Thing
</a></h1>
{% endif %}
</div>
</div>
<nav>
<ul>
<li><a
href=
"{% url 'logout' %}"
>
Logout
</a></li>
</ul>
</nav>
<h1>
Welcome, {{ user.username }}!
</h1>
{% if user.profile.role == 'ai_engineer' %}
<!-- AI Dashboard -->
<h2>
AI Engineer Dashboard
</h2>
<p>
Access AI-related tools and data.
</p>
<br>
<h1>
Upload new ML Model
</h1>
<h2><a
href=
"{% url 'mlUpload' %}"
>
Upload
</a></h2>
<br>
<h1>
Access ML Interactions
</h1>
<h2><a
href=
"{% url 'interactionView' %}"
>
All Interactions
</a></h2>
<!-- TO DO -->
{% elif user.profile.role == 'finance' %}
<!-- Finance Dashboard -->
<h2>
Finance Dashboard
</h2>
<p>
View financial reports and tools.
</p>
<br>
<h1><a
href=
"{% url 'genBillings' %}"
>
Generate Billings
</a></h1>
{% elif user.profile.role == 'admin' %}
<!-- Admin Dashboard -->
<h2>
Admin Page
</h2>
<p>
View all Activity
</p>
<p><a
href=
"{% url 'manageUsers' %}"
>
Manage Users
<a></a></p>
<p><a
href=
""
>
View all Activity
</a></p>
{% else %}
<!-- User Dashboard -->
<h2>
User Dashboard
</h2>
<p>
Manage your tasks and profile.
</p>
<br>
<h2>
Upload Files to ML
</h2>
<h1><a
href=
"{% url 'userUpload' %}"
>
Upload Thing
</a></h1>
{% endif %}
</body>
</html>
\ No newline at end of file
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment