mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
Updates to forms and added picker for module form.
This commit is contained in:
1 parent
a08c48b8b1
commit
d22b5decda
4 files changed
+69
-10
No files matched your search
@@ -20,6 +20,14 @@ const ModuleForm = ({onSubmit, onCancel}) => {
|
||||
defaultModule.ModuleID = Math.floor(100000 + Math.random() * 900000);
|
||||
defaultModule.ModuleImage = 'https://images.freeimages.com/images/small-preview/cf5/cellphone-1313194.jpg';
|
||||
|
||||
const levels = [
|
||||
{value: 3, label: '3 (Foundation)'},
|
||||
{value: 4, label: '4 (First Year)'},
|
||||
{value: 5, label: '5 (Second Year)'},
|
||||
{value: 6, label: '6 (Third Year)'},
|
||||
{value: 7, label: '7 (Masters)'},
|
||||
];
|
||||
|
||||
|
||||
// State ----------------------
|
||||
|
||||
@@ -60,8 +68,10 @@ const ModuleForm = ({onSubmit, onCancel}) => {
|
||||
onChange={(value) => handleChange('ModuleName', value)}
|
||||
/>
|
||||
|
||||
<Form.InputText
|
||||
<Form.InputSelect
|
||||
label='Module Level'
|
||||
prompt={'Select module level...'}
|
||||
options={levels}
|
||||
value={module.ModuleLevel}
|
||||
onChange={(value) => handleChange('ModuleLevel', value)}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user