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
5108c51e
Commit
5108c51e
authored
Jul 09, 2024
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add admission form count in dashboard
parent
53430e35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
lamartinDashboard/css/dashboard.css
lamartinDashboard/css/dashboard.css
+13
-1
lamartinDashboard/dashboard.html
lamartinDashboard/dashboard.html
+4
-0
lamartinDashboard/js/dashboard.js
lamartinDashboard/js/dashboard.js
+25
-0
No files found.
lamartinDashboard/css/dashboard.css
View file @
5108c51e
...
...
@@ -5,7 +5,8 @@ body {
font-size
:
13px
;
}
.btn
,
.form-control
{
.btn
,
.form-control
{
font-size
:
13px
;
}
...
...
@@ -86,4 +87,15 @@ body {
.navbar-filter
input
{
width
:
100%
;
margin-bottom
:
10px
;
}
.record-data
{
display
:
flex
;
justify-content
:
space-between
;
/* align-items: center; */
font-weight
:
bold
;
font-size
:
15px
;
padding-bottom
:
10px
;
/* padding-left: 10px; */
/* padding-right: 10px; */
}
\ No newline at end of file
lamartinDashboard/dashboard.html
View file @
5108c51e
...
...
@@ -59,6 +59,10 @@
</div>
</div>
<div
class=
"record-data"
>
<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=
"details-container"
style=
"height: 350px;"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-bordered"
>
...
...
lamartinDashboard/js/dashboard.js
View file @
5108c51e
...
...
@@ -7,8 +7,33 @@ $(document).ready(function () {
}
// initially display all admission data
displayFormCount
();
getAdmissionData
(
null
,
null
,
null
,
null
,
null
);
function
displayFormCount
()
{
$
.
ajax
({
url
:
BASE_URL_LAMARTIN
+
'
/admission-form/count
'
,
type
:
'
GET
'
,
headers
:
{
'
accept
'
:
'
application/json
'
,
apikey
:
loginData
.
apiKey
},
success
:
function
(
response
)
{
$
(
'
#totalRecordsLMG
'
).
html
(
response
.
data
.
lmgcount
);
$
(
'
#totalRecordsLMB
'
).
html
(
response
.
data
.
lmbcount
);
},
error
:
function
(
error
)
{
console
.
error
(
'
Error:
'
,
error
);
// Handle error messages
if
(
error
.
responseJSON
&&
error
.
responseJSON
.
message
)
{
alert
(
'
Request failed:
'
+
error
.
responseJSON
.
message
);
}
else
{
alert
(
'
An unexpected error occurred. Please try again.
'
);
}
}
});
}
function
displayFilteredStudents
()
{
var
filteredData
=
studentData
;
...
...
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