Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-049
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-049
2021-049
Commits
1d289fec
Commit
1d289fec
authored
Aug 22, 2021
by
Hasitha Samarasekara
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT18058338' into 'master'
It18058338 See merge request
!9
parents
b8298554
b9e812c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
149 additions
and
0 deletions
+149
-0
WebFrontEnd/smartcoach-frontend/src/Components/Admin/Dashboard.js
...End/smartcoach-frontend/src/Components/Admin/Dashboard.js
+8
-0
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_class_details.js
...tcoach-frontend/src/Components/Admin/add_class_details.js
+141
-0
No files found.
WebFrontEnd/smartcoach-frontend/src/Components/Admin/Dashboard.js
View file @
1d289fec
...
...
@@ -5,6 +5,7 @@ import {Link} from "react-router-dom";
import
AddFinance
from
'
./add_financial_details
'
;
import
ViewFinance
from
'
./view_financial_details
'
;
import
EditFinance
from
'
./edit_financial_details
'
;
import
AddClass
from
'
./add_class_details
'
;
export
default
class
Dashboard
extends
Component
{
render
()
{
...
...
@@ -349,6 +350,12 @@ export default class Dashboard extends Component {
<
i
className
=
"
metismenu-state-icon fa fa-caret-down
"
><
/i
>
<
/a
>
<
ul
>
<
li
>
<
NavLink
to
=
{
"
/admin/classes/add/
"
}
>
<
i
className
=
"
metismenu-icon
"
><
/i
>
Create
Class
<
/NavLink
>
<
/li
>
<
li
>
<
a
href
=
"
#
"
>
<
i
className
=
"
metismenu-icon
"
><
/i
>
...
...
@@ -443,6 +450,7 @@ export default class Dashboard extends Component {
<
Route
path
=
"
/admin/finance/
"
exact
component
=
{
ViewFinance
}
/
>
<
Route
path
=
"
/admin/finance/add
"
exact
component
=
{
AddFinance
}
/
>
<
Route
path
=
{
"
/admin/finance/edit/:id
"
}
exact
component
=
{
EditFinance
}
/
>
<
Route
path
=
"
/admin/classes/add
"
exact
component
=
{
AddClass
}
/
>
<
/div
>
{
/* Footer */
}
...
...
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_class_details.js
0 → 100644
View file @
1d289fec
import
React
,
{
Component
}
from
"
react
"
;
import
axios
from
"
axios
"
;
import
SelectSearch
,
{
fuzzySearch
}
from
'
react-select-search
'
;
import
*
as
configs
from
"
../../Config/config
"
;
const
options
=
[
{
name
:
'
Hasitha
'
,
value
:
'
1
'
},
{
name
:
'
Devinda
'
,
value
:
'
2
'
},
{
name
:
'
Hansaka
'
,
value
:
'
3
'
},
{
name
:
'
Gihan
'
,
value
:
'
4
'
},
];
export
default
class
AddClassDetails
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
instituteList
:
[
'
Sakya Nugegoda
'
,
'
Montana Kiribathgoda
'
,
'
Wasiti Kiribathgoda
'
]
}
}
// this.onChangeInstituteDropDown = this.onChangeInstituteDropDown.bind(this);
componentDidMount
()
{
axios
.
get
(
configs
.
BASE_URL
+
'
/instituteSingUp/
'
)
.
then
(
response
=>
{
if
(
response
.
data
.
length
>
0
){
console
.
log
(
response
.
data
);
this
.
setState
({
instituteList
:
response
.
data
})
}
})
}
onChangeInstituteDropDown
(
value
)
{
this
.
setState
({
newInstitute
:
value
.
target
.
value
})
}
render
()
{
return
(
<
div
>
<
div
className
=
"
app-page-title
"
>
<
div
className
=
"
page-title-wrapper
"
>
<
div
className
=
"
page-title-heading
"
>
<
div
className
=
"
page-title-icon
"
>
<
i
className
=
"
pe-7s-display1 fa fa-users
"
><
/i
>
<
/div
>
<
div
>
Add
Class
Details
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
main-card mb-3 card
"
>
<
div
className
=
"
card-body
"
>
<
form
>
<
div
className
=
"
row
"
>
<
div
className
=
"
col-md-6
"
>
<
div
className
=
"
card-body
"
>
<
div
className
=
"
position-relative form-group
"
>
<
label
>
Class
Type
<
/label
>
<
select
name
=
"
select
"
className
=
"
form-control
"
>
<
option
>
Select
Class
Type
<
/option
>
<
option
>
Mass
Class
<
/option
>
<
option
>
Revision
Class
<
/option
>
<
option
>
Group
Class
<
/option
>
<
option
>
Individual
Class
<
/option
>
<
/select
>
<
/div
>
<
div
className
=
"
position-relative form-group
"
>
<
label
>
Institute
<
/label
>
<
select
name
=
"
select
"
className
=
"
form-control
"
>
onChange
=
{
e
=>
this
.
onChangeInstituteDropDown
(
e
)}
<
option
value
=
""
disabled
selected
>
Select
Institute
<
/option
>
{
this
.
state
.
instituteList
.
map
((
dis
)
=>
<
option
key
=
{
dis
.
_id
}
id
=
{
dis
.
_id
}
value
=
{
dis
.
institute_name
}
>
{
dis
.
institute_name
}
<
/option>
)
}
{
/*<option>Select Institute</option>*/
}
{
/*<option>Sakya Nugegoda</option>*/
}
{
/*<option>Minasko Malabe</option>*/
}
{
/*<option>Rotary Nugegoda</option>*/
}
{
/*<option>Sasip Nugegoda</option>*/
}
<
/select
>
<
/div
>
<
div
className
=
"
position-relative form-group
"
>
<
label
>
Batch
Number
<
/label
>
<
input
type
=
"
text
"
className
=
"
form-control
"
/>
<
/div
>
<
div
className
=
"
position-relative form-group
"
>
<
label
>
Year
<
/label
>
<
input
type
=
"
month
"
className
=
"
form-control
"
/>
<
/div
>
<
div
className
=
"
position-relative form-group
"
>
<
label
>
Subject
<
/label
>
<
select
name
=
"
select
"
className
=
"
form-control
"
>
<
option
>
Select
Subject
<
/option
>
<
option
><
/option
>
<
option
><
/option
>
<
option
><
/option
>
<
option
><
/option
>
<
/select
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
col-md-6
"
>
<
div
className
=
"
card-body
"
>
<
div
className
=
"
position-relative form-group
"
>
<
label
htmlFor
=
"
exampleEmail
"
className
>
Students
<
/label
>
<
SelectSearch
options
=
{
options
}
multiple
search
filterOptions
=
{
fuzzySearch
}
placeholder
=
"
Select students
"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
position-relative row form-group
"
>
<
div
className
=
"
col-sm-12
"
>
<
button
className
=
"
btn btn-primary
"
style
=
{{
width
:
"
150px
"
}}
type
=
"
submit
"
>
Create
Class
<
/button
>
<
/div
>
<
/div
>
<
/form
>
<
/div
>
<
/div
>
<
/div
>
);
}
}
\ No newline at end of file
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