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
0f8cb343
Commit
0f8cb343
authored
Nov 24, 2021
by
Devinda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix admin question management
parent
074ab2da
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
23054 deletions
+70
-23054
BackEnd/WebBackEnd/package-lock.json
BackEnd/WebBackEnd/package-lock.json
+2
-1370
WebFrontEnd/smartcoach-frontend/package-lock.json
WebFrontEnd/smartcoach-frontend/package-lock.json
+55
-21658
WebFrontEnd/smartcoach-frontend/src/Components/IT18050240/UploadPage.tsx
...rtcoach-frontend/src/Components/IT18050240/UploadPage.tsx
+1
-0
WebFrontEnd/smartcoach-frontend/src/Components/IT18050240/admin_question_management.js.js
...src/Components/IT18050240/admin_question_management.js.js
+11
-14
WebFrontEnd/smartcoach-frontend/src/Components/IT18050240/automatic_question.js
...-frontend/src/Components/IT18050240/automatic_question.js
+1
-12
No files found.
BackEnd/WebBackEnd/package-lock.json
View file @
0f8cb343
This diff is collapsed.
Click to expand it.
WebFrontEnd/smartcoach-frontend/package-lock.json
View file @
0f8cb343
This diff is collapsed.
Click to expand it.
WebFrontEnd/smartcoach-frontend/src/Components/IT18050240/UploadPage.tsx
View file @
0f8cb343
...
...
@@ -164,6 +164,7 @@ class UploadPage extends PureComponent<{}, UploadState> {
<
button
type
="
submit
"
value
="
Submit
"
className
=
"
btn
btn
-
block
btn
-
success
mt
-3"
onClick=
{
this
.
uploadImage
}
>
ADD
</
button
>
</
div
>
</
div
>
</
div
>
...
...
WebFrontEnd/smartcoach-frontend/src/Components/IT18050240/admin_question_management.js.js
View file @
0f8cb343
...
...
@@ -97,7 +97,7 @@ export default class AdminUI extends Component {
lesson_name
:
this
.
state
.
lesson_name
,
question_text
:
this
.
state
.
question_text
,
question_answer
:
this
.
state
.
question_answer
,
defult_mark
:
this
.
state
.
defult_mark
,
defult_mark
:
3
,
time_createdby
:
this
.
state
.
currentTime
,
time_modifiedby
:
this
.
state
.
currentTime
,
general_feedback
:
this
.
state
.
general_feedback
,
...
...
@@ -111,6 +111,13 @@ export default class AdminUI extends Component {
);
swal
(
"
Data Saved Successfully!
"
,
"
Your Details has been Saved Successfully!
"
,
"
success
"
);
this
.
state
.
lesson_no
=
""
;
this
.
state
.
lesson_name
=
""
;
this
.
state
.
question_text
=
""
;
this
.
state
.
question_answer
=
""
;
this
.
state
.
currentTime
=
""
;
this
.
state
.
currentTime
=
""
;
this
.
state
.
general_feedback
=
""
;
}
...
...
@@ -161,7 +168,7 @@ export default class AdminUI extends Component {
lesson_name
:
this
.
state
.
lesson_name
,
question_text
:
this
.
state
.
question_text
,
question_answer
:
this
.
state
.
question_answer
,
defult_mark
:
this
.
state
.
defult_mark
,
defult_mark
:
3
,
time_modifiedby
:
this
.
state
.
currentTime
,
general_feedback
:
this
.
state
.
general_feedback
,
};
...
...
@@ -180,6 +187,7 @@ export default class AdminUI extends Component {
// }else{
// alert("You must fill in all of the fields.");
// }
}}
render
(){
...
...
@@ -260,18 +268,7 @@ export default class AdminUI extends Component {
/
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
>
<
div
className
=
"
col-sm-10
"
>
<
label
>
Default
mark
:
<
/label
>
<
input
type
=
"
text
"
className
=
"
form-control
"
value
=
{
this
.
state
.
defult_mark
}
onChange
=
{
this
.
onChangeDefultMark
}
/
>
<
/div
>
<
/div
>
<
div
className
=
"
row
"
>
...
...
@@ -302,7 +299,7 @@ export default class AdminUI extends Component {
<
div
className
=
"
row
"
>
<
div
className
=
"
col-sm-5
"
>
<
Link
style
=
{{
textDecoration
:
"
none
"
}}
to
=
{
"
/admin/
itemlist
"
}
><
button
className
=
"
btn btn-block btn-warning
"
style
=
{{
color
:
"
white
"
}}
>
BACK
<
/button></
Link
>
<
Link
style
=
{{
textDecoration
:
"
none
"
}}
to
=
{
"
/admin/
exam/questionbank
"
}
><
button
className
=
"
btn btn-block btn-warning
"
style
=
{{
color
:
"
white
"
}}
>
BACK
<
/button></
Link
>
<
/div
>
<
div
className
=
"
col-sm-5
"
>
<
button
type
=
"
submit
"
value
=
"
Submit
"
...
...
WebFrontEnd/smartcoach-frontend/src/Components/IT18050240/automatic_question.js
View file @
0f8cb343
...
...
@@ -75,7 +75,7 @@ export default class Automatic_question extends Component {
const
newQuestion
=
{
lesson_no
:
this
.
state
.
lesson_no
,
lesson_name
:
this
.
state
.
lesson_name
,
defult_mark
:
this
.
state
.
defult_mark
,
defult_mark
:
3
,
general_feedback
:
this
.
state
.
general_feedback
,
file
:
this
.
state
.
file
,
};
...
...
@@ -143,17 +143,6 @@ export default class Automatic_question extends Component {
<
/div
>
<
/div
>
<
div
className
=
"
col-sm-5
"
>
<
label
>
defult_mark
:
<
/label
>
<
div
style
=
{{
padding
:
'
0px
'
}}
>
<
input
type
=
"
text
"
required
className
=
"
form-control
"
value
=
{
this
.
state
.
defult_mark
}
onChange
=
{
this
.
onChangeDefultMark
}
/
>
<
/div
>
<
/div
>
<
div
className
=
"
col-sm-5
"
>
<
label
>
general_feedback
:
<
/label
>
<
div
style
=
{{
padding
:
'
0px
'
}}
>
...
...
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