66 audiences as audiencesMap ,
77 Format ,
88 formats ,
9+ isWorkshopFormat ,
910 Language ,
1011 languages ,
1112 Level ,
@@ -57,6 +58,9 @@ export function ProposalDetailsForm({
5758 )
5859 const [ outline , setOutline ] = useState ( proposal ?. outline ?? '' )
5960 const [ tos , setTos ] = useState ( proposal ?. tos ?? false )
61+ const [ prerequisites , setPrerequisites ] = useState (
62+ proposal ?. prerequisites ?? '' ,
63+ )
6064
6165 // Push local state changes to parent
6266 useEffect ( ( ) => {
@@ -70,6 +74,7 @@ export function ProposalDetailsForm({
7074 topics,
7175 outline,
7276 tos,
77+ prerequisites,
7378 } )
7479 } , [
7580 title ,
@@ -81,6 +86,7 @@ export function ProposalDetailsForm({
8186 topics ,
8287 outline ,
8388 tos ,
89+ prerequisites ,
8490 setProposal ,
8591 ] )
8692
@@ -202,6 +208,17 @@ export function ProposalDetailsForm({
202208 { outline || 'No outline provided' }
203209 </ p >
204210 </ div >
211+
212+ { isWorkshopFormat ( format ) && (
213+ < div >
214+ < label className = "block text-sm font-medium text-gray-900 dark:text-white" >
215+ Prerequisites
216+ </ label >
217+ < p className = "mt-2 whitespace-pre-wrap text-gray-900 dark:text-white" >
218+ { prerequisites || 'No prerequisites specified' }
219+ </ p >
220+ </ div >
221+ ) }
205222 </ div >
206223 ) : (
207224 < div className = "mt-10 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6" >
@@ -315,6 +332,23 @@ export function ProposalDetailsForm({
315332 </ HelpText >
316333 </ div >
317334
335+ { isWorkshopFormat ( format ) && (
336+ < div className = "col-span-full" >
337+ < Textarea
338+ name = "prerequisites"
339+ label = "Prerequisites"
340+ rows = { 3 }
341+ value = { prerequisites }
342+ setValue = { setPrerequisites }
343+ />
344+ < HelpText >
345+ List any prerequisites participants should meet before attending
346+ your workshop (e.g., "Bring a computer with Docker
347+ installed", "Basic knowledge of Kubernetes").
348+ </ HelpText >
349+ </ div >
350+ ) }
351+
318352 < div className = "col-span-full" >
319353 < Checkbox
320354 name = "tos"
0 commit comments