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
Deep Dey
LaMartin-Webomagic
Commits
1d7f010c
Commit
1d7f010c
authored
Sep 25, 2024
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add download master admission excel button
parent
eba729f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
lamartinDashboard/dashboard.html
lamartinDashboard/dashboard.html
+1
-0
lamartinDashboard/js/dashboard.js
lamartinDashboard/js/dashboard.js
+31
-0
No files found.
lamartinDashboard/dashboard.html
View file @
1d7f010c
...
...
@@ -240,6 +240,7 @@
</div>
<div
class=
"book-appointment-box2"
>
<button
id=
"downloadAdmissionFormList"
class=
"btn btn-primary btn-sm"
>
Admission Form PDF
</button>
<button
id=
"download-admission-excel-btn"
class=
"btn btn-success btn-sm"
>
Download Admssion Excel
</button>
</div>
</div>
</div>
...
...
lamartinDashboard/js/dashboard.js
View file @
1d7f010c
...
...
@@ -376,6 +376,37 @@ $(document).ready(function () {
.
focus
();
});
$
(
'
#download-admission-excel-btn
'
).
click
(
function
()
{
let
schoolName
=
$
(
'
#admissionSchoolFilterReport
'
).
val
();
let
admissionDate
=
$
(
'
#admissionDateFilterReport
'
).
val
();
if
(
!
schoolName
||
!
admissionDate
)
{
$
(
'
#reportModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select school and date to download counsellor scoring sheet.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
}
window
.
open
(
BASE_URL_LAMARTIN
+
`/admission-form/download-master-admission-excel?apikey=
${
loginData
.
apiKey
}
&schoolName=
${
schoolName
}
&admissionDate=
${
admissionDate
}
`
,
'
_blank
'
)
.
focus
();
});
$
(
'
#admission-popup-btn
'
).
click
(
function
()
{
$
(
'
#admissionReportModal
'
).
modal
(
'
show
'
);
});
...
...
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