staff-member-pages.js 971 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: 'Category',
  9. camelName: 'laborCategoryId',
  10. type: 'autocomplete',
  11. apiPrefix: '/api/labor-categories'
  12. },
  13. {
  14. titleName: 'Location',
  15. camelName: 'locationId',
  16. type: 'autocomplete',
  17. apiPrefix: '/api/locations'
  18. },
  19. {
  20. titleName: 'Staffing Agency',
  21. camelName: 'staffingAgencyId',
  22. type: 'autocomplete',
  23. apiPrefix: '/api/staffing-agencies'
  24. },
  25. {
  26. inList: false,
  27. camelName: 'wage',
  28. type: 'currency'
  29. }
  30. ],
  31. layout: [
  32. {
  33. section: null,
  34. rows: [
  35. [ 'name', 'title', 'wage' ],
  36. [ 'locationId' ]
  37. ]
  38. },
  39. {
  40. section: 'Staffing information',
  41. rows: [
  42. [ 'laborCategoryId', 'staffingAgencyId' ]
  43. ]
  44. }
  45. ]
  46. })