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
24f5c3bf
Commit
24f5c3bf
authored
Jan 27, 2025
by
Sneha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: enable className in download modals
parent
05a44273
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
18 deletions
+33
-18
lamartinDashboard/js/dashboard.js
lamartinDashboard/js/dashboard.js
+33
-18
No files found.
lamartinDashboard/js/dashboard.js
View file @
24f5c3bf
...
...
@@ -273,12 +273,13 @@ $(document).ready(function () {
$
(
'
#counsellorScoring
'
).
click
(
function
()
{
let
schoolName
=
$
(
'
#schoolFilterReport
'
).
val
();
let
interactionDate
=
$
(
'
#dateFilterReport
'
).
val
();
let
className
=
$
(
'
#classFilterReport
'
).
val
();
if
(
!
schoolName
||
!
interactionDate
)
{
if
(
!
schoolName
||
!
interactionDate
||
!
className
)
{
$
(
'
#reportModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select school and date to download counsellor scoring sheet.
'
'
Please select school
,class
and date to download counsellor scoring sheet.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
...
...
@@ -289,7 +290,7 @@ $(document).ready(function () {
BASE_URL_LAMARTIN
+
`/admission-form/download-counsellor-scoring-template?apikey=
${
loginData
.
apiKey
}
&schoolName=
${
schoolName
}
&interactionDate=
${
interactionDate
}
`
,
}
&schoolName=
${
schoolName
}
&
className=
${
className
}
&
interactionDate=
${
interactionDate
}
`
,
'
_blank
'
)
.
focus
();
...
...
@@ -298,12 +299,13 @@ $(document).ready(function () {
$
(
'
#interactionScoring
'
).
click
(
function
()
{
let
schoolName
=
$
(
'
#schoolFilterReport
'
).
val
();
let
interactionDate
=
$
(
'
#dateFilterReport
'
).
val
();
let
className
=
$
(
'
#classFilterReport
'
).
val
();
if
(
!
schoolName
||
!
interactionDate
)
{
if
(
!
schoolName
||
!
interactionDate
||
!
className
)
{
$
(
'
#reportModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select school
and date to download counsellor
scoring sheet.
'
'
Please select school
, class and date to download interaction
scoring sheet.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
...
...
@@ -314,7 +316,7 @@ $(document).ready(function () {
BASE_URL_LAMARTIN
+
`/admission-form/download-interaction-scoring-template?apikey=
${
loginData
.
apiKey
}
&schoolName=
${
schoolName
}
&interactionDate=
${
interactionDate
}
`
,
}
&schoolName=
${
schoolName
}
&
className=
${
className
}
&
interactionDate=
${
interactionDate
}
`
,
'
_blank
'
)
.
focus
();
...
...
@@ -323,12 +325,13 @@ $(document).ready(function () {
$
(
'
#download-interaction-sheet-btn
'
).
click
(
function
()
{
let
schoolName
=
$
(
'
#schoolFilterReport
'
).
val
();
let
interactionDate
=
$
(
'
#dateFilterReport
'
).
val
();
let
className
=
$
(
'
#classFilterReport
'
).
val
();
if
(
!
schoolName
||
!
interactionDate
)
{
if
(
!
schoolName
||
!
interactionDate
||
!
className
)
{
$
(
'
#reportModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select school
and date to download counsellor
scoring sheet.
'
'
Please select school
,class and date to download interaction
scoring sheet.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
...
...
@@ -341,7 +344,10 @@ $(document).ready(function () {
loginData
.
apiKey
}
&schoolName=
${
schoolName
}
&interactionDate=
${
}
&className=
${
className
}
&interactionDate=
${
interactionDate
}
`
,
'
_blank
'
...
...
@@ -352,12 +358,13 @@ $(document).ready(function () {
$
(
'
#download-interaction-excel-btn
'
).
click
(
function
()
{
let
schoolName
=
$
(
'
#schoolFilterReport
'
).
val
();
let
interactionDate
=
$
(
'
#dateFilterReport
'
).
val
();
let
className
=
$
(
'
#classFilterReport
'
).
val
();
if
(
!
schoolName
||
!
interactionDate
)
{
if
(
!
schoolName
||
!
interactionDate
||
!
className
)
{
$
(
'
#reportModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select school
and date to download counsellor
scoring sheet.
'
'
Please select school
,class and date to download interaction
scoring sheet.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
...
...
@@ -370,7 +377,9 @@ $(document).ready(function () {
loginData
.
apiKey
}
&schoolName=
${
schoolName
}
&interactionDate=
${
}
&className=
${
className
}
&interactionDate=
${
interactionDate
}
`
,
'
_blank
'
...
...
@@ -382,12 +391,13 @@ $(document).ready(function () {
$
(
'
#download-admission-excel-btn
'
).
click
(
function
()
{
let
schoolName
=
$
(
'
#admissionSchoolFilterReport
'
).
val
();
let
admissionDate
=
$
(
'
#admissionDateFilterReport
'
).
val
();
let
className
=
$
(
'
#classFilterReport
'
).
val
();
if
(
!
schoolName
||
!
admissionDate
)
{
if
(
!
schoolName
||
!
admissionDate
||
!
className
)
{
$
(
'
#reportModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select school and date to download counsellor scoring sheet.
'
'
Please select school
,class
and date to download counsellor scoring sheet.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
...
...
@@ -400,7 +410,9 @@ $(document).ready(function () {
loginData
.
apiKey
}
&schoolName=
${
schoolName
}
&admissionDate=
${
}
&className=
${
className
}
&admissionDate=
${
admissionDate
}
`
,
'
_blank
'
...
...
@@ -416,12 +428,13 @@ $(document).ready(function () {
$
(
'
#downloadAdmissionFormList
'
).
click
(
function
()
{
let
schoolName
=
$
(
'
#admissionSchoolFilterReport
'
).
val
();
let
admissionDate
=
$
(
'
#admissionDateFilterReport
'
).
val
();
let
className
=
$
(
'
#classFilterReport
'
).
val
();
if
(
!
schoolName
||
!
admissionDate
)
{
if
(
!
schoolName
||
!
admissionDate
||
!
className
)
{
$
(
'
#admissionReportModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select school and date to proceed.
'
'
Please select school
,class
and date to proceed.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
...
...
@@ -434,7 +447,9 @@ $(document).ready(function () {
loginData
.
apiKey
}
&schoolName=
${
schoolName
}
&admissionDate=
${
}
&className=
${
className
}
&admissionDate=
${
admissionDate
}
`
,
'
_blank
'
...
...
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