           console.log "Failed to create waterpoint", waterpoint
           for field, message of waterpoint._issues
             flash.error = "#{field}: #{message}"
+
   .controller 'WaterpointEditCtrl', ($scope, $http, $routeParams, Waterpoint, FacilityForm, flash) ->
     Waterpoint.get id: $routeParams.id, (waterpoint) ->
       $scope.form = waterpoint

          console.log "Failed to create request", request
          for field, message of request._issues.attribute
            flash.error = "#{field}: #{message}"
  .controller 'RequestListCtrl', ($scope, Request) ->
    $scope.status = 'open'
    $scope.filterStatus = () ->

      Request.query query, (requests) ->
        $scope.requests = requests._items
    $scope.filterStatus()

  .controller 'RequestTriageCtrl', ($scope, $http, $routeParams, $filter, Request, Waterpoint, flash) ->
    Request.get id: $routeParams.id, (request) ->
      if request.expected_datetime
