-
Notifications
You must be signed in to change notification settings - Fork 4
[Main Form] Added the Academics Component in the Main Form. #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Aditya-138-12
wants to merge
2
commits into
CodeArena-SJCIT:main
Choose a base branch
from
Aditya-138-12:issue_ceil_floor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/CPS-Frontend/Main Form/Attended Workshops/attendedWorkshop.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| import React from "react"; | ||
| import { useState } from "react"; | ||
| import { RadioGroup, Radio, Box, Tooltip, FormGroup, TextField, Card, CardContent, Typography, CardHeader, FormControlLabel } from "@mui/material"; | ||
|
|
||
|
|
||
| const ConferenceOrganizer = () => { | ||
|
|
||
| const [conferenceOrgChecked, setconferenceOrgChecked] = useState(false); | ||
|
|
||
| const [numberOfConferenceOrg, setnumberOfConferenceOrg] = useState(); | ||
| console.log(numberOfConferenceOrg); | ||
|
|
||
| const handleConferenceOrgChecked = (e) => { | ||
| setconferenceOrgChecked(e.target.value); | ||
| } | ||
|
|
||
| return ( | ||
| <> | ||
| <Card variant="elevation" elevation={5} sx={{ width: '100%', paddingLeft: "40px", paddingRight: "40px" }} raised> | ||
| <CardHeader title="Attended Workshop / FDP / Short term | ||
| courses of minimum of 05 working days | ||
| duration in offline mode." subheader="Select Options" sx={{ textAlign: "center" }} /> | ||
|
|
||
| <FormGroup row sx={{ marginTop: "10px", marginBottom: "20px", alignItems: "center", gap: 2, justifyContent: "space-between" }}> | ||
| <Typography>Have you ever Attended Workshop / FDP / Short term | ||
| courses of minimum of 05 working days | ||
| duration in offline mode.?</Typography> | ||
| <RadioGroup row sx={{ gap: 2 }} value={conferenceOrgChecked} onChange={(e) => handleConferenceOrgChecked(e)}> | ||
| <FormControlLabel value="Yes" control={<Radio />} label="Yes" /> | ||
| <FormControlLabel value="No" control={<Radio />} label="No" /> | ||
| </RadioGroup> | ||
| </FormGroup> | ||
|
|
||
| {(conferenceOrgChecked !== "No" && conferenceOrgChecked) && | ||
| <> | ||
| <CardContent> | ||
| <Tooltip title={ | ||
| <Box sx={{ padding: '8px', maxWidth: "250px" }}> | ||
| <Typography variant="body1" sx={{ fontWeight: 'bold' }}>Number of Attended Workshops / FDP / STC</Typography> | ||
| <Typography variant="body2"> | ||
| -Maximum Allowed Value is <strong>3</strong> from last Appointment<br /> | ||
| -Please Ensure Valid Entries Only.<br /> | ||
| </Typography> | ||
| </Box> | ||
| } arrow placement="right" enterDelay={200} leaveDelay={200}><TextField inputProps={{ min: 0, max: 3 }} type="number" label="How many number of Attended Workshops / FDP / STC?" fullWidth onChange={(e) => { let value = parseInt(e.target.value, 10); if (value > 3) { value = 3 } if (value < 0) { value = 0 } if (isNaN(value)) { value = e.target.value } e.target.value = value; setnumberOfConferenceOrg(value) }} /> | ||
| </Tooltip> | ||
| </CardContent> | ||
|
|
||
| </> | ||
| } | ||
|
|
||
| </Card > | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export default ConferenceOrganizer; |
77 changes: 77 additions & 0 deletions
77
src/CPS-Frontend/Main Form/BookPublishedInternational/booksPublishedInternational.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| import React from "react"; | ||
| import { useState, useEffect } from "react"; | ||
| import { Radio, RadioGroup, FormGroup, Card, CardHeader, FormControlLabel, Typography, FormControl, TextField } from "@mui/material"; | ||
|
|
||
| const BooksPublishedInInternational = () => { | ||
|
|
||
| const [industryProjectsChecked, setindustryProjectsChecked] = useState(false); | ||
|
|
||
| const [NumberofIndustryProjects, setNumberofIndustryProjects] = useState(); | ||
| console.log(setNumberofIndustryProjects); | ||
|
|
||
| const [bookISBNnumber, setbookISBNnumber] = useState([]); | ||
| console.log(bookISBNnumber); | ||
|
|
||
| const [IndustryProjectsNumber, setIndustryProjectsNumber] = useState([]); | ||
|
|
||
| useEffect(() => { | ||
| if (NumberofIndustryProjects) { | ||
| const count = parseInt(NumberofIndustryProjects, 10) || 0; | ||
| setIndustryProjectsNumber((prevList) => { | ||
| const newList = [...prevList]; | ||
| if (newList.length < count) { | ||
| newList.push(...Array(count - newList.length).fill({ industryAttachementsOption: "" })); | ||
| } else { | ||
| newList.length = count; | ||
| } | ||
| return newList; | ||
| }); | ||
| } | ||
| }, [NumberofIndustryProjects]); | ||
|
|
||
| const handleaIndustryProjectsChecked = (e) => { | ||
| setindustryProjectsChecked(e.target.value); | ||
| } | ||
|
|
||
| return ( | ||
| <> | ||
| <Card variant="elevation" elevation={5} sx={{ width: '100%', paddingLeft: "40px", paddingRight: "40px", paddingBottom: "20px" }} raised> | ||
| <CardHeader title="Text / Reference book published on relevant | ||
| subjects from reputed international | ||
| publishers with ISBN" subheader="Select Options" sx={{ textAlign: "center" }} /> | ||
|
|
||
| <FormGroup row sx={{ marginTop: "10px", marginBottom: "20px", alignItems: "center", gap: 2, justifyContent: "space-between" }}> | ||
| <Typography>Do you have any Text / Reference book published on relevant | ||
| subjects from reputed international | ||
| publishers with ISBN?</Typography> | ||
| <RadioGroup row sx={{ gap: 2 }} value={industryProjectsChecked} onChange={(e) => handleaIndustryProjectsChecked(e)}> | ||
| <FormControlLabel value="Yes" control={<Radio />} label="Yes" /> | ||
| <FormControlLabel value="No" control={<Radio />} label="No" /> | ||
| </RadioGroup> | ||
| </FormGroup> | ||
|
|
||
| {(industryProjectsChecked !== "No" && industryProjectsChecked) && | ||
| <> | ||
| <FormControl fullWidth> | ||
| <TextField label="How many Text / Reference book published in Inteenational publishers with ISBN?" type="number" variant="outlined" fullWidth onChange={(e) => { let value = parseInt(e.target.value, 10); if (value <= 0) { value = 0; } else if (value) { } else { value = isNaN(value); } e.target.value = value; setNumberofIndustryProjects(e.target.value) }} /> | ||
| </FormControl> | ||
|
|
||
| {(industryProjectsChecked !== "No") && IndustryProjectsNumber.map((_, index) => ( | ||
| <FormControl fullWidth sx={{ marginTop: "20px" }}> | ||
| <Typography variant="h5" sx={{ marginBottom: "20px", textAlign: "center" }}>Information About Text / Reference Book {index + 1}</Typography> | ||
| <FormControl fullWidth> | ||
| <TextField type="number" label="Enter the ISBN Number of the Text / Reference Book" fullWidth variant="outlined" onChange={(e) => { let value = parseInt(e.target.value, 10); if (value <= 0) { value = 0; } else if (value) { } else { value = isNaN(value); } e.target.value = value; setbookISBNnumber(e.target.value) }} /> | ||
| </FormControl> | ||
| </FormControl> | ||
| ))} | ||
| </> | ||
|
|
||
| } | ||
|
|
||
| </Card > | ||
|
|
||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export default BooksPublishedInInternational; | ||
77 changes: 77 additions & 0 deletions
77
src/CPS-Frontend/Main Form/BooksPublishedInNational/booksPublishedNational.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| import React from "react"; | ||
| import { useState, useEffect } from "react"; | ||
| import { Radio, RadioGroup, FormGroup, Card, CardHeader, FormControlLabel, Typography, FormControl, TextField } from "@mui/material"; | ||
|
|
||
| const BooksPublishedInNational = () => { | ||
|
|
||
| const [industryProjectsChecked, setindustryProjectsChecked] = useState(false); | ||
|
|
||
| const [NumberofIndustryProjects, setNumberofIndustryProjects] = useState(); | ||
| console.log(setNumberofIndustryProjects); | ||
|
|
||
| const [bookISBNnumber, setbookISBNnumber] = useState([]); | ||
| console.log(bookISBNnumber); | ||
|
|
||
| const [IndustryProjectsNumber, setIndustryProjectsNumber] = useState([]); | ||
|
|
||
| useEffect(() => { | ||
| if (NumberofIndustryProjects) { | ||
| const count = parseInt(NumberofIndustryProjects, 10) || 0; | ||
| setIndustryProjectsNumber((prevList) => { | ||
| const newList = [...prevList]; | ||
| if (newList.length < count) { | ||
| newList.push(...Array(count - newList.length).fill({ industryAttachementsOption: "" })); | ||
| } else { | ||
| newList.length = count; | ||
| } | ||
| return newList; | ||
| }); | ||
| } | ||
| }, [NumberofIndustryProjects]); | ||
|
|
||
| const handleaIndustryProjectsChecked = (e) => { | ||
| setindustryProjectsChecked(e.target.value); | ||
| } | ||
|
|
||
| return ( | ||
| <> | ||
| <Card variant="elevation" elevation={5} sx={{ width: '100%', paddingLeft: "40px", paddingRight: "40px", paddingBottom: "20px" }} raised> | ||
| <CardHeader title="Text / Reference Books published on | ||
| relevant subjects from reputed national | ||
| publishers with ISBN" subheader="Select Options" sx={{ textAlign: "center" }} /> | ||
|
|
||
| <FormGroup row sx={{ marginTop: "10px", marginBottom: "20px", alignItems: "center", gap: 2, justifyContent: "space-between" }}> | ||
| <Typography>Do you have any Text / Reference Books published on | ||
| relevant subjects from reputed national | ||
| publishers with ISBN?</Typography> | ||
| <RadioGroup row sx={{ gap: 2 }} value={industryProjectsChecked} onChange={(e) => handleaIndustryProjectsChecked(e)}> | ||
| <FormControlLabel value="Yes" control={<Radio />} label="Yes" /> | ||
| <FormControlLabel value="No" control={<Radio />} label="No" /> | ||
| </RadioGroup> | ||
| </FormGroup> | ||
|
|
||
| {(industryProjectsChecked !== "No" && industryProjectsChecked) && | ||
| <> | ||
| <FormControl fullWidth> | ||
| <TextField label="How many Text / Reference book published in National publishers with ISBN?" type="number" variant="outlined" fullWidth onChange={(e) => { let value = parseInt(e.target.value, 10); if (value <= 0) { value = 0; } else if (value) { } else { value = isNaN(value); } e.target.value = value; setNumberofIndustryProjects(e.target.value) }} /> | ||
| </FormControl> | ||
|
|
||
| {(industryProjectsChecked !== "No") && IndustryProjectsNumber.map((_, index) => ( | ||
| <FormControl fullWidth sx={{ marginTop: "20px" }}> | ||
| <Typography variant="h5" sx={{ marginBottom: "20px", textAlign: "center" }}>Information About Text / Reference Book {index + 1}</Typography> | ||
| <FormControl fullWidth> | ||
| <TextField type="number" label="Enter the ISBN Number of the Text / Reference Book" fullWidth variant="outlined" onChange={(e) => { let value = parseInt(e.target.value, 10); if (value <= 0) { value = 0; } else if (value) { } else { value = isNaN(value); } e.target.value = value; setbookISBNnumber(e.target.value) }} /> | ||
| </FormControl> | ||
| </FormControl> | ||
| ))} | ||
| </> | ||
|
|
||
| } | ||
|
|
||
| </Card > | ||
|
|
||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export default BooksPublishedInNational; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.