Commit fd832197 authored by Hellmich, Christoph's avatar Hellmich, Christoph
Browse files

Remove test next step element

parent 979e664b
......@@ -145,7 +145,6 @@
<script src="scripts/app/wizardEditor/wizardEditor-step-delete-dialog.controller.js"></script>
<script src="scripts/app/wizardEditor/wizardEditor-wizard-dialog.controller.js"></script>
<script src="scripts/app/wizardEditor/wizardEditor-wizard-delete-dialog.controller.js"></script>
<script src="scripts/components/wizardEditor/nextStep/nextStep.controller.js"></script>
<script src="scripts/components/wizardEditor/simpleConditional/simpleConditional-directive.js"></script>
<script src="scripts/components/wizardEditor/templateImporter/templateImporter.controller.js"></script>
<script src="scripts/components/wizardEditor/tree.service.js"></script>
......
<div ng-controller="nextStepController">
<div fg-tabs-pane="Properties">
<div fg-property-field-common="{ displayname: false }"></div>
<div fg-property-field-value>
<select class="form-control" name="fieldValue" ng-model="field.value" ng-options="step as step.name for step in steps track by step.treeRow">
<option value=""></option>
</select>
<div class="checkbox">
<label title="Set the initial value of this field.">
<input type="checkbox" name="fieldValue" ng-model="field.hidden"/>
Hide element, when running the wizard
</label>
</div>
</div>
<!-- <div jsonify="fields"></div> -->
</div>
</div>
<div id="{{ field.$_id }}" style="margin-bottom: 0px; padding-top: 7px" ng-controller="nextStepController">
{{ form.data[field.schema.name].name }}
(<i class="fa" ng-class="{ 'fa-eye-slash': field.schema.hidden, 'fa-eye': !field.schema.hidden }"></i>)
TODO: Update step, when name of next step change
<div jsonify="form" ng-init="field.value = getStep(form.data[field.schema.name].id)"></div>
</div>
'use strict';
angular.module('ddaApp').controller('nextStepController', function($scope, $state, Wizard, Step, form, fgConfig, FgField) {
$scope.steps = [];
$scope.loadAll = function() {
Wizard.steps({
id: $state.params.id
}, function(steps) {
$scope.steps = steps.filter(function(step) {
return step.id != $state.params.stepId;
});
});
};
$scope.getStep = function(stepId) {
return Step.get({'id': stepId });
}
$scope.loadAll();
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment