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
014bee6f
Commit
014bee6f
authored
Nov 17, 2021
by
Gihan76
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amendments done
parent
f7e15942
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
34 deletions
+43
-34
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_class_details.js
...tcoach-frontend/src/Components/Admin/add_class_details.js
+27
-27
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_financial_details.js
...ch-frontend/src/Components/Admin/add_financial_details.js
+2
-1
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_stud_perf_details.js
...ch-frontend/src/Components/Admin/add_stud_perf_details.js
+8
-2
WebFrontEnd/smartcoach-frontend/src/Components/Admin/edit_financial_details.js
...h-frontend/src/Components/Admin/edit_financial_details.js
+3
-2
WebFrontEnd/smartcoach-frontend/src/Components/Admin/view_financial_details.js
...h-frontend/src/Components/Admin/view_financial_details.js
+3
-2
No files found.
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_class_details.js
View file @
014bee6f
...
...
@@ -429,33 +429,33 @@ export default class AddClassDetails extends Component {
<
/div
>
<
/div
>
<
div
className
=
"
position-relative form-group
"
>
<
input
type
=
"
checkbox
"
id
=
"
onlineClass
"
className
=
"
form-control
"
onChange
=
{
this
.
onChangeIsActiveClass
}
defaultChecked
=
{
this
.
state
.
i
sActiveClass
}
style
=
{{
width
:
'
20px
'
,
height
:
'
20px
'
,
float
:
'
left
'
,
marginLeft
:
'
25px
'
,
marginTop
:
'
15px
'
}}
/
>
<
label
style
=
{{
marginTop
:
'
15px
'
,
float
:
'
left
'
,
marginLeft
:
'
20px
'
}}
>
Active
Class
<
/label
>
<
input
type
=
"
checkbox
"
id
=
"
onlineClass
"
className
=
"
form-control
"
onChange
=
{
this
.
onChangeIsActiveForStudent
}
defaultChecked
=
{
this
.
state
.
isActiveForStudent
}
style
=
{{
width
:
'
20px
'
,
height
:
'
20px
'
,
float
:
'
left
'
,
marginLeft
:
'
25px
'
,
marginTop
:
'
15px
'
}}
/
>
<
label
style
=
{{
marginTop
:
'
15px
'
,
float
:
'
left
'
,
marginLeft
:
'
20px
'
}}
>
Active
for
Students
<
/label
>
<
div
className
=
"
row
"
>
<
input
type
=
"
checkbox
"
id
=
"
onlineClass
"
className
=
"
form-control
"
onChange
=
{
this
.
onChangeI
sActiveClass
}
defaultChecked
=
{
this
.
state
.
isActiveClass
}
style
=
{{
width
:
'
20px
'
,
height
:
'
20px
'
,
float
:
'
left
'
,
marginLeft
:
'
25px
'
,
marginTop
:
'
15px
'
}}
/
>
<
label
style
=
{{
marginTop
:
'
15px
'
,
float
:
'
left
'
,
marginLeft
:
'
20px
'
}}
>
Active
Class
<
/label
>
<
input
type
=
"
checkbox
"
id
=
"
onlineClass
"
className
=
"
form-control
"
onChange
=
{
this
.
onChangeIsActiveForStudent
}
defaultChecked
=
{
this
.
state
.
isActiveForStudent
}
style
=
{{
width
:
'
20px
'
,
height
:
'
20px
'
,
float
:
'
left
'
,
marginLeft
:
'
25px
'
,
marginTop
:
'
15px
'
}}
/
>
<
label
style
=
{{
marginTop
:
'
15px
'
,
float
:
'
left
'
,
marginLeft
:
'
20px
'
}}
>
Active
for
Students
<
/label
>
<
/div
>
<
/div
>
<
/div
>
...
...
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_financial_details.js
View file @
014bee6f
import
React
,
{
Component
}
from
"
react
"
;
import
axios
from
"
axios
"
;
import
*
as
configs
from
'
../../Config/config
'
;
export
default
class
AddFinancialDetails
extends
Component
{
...
...
@@ -48,7 +49,7 @@ export default class AddFinancialDetails extends Component{
// console.log(`total_expenses: ${this.state.total_expenses}`);
// console.log(`gross_revenue: ${this.state.gross_revenue}`);
axios
.
post
(
'
http://localhost:5000
/admin/finance/store
'
,
financialDetails
)
axios
.
post
(
configs
.
BASE_URL
+
'
/admin/finance/store
'
,
financialDetails
)
.
then
(
res
=>
console
.
log
(
res
.
data
));
e
.
target
.
reset
();
...
...
WebFrontEnd/smartcoach-frontend/src/Components/Admin/add_stud_perf_details.js
View file @
014bee6f
import
React
,
{
Component
}
from
"
react
"
;
import
axios
from
"
axios
"
;
import
swal
from
"
sweetalert
"
;
import
*
as
configs
from
"
../../Config/config
"
;
export
default
class
AddPerformanceDetails
extends
Component
{
...
...
@@ -51,8 +53,12 @@ export default class AddPerformanceDetails extends Component{
console
.
log
(
`G1:
${
this
.
state
.
g1
}
`
);
console
.
log
(
`G2:
${
this
.
state
.
g2
}
`
);
axios
.
post
(
'
http://localhost:5000/admin/studper/store
'
,
studPerfDetails
)
.
then
(
res
=>
console
.
log
(
res
.
data
));
axios
.
post
(
configs
.
BASE_URL
+
'
/admin/studper/store
'
,
studPerfDetails
)
.
then
(
res
=>
{
console
.
log
(
res
.
data
)
swal
(
"
success!!!
"
,
res
.
data
,
"
success
"
)
});
e
.
target
.
reset
();
}
...
...
WebFrontEnd/smartcoach-frontend/src/Components/Admin/edit_financial_details.js
View file @
014bee6f
import
React
,
{
Component
}
from
"
react
"
;
import
axios
from
"
axios
"
;
import
*
as
configs
from
'
../../Config/config
'
;
export
default
class
EditFinancialDetails
extends
Component
{
...
...
@@ -48,14 +49,14 @@ export default class EditFinancialDetails extends Component{
console
.
log
(
`total_expenses:
${
this
.
state
.
total_expenses
}
`
);
console
.
log
(
`gross_revenue:
${
this
.
state
.
gross_revenue
}
`
);
axios
.
post
(
'
http://localhost:5000
/admin/finance/update/
'
+
this
.
props
.
match
.
params
.
id
,
financialDetails
)
axios
.
post
(
configs
.
BASE_URL
+
'
/admin/finance/update/
'
+
this
.
props
.
match
.
params
.
id
,
financialDetails
)
.
then
(
res
=>
console
.
log
(
res
.
data
));
window
.
location
=
'
/admin
'
;
}
componentDidMount
()
{
axios
.
get
(
'
http://localhost:5000
/admin/finance/
'
+
this
.
props
.
match
.
params
.
id
)
axios
.
get
(
configs
.
BASE_URL
+
'
/admin/finance/
'
+
this
.
props
.
match
.
params
.
id
)
.
then
(
response
=>
{
this
.
setState
({
account_month
:
response
.
data
.
account_month
,
...
...
WebFrontEnd/smartcoach-frontend/src/Components/Admin/view_financial_details.js
View file @
014bee6f
import
React
,
{
Component
}
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
axios
from
"
axios
"
;
import
*
as
configs
from
'
../../Config/config
'
;
const
Finance
=
props
=>
(
<
tr
>
...
...
@@ -27,7 +28,7 @@ export default class ViewFinancialDetails extends Component{
}
componentDidMount
()
{
axios
.
get
(
'
http://localhost:5000
/admin/finance/
'
)
axios
.
get
(
configs
.
BASE_URL
+
'
/admin/finance/
'
)
.
then
(
response
=>
{
this
.
setState
({
finance
:
response
.
data
})
// console.log(this.state);
...
...
@@ -38,7 +39,7 @@ export default class ViewFinancialDetails extends Component{
}
deleteFinance
(
id
){
axios
.
delete
(
'
http://localhost:5000
/admin/finance/
'
+
id
)
axios
.
delete
(
configs
.
BASE_URL
+
'
/admin/finance/
'
+
id
)
.
then
(
res
=>
console
.
log
(
res
.
data
));
this
.
setState
({
...
...
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