Faculty and Course Forms

This commit is contained in:
Harshitha Shetty
2024-12-04 03:54:40 +05:30
parent e9b57359f1
commit 2f0597cb1e
14 changed files with 325 additions and 46 deletions

View File

@@ -0,0 +1,31 @@
// FacultyForm.js
import React from "react";
import { useParams } from "react-router-dom";
import "./FacultyForm.css";
const FacultyForm = () => {
const { id } = useParams(); // Get the faculty ID from the URL params
return (
<div className="form-container">
<h2>Faculty Info</h2>
<form>
<label>
Faculty ID:
<input type="text" value={id} readOnly />
</label>
<label>
Faculty Name:
<input type="text" placeholder="Enter faculty name" />
</label>
<label>
Department:
<input type="text" placeholder="Enter department" />
</label>
<button type="submit">Submit</button>
</form>
</div>
);
};
export default FacultyForm;