 
           $scope.csWizardOptions.events = {
             'wizard-canceled' : wizardCanceled
-            'wizard-submitted' : wizardSubmitted
+            'wizard-submited' : wizardSubmitted
           }
           $scope.setOptions(resource, item, formMode, wizardMaxDepth)
           $scope.finish()


# ===== DIRECTIVE =============================================================

app.directive "csWizard", ['$rootScope', 'ResourceService', '$document', 'csDescriptorService', 'csLog', ($rootScope, ResourceService, $document, csDescriptorService, csLog) ->


  # ===== COMPILE =============================================================


    # ===== COMPILE DOM WITH APPROPRIATE DIRECTIVE ========

    csLog.set($scope, "csWizardPanel")
    #csLog.enable($scope)

    $scope.log("Start")

    if $scope.panel.directive
      $scope.log("Directive render")
