staff-member-pages.js 554 B

1234567891011121314151617181920212223242526272829
  1. const { pages } = require('@alancnet/material-framework/app/crud')
  2. pages({
  3. camelName: 'staffMember',
  4. columns: [
  5. { camelName: 'name', row: 1 },
  6. { camelName: 'title', row: 2 },
  7. {
  8. titleName: 'Staffing Agency',
  9. camelName: 'staffingAgencyId',
  10. type: 'autocomplete',
  11. apiPrefix: '/api/staffing-agencies'
  12. }
  13. ],
  14. layout: [
  15. {
  16. section: null,
  17. rows: [
  18. [ 'name', 'title' ]
  19. ]
  20. },
  21. {
  22. section: 'Staffing information',
  23. rows: [
  24. [ 'staffingAgencyId' ]
  25. ]
  26. }
  27. ]
  28. })