|
|
@ -320,12 +320,20 @@ const AddQuestionsFromBank = ({ grades, addExamState, dispatch, stepClick, backS |
|
|
|
<div className="px-2 pl-4 text-gray37 text-sm flex items-center border-l border-red52"> |
|
|
|
<div className="px-2 pl-4 text-gray37 text-sm flex items-center border-l border-red52"> |
|
|
|
<p>ضریب</p> |
|
|
|
<p>ضریب</p> |
|
|
|
<input type='number' value={selectedCourse?.coefficient} onChange={(e) => console.log(e.target.value)} |
|
|
|
<input type='number' value={selectedCourse?.coefficient} onChange={(e) => console.log(e.target.value)} |
|
|
|
className="w-5 h-5 flex text-center items-center pt-1 rounded border border-red5B text-sm text-gray-600 mr-2" /> |
|
|
|
className="w-5 h-5 placeholder:text-blue3A flex text-center items-center pt-1 rounded border border-red5B text-sm text-gray-600 mr-2" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="px-2 pl-0 text-gray37 text-sm flex items-center "> |
|
|
|
<div className="px-2 pl-0 text-gray37 text-sm flex items-center "> |
|
|
|
<p>تعداد گزینه</p> |
|
|
|
<p>تعداد گزینه</p> |
|
|
|
<input type='number' value={selectedCourse?.numberOfOptions} onChange={(e) => console.log(e.target.value)} |
|
|
|
<input type='number' value={selectedCourse?.numberOfOptions} |
|
|
|
className="w-5 h-5 flex text-center items-center pt-1 rounded border border-red5B text-sm text-gray-600 mr-2" /> |
|
|
|
min='2' |
|
|
|
|
|
|
|
max='6' |
|
|
|
|
|
|
|
onChange={(e) => { |
|
|
|
|
|
|
|
setSelectedCourse({...selectedCourse, numberOfOptions: e.target.value}) |
|
|
|
|
|
|
|
dispatch({type:'CHANGE_COURSE_NUM_OF_OPTIONS', payload:{ |
|
|
|
|
|
|
|
courseId: selectedCourse.id, |
|
|
|
|
|
|
|
value: parseInt(e.target.value) |
|
|
|
|
|
|
|
}})}} |
|
|
|
|
|
|
|
className="w-5 h-5 flex text-center placeholder:text-blue3A items-center pt-1 rounded border border-red5B text-sm text-gray-600 mr-2" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="px-2 pl-4 text-gray37 text-sm flex items-center "> |
|
|
|
<div className="px-2 pl-4 text-gray37 text-sm flex items-center "> |
|
|
|
<Checkbox name={`ADD_QUESTION_HAS_MINUS__${selectedCourse.id}`} /> |
|
|
|
<Checkbox name={`ADD_QUESTION_HAS_MINUS__${selectedCourse.id}`} /> |
|
|
@ -412,10 +420,21 @@ const AddQuestionsFromBank = ({ grades, addExamState, dispatch, stepClick, backS |
|
|
|
<div className="w-full flex justify-center mt-10"> |
|
|
|
<div className="w-full flex justify-center mt-10"> |
|
|
|
{addQuestionPopup == false && |
|
|
|
{addQuestionPopup == false && |
|
|
|
<div className="flex flex-col w-full items-center"> |
|
|
|
<div className="flex flex-col w-full items-center"> |
|
|
|
<button className=" w-4/5 bg-transparent text-xl text-blue3A border-gray-300 h-12 rounded-xl border mb-6" |
|
|
|
<div className="flex w-4/5 items-center justify-center"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type='file' className="hidden" id="Upload_Pdf_To_Exam"/> |
|
|
|
|
|
|
|
<label
|
|
|
|
|
|
|
|
htmlFor="Upload_Pdf_To_Exam" |
|
|
|
|
|
|
|
className=" w-1/3 ml-1 cursor-pointer bg-transparent text-xl flex items-center justify-center text-blue3A border-gray-300 h-12 rounded-xl border mb-6" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
آپلود PDF |
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
<button className=" w-2/3 mr-1 bg-transparent text-xl text-blue3A border-gray-300 h-12 rounded-xl border mb-6" |
|
|
|
onClick={() => { setFakeState(fakeState + 5); setNumberOfOptions(selectedCourse.numberOfOptions); setAddQuestionPopuo('component') }}> |
|
|
|
onClick={() => { setFakeState(fakeState + 5); setNumberOfOptions(selectedCourse.numberOfOptions); setAddQuestionPopuo('component') }}> |
|
|
|
اضافه کردن سوال جدید + |
|
|
|
اضافه کردن سوال جدید + |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<h1 className="w-4/5 text-center border-b border-red52 my-5 mx-0" style={{ lineHeight: '0.1em' }}> |
|
|
|
<h1 className="w-4/5 text-center border-b border-red52 my-5 mx-0" style={{ lineHeight: '0.1em' }}> |
|
|
|
<span className="bg-white py-0 px-10 text-blue3A" |
|
|
|
<span className="bg-white py-0 px-10 text-blue3A" |
|
|
|
>پایان سوالات</span> |
|
|
|
>پایان سوالات</span> |
|
|
|