     gse.fields = [
       {
         type: 'gradeScheme',
-        key: 'investments',
+        key: 'gradeSchemes',
         templateOptions: {
           btnText:'Add another investment',
           fields: [

@gradecraft.controller 'GradeSchemeElementsCtrl', ['$scope', '$http', 'GradeSchemeElementsService', ($scope, $http, GradeSchemeElementsService) ->
  GradeSchemeElementsService.getGradeSchemeElements().success (response)->
    #$scope.generateInputs(response.grade_scheme_elements)

  gse = @
  gse.onSubmit = () ->
    alert(JSON.stringify(gse.model), null, 2)
  #$scope.gse.model = {}
  # $scope.gse.fields = []

  gse.author = {
    # name: 'Joe Zhou',
    # url: 'https://plus.google.com/u/0/111062476999618400219/posts'
  }
  gse.exampleTitle = 'Repeating Section';
  # gse.env = {
  #   angularVersion: angular.version.full,
  #   formlyVersion: formlyVersion
  # }

  fieldOne = {
    className: 'row',

        }
      }
    ]
    return
  gse.originalFields = angular.copy(gse.fields);

  return
]
