diff --git a/public/Sample.csv b/public/Sample.csv
new file mode 100644
index 00000000..fd37d57b
--- /dev/null
+++ b/public/Sample.csv
@@ -0,0 +1,10 @@
+name,externalId,description,type,hasAParentTask,parentTaskOperator,parentTaskValue,parentTaskId,isDeletable,learningResources1-name,learningResources1-link,learningResources1-app,learningResources1-type,learningResources1-id,learningResources2-name,learningResources2-link,learningResources2-app,learningResources2-type,minNoOfSubmissionsRequired,sequenceNumber,startDate,endDate,solutionType,solutionSubType,solutionId
+Maths-Chapter 1,1,,content,NO,,,,FALSE,,,,,,,,,,,1,09-01-2024,10/31/24,,,
+Arithmetic,2,,content,YES,EQUALS,started,1,FALSE,Chemical reaction,https://www.youtube.com/watch?v=TStjgUmL1RQ,Youtube,postrequisite,,,https://www.youtube.com/watch?v=CqN-XIPhMpo,,,subTask1,2,09-01-2024,10/31/24,,,
+Polynomials,3,,content,YES,EQUALS,started,1,FALSE,Acid and Base,https://www.youtube.com/watch?v=ja7p_tzTTEA,Youtube,postrequisite,,,https://www.youtube.com/watch?v=rDjWrNRKfvg,,,subTask1,4,09-01-2024,10/31/24,,,
+Coordinate geometry,4,,content,YES,EQUALS,started,1,FALSE,Equation of Motion,https://www.youtube.com/watch?v=80gApHJd3iY,Youtube,prerequisite,,,,,,subTask1,3,09-01-2024,10/31/24,,,
+Maths-Chapter 2,5,,content,NO,,,,FALSE,,,,,,,,,,,5,09-01-2024,10/31/24,,,
+Circles,6,,content,YES,EQUALS,started,5,FALSE,Human Organs,https://www.youtube.com/watch?v=YE2peDF4Zqg,Youtube,prerequisite,,,,,,subTask1,6,09-01-2024,10/31/24,,,
+Trigonometry,7,,content,YES,EQUALS,started,5,FALSE,CardioVascular,https://www.youtube.com/watch?v=Vi1JK6IYVt8,Youtube,prerequisite,,,,,,subTask1,7,09-01-2024,10/31/24,,,
+Statistics,8,,content,YES,EQUALS,started,5,FALSE,Liver and Kidney,https://www.youtube.com/watch?v=rDjWrNRKfvg,Youtube,postrequisite,,,,,,subTask1,8,09-01-2024,10/31/24,,,
+Quadratic Equation,9,,content,YES,EQUALS,started,5,FALSE,Kaade Kess Resource,https://www.youtube.com/watch?v=CqN-XIPhMpo,Youtube,postrequisite,,,https://www.youtube.com/watch?v=CqN-XIPhMpo,,,subTask1,9,09-01-2024,10/31/24,,,
\ No newline at end of file
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index 4f20b65e..3b136006 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -229,7 +229,8 @@
"LEARNERS_POSTREQISITE":"Learners Post-requisites",
"NO_DATA_POST":"No data available for Learners Post-requisites",
"FACILITATORS":"Facilitators Requisites",
- "NO_DATA":"No data available for Facilitators Requisites"
+ "NO_DATA":"No data available for Facilitators Requisites",
+ "DOWNLOAD_SAMPLE_CSV":"Download Sample CSV"
},
diff --git a/src/pages/importCsv.tsx b/src/pages/importCsv.tsx
index 77754a20..bc8f5fa2 100644
--- a/src/pages/importCsv.tsx
+++ b/src/pages/importCsv.tsx
@@ -191,6 +191,16 @@ const ImportCsv = () => {
setSelectedFile(null);
};
+ const handleDownloadCSV = () => {
+ const link = document.createElement("a");
+ link.href = "/Sample.csv";
+ link.download = "Sample.csv";
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ };
+
+
const handleUpload = async () => {
if (selectedFile) {
const metaData: CoursePlannerMetaData = {
@@ -350,7 +360,7 @@ const ImportCsv = () => {
>
{t("COURSE_PLANNER.IMPORT_PLANNER")}
- {/* */}
+ {t("COURSE_PLANNER.DOWNLOAD_SAMPLE_CSV")}
+