Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ee60a43
integrated debar apis
CoDe-WiZaDd-18-DOTCOM Jan 16, 2025
66ebacc
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 17, 2025
99ab9e6
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 21, 2025
bf54a61
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 21, 2025
8ebd4d4
done with apis of restriction and adding custom fields
CoDe-WiZaDd-18-DOTCOM Jan 24, 2025
10872ab
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 28, 2025
e72f99c
company registration
CoDe-WiZaDd-18-DOTCOM Feb 4, 2025
ef690b9
merge branch
CoDe-WiZaDd-18-DOTCOM Feb 4, 2025
c0a98f8
Merge branch 'sa-4' of https://github.com/CoDe-WiZaDd-18-DOTCOM/Fusio…
CoDe-WiZaDd-18-DOTCOM Feb 4, 2025
ef6fc95
intergated notifications api
CoDe-WiZaDd-18-DOTCOM Feb 11, 2025
e0784ba
Merge branch 'sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Feb 11, 2025
5000e08
debar notification integrated
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
13c7f7f
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
0d191a7
merge beanch
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
fa1621a
Merge branch 'sa-4' of https://github.com/CoDe-WiZaDd-18-DOTCOM/Fusio…
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
58d9569
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Mar 17, 2025
3f5f059
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Mar 18, 2025
0ed8afe
company registration integration
CoDe-WiZaDd-18-DOTCOM Mar 18, 2025
ebd61bd
Merge branch 'sa-4' of https://github.com/CoDe-WiZaDd-18-DOTCOM/Fusio…
CoDe-WiZaDd-18-DOTCOM Mar 18, 2025
436685f
dynamic fields form integrated
CoDe-WiZaDd-18-DOTCOM Mar 18, 2025
7bcbe68
Merge branch 'sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Mar 18, 2025
90d3416
student responses integrated
CoDe-WiZaDd-18-DOTCOM Mar 23, 2025
3334875
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Mar 23, 2025
5e26e72
Merge branch 'sa-4' of https://github.com/CoDe-WiZaDd-18-DOTCOM/Fusio…
CoDe-WiZaDd-18-DOTCOM Mar 23, 2025
4363643
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Mar 25, 2025
642db81
bug fixing
CoDe-WiZaDd-18-DOTCOM Apr 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Modules/PlacementCell/components/ApplyForPlacementForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@ function ApplyToPlacementForm({ jobID,prefilledFields, additionalFields, onSubmi
required={field.required}
/>
)}
{field.type === "file" && (
<FileInput
label={field.name.replace(/_/g, " ").toUpperCase()}
placeholder={`Upload ${field.name}`}
value={formData[field.field_id]?.value || null}
onChange={(file) => handleChange(field.field_id, file)}
error={errors[field.name]}
required={field.required}
/>
)}
</Grid.Col>
))}

Expand Down
1 change: 1 addition & 0 deletions src/Modules/PlacementCell/components/FieldsForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ function FieldsForm() {
{ value: "decimal", label: "Decimal" },
{ value: "date", label: "Date" },
{ value: "time", label: "Time" },
{ value: "file", label: "File" },
]}
required
/>
Expand Down
27 changes: 26 additions & 1 deletion src/Modules/PlacementCell/components/PlacementRecordsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,31 @@ function PlacementRecordsTable() {
fetchPlacementStats();
}, []);


const downloadExcel = async () => {
const token = localStorage.getItem("authToken");
console.log("enteres");
try {
const response = await axios.get(
"http://127.0.0.1:8000/placement/api/download-statistics/",
{
headers: {
Authorization: `Token ${token}`,
},
responseType: "blob",
},
);
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement("a");
link.href = url;
link.setAttribute("download", "placement_statistics.xlsx");
document.body.appendChild(link);
link.click();
} catch (error) {
console.error("Error downloading Excel file:", error);
}
};

const handleDelete = async (id) => {
const confirmDelete = window.confirm(
`Are you sure you want to delete this record id:${id}?`,
Expand Down Expand Up @@ -575,7 +600,7 @@ function PlacementRecordsTable() {
<AddPlacementRecordForm
opened={modalOpened}
onClose={() => setModalOpened(false)}
/>
/><Button onClick={()=>{downloadExcel()}}> Doen;oad Excel </Button>

<Container fluid>
<Title order={3} style={{ marginBottom: "12px" }}>
Expand Down
5 changes: 0 additions & 5 deletions src/Modules/PlacementCell/components/SendNotificationForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ function SendNotificationForm() {
value={formData.date}
onChange={(date) => handleChange("date", date)}
/>
<TimeInput
label="Time"
value={formData.time}
onChange={(time) => handleChange("time", time)}
/>
</Group>

<TextInput
Expand Down