Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LaMartin-Webomagic
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sneha
LaMartin-Webomagic
Commits
b17f3ac3
Commit
b17f3ac3
authored
Aug 28, 2024
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: implement admin admission feature
parent
bc107254
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
146 additions
and
0 deletions
+146
-0
lamartinDashboard/admission_portal.html
lamartinDashboard/admission_portal.html
+1
-0
lamartinDashboard/dashboard.html
lamartinDashboard/dashboard.html
+5
-0
lamartinDashboard/js/admission_portal.js
lamartinDashboard/js/admission_portal.js
+5
-0
lamartinDashboard/success.html
lamartinDashboard/success.html
+135
-0
No files found.
lamartinDashboard/admission_portal.html
View file @
b17f3ac3
...
...
@@ -22,6 +22,7 @@
<div
class=
"la-header-title"
>
SUBMISSION OF APPLICATION FOR ADMISSION
</div>
<div
class=
"la-header-sub-title"
>
Please
<span>
REVIEW
</span>
the form carefully before you submit your
application for admission
</div>
<div
class=
"la-header-sub-title font-weight-bold text-danger"
>
(ADMIN PORTAL)
</div>
</div>
<div
class=
"la-form-container"
>
...
...
lamartinDashboard/dashboard.html
View file @
b17f3ac3
...
...
@@ -67,6 +67,11 @@
<div>
Total Records for LMB:
<span
id=
"totalRecordsLMB"
>
0
</span></div>
<div>
Total Records for LMG:
<span
id=
"totalRecordsLMG"
>
0
</span></div>
</div>
<div
class=
"d-flex justify-content-end mb-3"
>
<a
class=
"btn btn-primary btn-sm"
href=
"./admission_portal.html"
>
Add new Record
</a>
</div>
<div
class=
"details-container"
style=
"height: 350px;"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-bordered"
>
...
...
lamartinDashboard/js/admission_portal.js
View file @
b17f3ac3
$
(
document
).
ready
(
function
()
{
var
loginData
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'
loginData
'
));
if
(
!
loginData
||
!
loginData
.
apiKey
)
{
window
.
location
.
href
=
'
index.html
'
;
}
$
(
'
#staffDepartmentContainer
'
).
hide
();
$
(
'
#staffCategoryContainer
'
).
hide
();
$
(
'
#exStudentInfoContainer
'
).
hide
();
...
...
lamartinDashboard/success.html
0 → 100644
View file @
b17f3ac3
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Proof of Delivery
</title>
<style>
body
{
font-family
:
Arial
,
sans-serif
;
margin
:
0
;
padding
:
0
;
}
.container
{
max-width
:
800px
;
margin
:
50px
auto
;
padding
:
20px
;
border-radius
:
10px
;
}
.header
{
text-align
:
center
;
}
.header
h1
{
margin-bottom
:
5px
;
}
.proof-of-delivery
{
text-align
:
center
;
margin
:
20px
0
;
padding
:
10px
;
background-color
:
#d9edf7
;
color
:
#31708f
;
border
:
1px
solid
#bce8f1
;
border-radius
:
5px
;
}
.email
{
color
:
green
;
}
.details
{
margin
:
20px
0
;
}
.details
p
{
margin
:
5px
0
;
}
.details
span
{
font-weight
:
bold
;
}
.footer
{
margin
:
20px
0
;
text-align
:
center
;
font-size
:
12px
;
color
:
#555
;
}
.social-links
{
text-align
:
center
;
margin
:
20px
0
;
}
.social-links
a
{
margin
:
0
10px
;
text-decoration
:
none
;
color
:
#007bff
;
}
.social-links
a
:hover
{
text-decoration
:
underline
;
}
</style>
<script
src=
"https://code.jquery.com/jquery-3.6.0.min.js"
></script>
</head>
<body>
<div
class=
"container"
>
<div
class=
"header"
>
<img
src=
"https://i0.wp.com/lamartiniere.co/wp-content/uploads/2020/10/cropped-lmbb-logo-site-logo.png?w=240&ssl=1"
alt=
"Proof of Delivery"
height=
"80px"
>
<h2
id=
"school"
></h2>
</div>
<div
class=
"proof-of-delivery"
>
<p>
Thank you. Your application has been received.
</p>
</div>
<div
class=
"details"
id=
"details"
></div>
<div
class=
"footer"
>
<p>
Please quote the reference
<span
class=
"email"
></span>
for further correspondence
until such time the admission procedure is under way.
</p>
</div>
</div>
<script>
$
(
document
).
ready
(
function
()
{
var
loginData
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'
loginData
'
));
if
(
!
loginData
||
!
loginData
.
apiKey
)
{
window
.
location
.
href
=
'
index.html
'
;
}
// Retrieve the JSON string from session storage
var
jsonData
=
sessionStorage
.
getItem
(
'
userData
'
);
// Parse the JSON string back to an object
if
(
jsonData
)
{
var
userObject
=
JSON
.
parse
(
jsonData
);
// Display the data
var
userDataHtml
=
`
<p><span>CATEGORY:</span>
${
userObject
.
category
}
</p>
<p><span>CLASS:</span>
${
userObject
.
admissionClass
}
</p>
<p><span>NAME OF CANDIDATE:</span>
${
userObject
.
fullName
}
</p>
<p><span>DATE OF BIRTH:</span>
${
userObject
.
dateOfBirth
}
</p>
<p><span>FATHER'S NAME:</span>
${
userObject
.
fatherName
}
</p>
<p><span>MOTHER'S NAME:</span>
${
userObject
.
motherName
}
</p>
`
;
$
(
'
#details
'
).
html
(
userDataHtml
);
$
(
'
#school
'
).
html
(
userObject
.
school
);
$
(
'
.email
'
).
html
(
userObject
.
fatherEmail
);
}
else
{
$
(
'
#details
'
).
html
(
'
<p>No user data found.</p>
'
);
}
});
</script>
</body>
</html>
\ No newline at end of file
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