Add exam Some Fixes

main
Pedram Keshavarzi 3 years ago
parent c5c7acb370
commit d00319b636
  1. 2
      src/view/addExam/index.js
  2. 10
      src/view/addExam/views/AddDescription.js
  3. 6
      src/view/addExam/views/AddQuestionsFromBank.js
  4. 2
      src/view/addProduct/Sidebar/index.js

@ -64,7 +64,7 @@ const AddExam = () => {
]
return(
<div className='flex flex-col w-[96%] py-[6%] bg-grayFD rtl'>
<div className='flex flex-col w-[96%] overflow-scroll overflow-x-hidden py-[6%] bg-grayFD rtl' style={{height: '100vh'}}>
<div className='flex w-full items-center py-4 pb-8 px-10 border-b border-gray-300'>
<h1 className="text-blue3A text-lg font-bold w-1/5 text-right px-4 border-r-4 border-blue65">
ساخت آزمون جدید

@ -47,6 +47,11 @@ const AddExamDescription = ({ grades, addExamState, dispatch, stepClick, backSte
range
calendar={persian}
locale={persian_fa}
renderButton={(direction, handleClick) => (
<button className="text-blue-500 font-bold mx-2" onClick={handleClick}>
{direction === "right" ? ">" : "<"}
</button>
)}
render={<CostumeDatePickerInput title='تاریخ و زمان شروع آزمون'/>}
plugins={[
@ -59,6 +64,11 @@ const AddExamDescription = ({ grades, addExamState, dispatch, stepClick, backSte
range
calendar={persian}
locale={persian_fa}
renderButton={(direction, handleClick) => (
<button className="text-blue-500 font-bold mx-2" onClick={handleClick}>
{direction === "right" ? ">" : "<"}
</button>
)}
render={<CostumeDatePickerInput title='تاریخ و زمان پایان آزمون'/>}
plugins={[

@ -262,11 +262,11 @@ const AddQuestionsFromBank = ({ grades, addExamState, dispatch, stepClick, backS
<div className=" rtl px-2 text-white bg-red52">
{item.selectedQuestions.length} سوال
</div>
{
selectedCourse.id == item.id && <p className=" text-left px-4" >
<p className=" text-left px-4" >
<span onClick={() => { dispatch({ type: 'REMOVE_EXAM_COURSE', payload: item }); setSelectedCourse(null); setFakeState(fakeState + 24) }}> x </span>
</p>
}
</div>
<p className="text-red52">

@ -12,7 +12,7 @@ const SideAP = () => {
انتشار محصول
</h1>
<div className="w-full px-6 flex rtl justify-between">
<button className="w-1/2 border border-blueED rounded-lg font-bold text-blueED py-4 ml-2" style={{background: 'rgba(16, 100, 205, 0.24)'}}>
<button className="w-1/2 border border-blueED rounded-lg font-bold text-blueED py-4 ml-2" >
ذخیره در پیشنویس
</button>
<button className="w-1/2 border border-blueCD rounded-lg font-bold text-white py-4 mr-2 bg-blueCD">

Loading…
Cancel
Save