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
a8e6b1e9
Commit
a8e6b1e9
authored
Jul 17, 2024
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add option to set admission interview
parent
dbd9d124
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
3 deletions
+115
-3
lamartinDashboard/dashboard.html
lamartinDashboard/dashboard.html
+36
-2
lamartinDashboard/js/dashboard.js
lamartinDashboard/js/dashboard.js
+79
-1
No files found.
lamartinDashboard/dashboard.html
View file @
a8e6b1e9
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<button
id=
"download-admission-data-btn"
class=
"btn btn-success btn-sm"
>
Download Admission Data
</button>
<button
id=
"download-admission-data-btn"
class=
"btn btn-success btn-sm"
>
Download Admission Data
</button>
</div>
</div>
<div>
<div>
<button
id=
"bookA
ppointment
Btn"
class=
"btn btn-primary btn-sm"
>
Schedule Admission
</button>
<button
id=
"bookA
dmission
Btn"
class=
"btn btn-primary btn-sm"
>
Schedule Admission
</button>
<button
id=
"bookAppointmentBtn"
class=
"btn btn-primary btn-sm"
>
Schedule Appointment
</button>
<button
id=
"bookAppointmentBtn"
class=
"btn btn-primary btn-sm"
>
Schedule Appointment
</button>
</div>
</div>
</div>
</div>
...
@@ -76,9 +76,9 @@
...
@@ -76,9 +76,9 @@
</th>
</th>
<th
scope=
"col"
>
Candidate Name
</th>
<th
scope=
"col"
>
Candidate Name
</th>
<th
scope=
"col"
>
Interaction Date/Time
</th>
<th
scope=
"col"
>
Interaction Date/Time
</th>
<th
scope=
"col"
>
Admission Date/Time
</th>
<th
scope=
"col"
>
Correspondence Email
</th>
<th
scope=
"col"
>
Correspondence Email
</th>
<th
scope=
"col"
>
Father Name
</th>
<th
scope=
"col"
>
Father Name
</th>
<th
scope=
"col"
>
Mother Name
</th>
</tr>
</tr>
</thead>
</thead>
<tbody
id=
"output"
></tbody>
<tbody
id=
"output"
></tbody>
...
@@ -123,6 +123,40 @@
...
@@ -123,6 +123,40 @@
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"admissionModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"admissionModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"admissionModalLabel"
>
Schedule Admission
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<form
id=
"admissionForm"
>
<input
type=
"hidden"
id=
"studentIdForAdmission"
/>
<div
class=
"form-group"
>
<label
for=
"modalAdmissionDate"
>
Date
</label>
<input
type=
"date"
class=
"form-control"
id=
"modalAdmissionDate"
required
/>
</div>
<div
class=
"form-group"
>
<label
for=
"modalAdmissionTime"
>
Time
</label>
<input
type=
"time"
class=
"form-control"
id=
"modalAdmissionTime"
required
/>
</div>
<div
class=
"modal-footer p-0 pt-2 border-top-0"
>
<button
type=
"submit"
class=
"btn btn-primary admission-submit-btn"
>
Schedule
</button>
<button
class=
"btn btn-primary admission-loading-btn"
type=
"button"
disabled
>
<span
class=
"spinner-border spinner-border-sm"
role=
"status"
aria-hidden=
"true"
></span>
Loading...
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"reportModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"reportModalLabel"
<div
class=
"modal fade"
id=
"reportModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"reportModalLabel"
aria-hidden=
"true"
>
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
...
...
lamartinDashboard/js/dashboard.js
View file @
a8e6b1e9
...
@@ -51,9 +51,14 @@ $(document).ready(function () {
...
@@ -51,9 +51,14 @@ $(document).ready(function () {
'
'
+
'
'
+
(
student
.
interactionTime
||
''
)
+
(
student
.
interactionTime
||
''
)
+
'
</td>
'
;
'
</td>
'
;
outputHtml
+=
'
<td>
'
+
(
student
.
admissionDate
||
''
)
+
'
'
+
(
student
.
admissionTime
||
''
)
+
'
</td>
'
;
outputHtml
+=
`<td><a href="mailto:
${
student
.
fatherEmail
}
">
${
student
.
fatherEmail
}
</a></td>`
;
outputHtml
+=
`<td><a href="mailto:
${
student
.
fatherEmail
}
">
${
student
.
fatherEmail
}
</a></td>`
;
outputHtml
+=
'
<td>
'
+
student
.
fatherName
+
'
</td>
'
;
outputHtml
+=
'
<td>
'
+
student
.
fatherName
+
'
</td>
'
;
outputHtml
+=
'
<td>
'
+
student
.
motherName
+
'
</td>
'
;
outputHtml
+=
'
</tr>
'
;
outputHtml
+=
'
</tr>
'
;
});
});
...
@@ -370,4 +375,77 @@ $(document).ready(function () {
...
@@ -370,4 +375,77 @@ $(document).ready(function () {
)
)
.
focus
();
.
focus
();
});
});
$
(
'
#bookAdmissionBtn
'
).
click
(
function
()
{
var
checkedValues
=
[];
$
(
'
.student-checkbox:checked
'
).
each
(
function
()
{
checkedValues
.
push
(
$
(
this
).
data
(
'
id
'
));
});
$
(
'
#studentIdForAdmission
'
).
val
(
checkedValues
.
toString
());
console
.
log
(
checkedValues
);
$
(
'
#admissionModal
'
).
modal
(
'
show
'
);
$
(
'
.admission-loading-btn
'
).
hide
();
});
$
(
'
#admissionForm
'
).
submit
(
function
(
event
)
{
event
.
preventDefault
();
console
.
log
(
'
form submitted
'
);
var
formIds
=
$
(
'
#studentIdForAdmission
'
).
val
();
var
admissionDate
=
$
(
'
#modalAdmissionDate
'
).
val
();
var
admissionTime
=
$
(
'
#modalAdmissionTime
'
).
val
();
var
selectedAdmissionDateTime
=
new
Date
(
admissionDate
+
'
T
'
+
admissionTime
);
if
(
!
formIds
)
{
$
(
'
#admissionModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select at least one form to schedule an admission.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
}
$
(
'
.admission-submit-btn
'
).
hide
();
$
(
'
.admission-loading-btn
'
).
show
();
$
.
ajax
({
url
:
BASE_URL_LAMARTIN
+
'
/admission-form/set-admission-interview
'
,
type
:
'
GET
'
,
contentType
:
'
application/json
'
,
dataType
:
'
json
'
,
headers
:
{
apikey
:
loginData
.
apiKey
,
},
data
:
{
formIds
:
formIds
,
admissionDate
:
admissionDate
,
admissionTime
:
formatAMPM
(
selectedAdmissionDateTime
),
},
success
:
function
(
response
)
{
window
.
location
.
reload
();
},
error
:
function
(
error
)
{
$
(
'
.admission-submit-btn
'
).
show
();
$
(
'
.admission-loading-btn
'
).
hide
();
if
(
error
.
responseJSON
&&
error
.
responseJSON
.
message
)
{
$
(
'
#messageModal .modal-body
'
).
text
(
error
.
responseJSON
.
message
);
}
else
{
$
(
'
#messageModal .modal-body
'
).
text
(
'
An unexpected error occurred. Please try again.
'
);
}
$
(
'
#admissionModal
'
).
modal
(
'
hide
'
);
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal
'
).
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