Add all steps and write review step
Basic steps with text inputs to test the navigation and formatting, add final review step component to show all values
This commit is contained in:
parent
06d4fd718b
commit
c040b004ad
14 changed files with 468 additions and 106 deletions
24
src/Components/CreateImageWizard/steps/registration.js
Normal file
24
src/Components/CreateImageWizard/steps/registration.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import componentTypes from '@data-driven-forms/react-form-renderer/component-types';
|
||||
|
||||
export const registerValues = {
|
||||
'subscribe-now-radio': 'Embed an activation key and register systems on first boot',
|
||||
'register-later-radio-button': 'Register the system later'
|
||||
};
|
||||
|
||||
export default {
|
||||
title: 'Registration',
|
||||
name: 'registration',
|
||||
nextStep: 'packages',
|
||||
fields: [
|
||||
{
|
||||
component: componentTypes.RADIO,
|
||||
label: 'Register the system',
|
||||
name: 'register-system',
|
||||
initialValue: 'register-later-radio-button',
|
||||
options: Object.entries(registerValues).map(([ key, title ]) => ({
|
||||
label: title,
|
||||
value: key
|
||||
}))
|
||||
}
|
||||
]
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue