Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const AddFlavorForm = () =>
- <GraphQLAddForm
- backUrl="/ui/openstack/flavors"
- addQuery={ADD_FLAVOR}
- getQuery={GET_FLAVORS}
- objType="flavors"
- cacheQuery="createFlavor"
- >
- {({ handleSubmit }) => (
- <ValidatedForm
- initialValue={initialValue}
- onSubmit={handleSubmit}
- >
- <TextField id="name" label="Name" />
- <TextField id="vcpus" label="VCPUs" type="number" />
- <TextField id="ram" label="RAM" type="number" />
- <TextField id="disk" label="Disk" type="number" />
- <Button type="submit" variant="raised">Add Flavor</Button>
- </ValidatedForm>
- )}
- </GraphQLAddForm>
Add Comment
Please, Sign In to add comment