department-of-veterans-affairs/vets-website

View on GitHub
src/applications/edu-benefits/definitions/postHighSchoolTrainings.js

Summary

Maintainability
A
0 mins
Test Coverage
import EducationView from '../components/EducationView';
import monthYearRange from 'platform/forms-system/src/js/definitions/monthYearRange';

import { hoursTypeLabels, stateLabels } from '../utils/labels';

const uiSchema = {
  'ui:title': 'Education after high school',
  'ui:description':
    'Please list any courses or training programs you took after you graduated from high school.',
  'ui:options': {
    itemName: 'Training',
    viewField: EducationView,
    hideTitle: true,
  },
  items: {
    name: {
      'ui:title': 'Name of college, university or other training provider',
    },
    city: {
      'ui:title': 'City',
    },
    state: {
      'ui:title': 'State',
      'ui:options': {
        labels: stateLabels,
      },
    },
    dateRange: monthYearRange('From', 'To'),
    hours: {
      'ui:title': 'Hours completed',
    },
    hoursType: {
      'ui:title': 'Type of hours',
      'ui:widget': 'radio',
      'ui:options': {
        labels: hoursTypeLabels,
      },
    },
    degreeReceived: {
      'ui:title': 'Degree, diploma, or certificate received',
    },
    major: {
      'ui:title': 'What did you study?',
    },
  },
};

export default uiSchema;