Guest User

Untitled

a guest
Aug 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. const AddFlavorForm = () =>
  2. <GraphQLAddForm
  3. backUrl="/ui/openstack/flavors"
  4. addQuery={ADD_FLAVOR}
  5. getQuery={GET_FLAVORS}
  6. objType="flavors"
  7. cacheQuery="createFlavor"
  8. >
  9. {({ handleSubmit }) => (
  10. <ValidatedForm
  11. initialValue={initialValue}
  12. onSubmit={handleSubmit}
  13. >
  14. <TextField id="name" label="Name" />
  15. <TextField id="vcpus" label="VCPUs" type="number" />
  16. <TextField id="ram" label="RAM" type="number" />
  17. <TextField id="disk" label="Disk" type="number" />
  18. <Button type="submit" variant="raised">Add Flavor</Button>
  19. </ValidatedForm>
  20. )}
  21. </GraphQLAddForm>
Add Comment
Please, Sign In to add comment