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
21e1eb31
Commit
21e1eb31
authored
Jul 03, 2024
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add dialog for report download
parent
4406a0cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
17 deletions
+62
-17
lamartinDashboard/css/dashboard.css
lamartinDashboard/css/dashboard.css
+2
-2
lamartinDashboard/dashboard.html
lamartinDashboard/dashboard.html
+47
-15
lamartinDashboard/js/dashboard.js
lamartinDashboard/js/dashboard.js
+13
-0
No files found.
lamartinDashboard/css/dashboard.css
View file @
21e1eb31
...
...
@@ -24,7 +24,7 @@ body {
box-shadow
:
0
0
20px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
10px
;
height
:
calc
(
100vh
-
80px
);
overflow-y
:
auto
;
/* overflow-y: auto; */
}
.details-container
{
...
...
@@ -34,7 +34,7 @@ body {
border-radius
:
10px
;
height
:
calc
(
100vh
-
80px
);
overflow-y
:
auto
;
position
:
relative
;
/* position: relative; */
}
.filter-box
{
...
...
lamartinDashboard/dashboard.html
View file @
21e1eb31
...
...
@@ -19,10 +19,10 @@
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-3"
>
<div
class=
"col-lg-3"
style=
"margin-top: 80px;"
>
<div
class=
"navbar-filter"
>
<h5>
Filters
</h5>
<hr
/>
<
!-- <
h5>Filters</h5>
<hr />
-->
<div
class=
"filter-box"
>
<label
for=
"schoolFilter"
class=
"filter-label"
>
School
</label>
<select
id=
"schoolFilter"
class=
"form-control"
>
...
...
@@ -44,20 +44,18 @@
</div>
</div>
<div
class=
"col-lg-9"
>
<div
class=
"details-container"
>
<div>
<h2
style=
"text-align: center;"
>
Admission Information
</h2>
<div
class=
"book-appointment-box2"
>
<button
class=
"btn btn-success btn-sm"
>
Interaction Sheet
</button>
<button
class=
"btn btn-primary btn-sm"
>
Interaction Scoring Sheet
</button>
<button
class=
"btn btn-secondary btn-sm"
>
Counsellor Scoring Sheet
</button>
</div>
<div
class=
"book-appointment-box"
>
<button
id=
"bookAppointmentBtn"
class=
"btn btn-primary btn-sm"
>
Schedule Appointment
</button>
<div>
<h2
style=
"text-align: center;"
>
Admission Information
</h2>
<div
class=
"book-appointment-box"
>
<button
id=
"bookAppointmentBtn"
class=
"btn btn-primary btn-sm"
>
Schedule Appointment
</button>
<div
style=
"display: flex; gap: 4px;"
>
<button
id=
"summary-popup-btn"
class=
"btn btn-success btn-sm"
>
Download Summary
</button>
<button
id=
"download-admission-data-btn"
class=
"btn btn-success btn-sm"
>
Download Admission Data
</button>
</div>
</div>
</div>
<div
class=
"details-container"
style=
"height: 350px;"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-bordered"
>
<thead>
...
...
@@ -84,7 +82,7 @@
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"appointmentModalLabel"
>
Book
Appointment
</h5>
<h5
class=
"modal-title"
id=
"appointmentModalLabel"
>
Schedule
Appointment
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
...
...
@@ -113,6 +111,40 @@
</div>
</div>
<div
class=
"modal fade"
id=
"reportModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"reportModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"reportModal"
>
Download Summary
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<div
style=
"display: flex; justify-content: space-between;"
>
<div
class=
"form-group"
style=
"width: 49%;"
>
<label
for=
"schoolFilterReport"
class=
"filter-label"
>
School
</label>
<select
id=
"schoolFilterReport"
class=
"form-control"
required
>
<option
value=
"La Martiniere for Boys"
selected
>
La Martiniere for Boys
</option>
<option
value=
"La Martiniere for Girls"
>
La Martiniere for girls
</option>
</select>
</div>
<div
class=
"form-group"
style=
"width: 49%;"
>
<label
for=
"yearFilterReport"
class=
"filter-label"
>
Year
</label>
<input
id=
"yearFilterReport"
class=
"form-control"
type=
"number"
min=
"1900"
max=
"2099"
step=
"1"
value=
"2024"
required
/>
</div>
</div>
<div
class=
"book-appointment-box2"
>
<button
class=
"btn btn-success btn-sm"
>
Interaction Sheet
</button>
<button
class=
"btn btn-primary btn-sm"
>
Interaction Scoring Sheet
</button>
<button
class=
"btn btn-secondary btn-sm"
>
Counsellor Scoring Sheet
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"modal"
tabindex=
"-1"
role=
"dialog"
id=
"messageModal"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
...
...
lamartinDashboard/js/dashboard.js
View file @
21e1eb31
...
...
@@ -209,6 +209,15 @@ $(document).ready(function () {
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
}
if
(
!
$
(
'
#schoolFilter
'
).
val
())
{
$
(
'
#messageModal .modal-title
'
).
text
(
'
Error
'
);
$
(
'
#messageModal .modal-body
'
).
text
(
'
Please select a school to download admission data.
'
);
$
(
'
#messageModal
'
).
modal
(
'
show
'
);
return
;
}
window
...
...
@@ -221,4 +230,8 @@ $(document).ready(function () {
)
.
focus
();
});
$
(
'
#summary-popup-btn
'
).
click
(
function
()
{
$
(
'
#reportModal
'
).
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