Commit 9390b1cd authored by Hellmich, Christoph's avatar Hellmich, Christoph
Browse files

Remove test custom element

parent 66f51401
......@@ -3,14 +3,7 @@
angular.module('ddaApp')
.constant('customElements', [
{
'fieldName': 'customElement', // = Ordnername in components/wizardEditor/
'category': '- Development -',
'fieldOptions': {
'displayName': 'Custom Element'
}
},
{
'fieldName': 'checkbox',
'fieldName': 'checkbox', // = Ordnername in components/wizardEditor/
'category': '- Development -',
'fieldOptions': {
'displayName': 'Checkbox'
......
<!-- <div fg-tabs-pane="Properties">
<div fg-property-field-common="{ displayname: true, tooltip: true }"></div>
<div fg-property-field-value>
<input date-range-picker fg-update-pattern
options="{ 'singleDatePicker': true }"
type="text"
class="form-control"
name="fieldValue"
ng-model="field.value"/>
</div>
</div>
<div fg-tabs-pane="Validation">
<div fg-property-field-validation="{ required: true }"></div>
</div> -->
<div fg-tabs-pane="Properties">
<div fg-property-field-common="{ displayname: true, tooltip: true }"></div>
<div fg-property-field-value>
</div>
</div>
<div fg-tabs-pane="Validation">
<div fg-property-field-validation="{ required: true }"></div>
</div>
<!-- <input date-range-picker fg-field-input fg-update-pattern class="date-picker"
options="{ 'singleDatePicker': true }"
type="text"
ng-model="form.data[field.schema.name]"
id="{{ field.$_id }}"
tabindex="{{ tabIndex }}"
ng-required="field.schema.validation.required"/> -->
<div ng-controller="customElementController">
<button type="button" class="btn btn-default" ng-click="load()" tabindex="{{ tabIndex }}" ng-required="field.schema.validation.required">Test</button>
<div class="list-group" ng-show="steps.length > 0">
<button ng-repeat="step in steps" type="button" class="list-group-item">{{ step.name }}</button>
</div>
</div>
'use strict';
angular.module('ddaApp').controller('customElementController', function($scope, $state, Step, form, fgConfig, FgField) {
$scope.steps = [];
$scope.load = function() {
Step.query(function(result) {
console.log(result);
$scope.steps = result;
});
};
$scope.loadAll = function() {
};
$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