forked from Daquiver1/Frontend-Grading-Assignment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMissingGradeFormPage.js
More file actions
46 lines (42 loc) · 1.45 KB
/
MissingGradeFormPage.js
File metadata and controls
46 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React, { useState } from 'react';
const MissingGradeFormPage = () => {
const [courseName, setCourseName] = useState('');
const [instructorName, setInstructorName] = useState('');
const [expectedGrade, setExpectedGrade] = useState('');
const [explanation, setExplanation] = useState('');
const handleFormSubmit = () => {
// Add logic to handle form submission (mock-up)
console.log('Submitting missing grade report:', { courseName, instructorName, expectedGrade, explanation });
};
return (
<div>
<h1>Report Missing Grade</h1>
<form>
<label>
Course Name:
<input type="text" value={courseName} onChange={(e) => setCourseName(e.target.value)} />
</label>
<br />
<label>
Instructor Name:
<input type="text" value={instructorName} onChange={(e) => setInstructorName(e.target.value)} />
</label>
<br />
<label>
Expected Grade:
<input type="text" value={expectedGrade} onChange={(e) => setExpectedGrade(e.target.value)} />
</label>
<br />
<label>
Explanation:
<textarea value={explanation} onChange={(e) => setExplanation(e.target.value)} />
</label>
<br />
<button type="button" onClick={handleFormSubmit}>
Submit
</button>
</form>
</div>
);
};
export default MissingGradeFormPage;