UNPKG

kong-dashboard

Version:
111 lines (102 loc) 3.13 kB
<div class="col s11"> <input-property ng-if="$ctrl.propertySchema.type == 'string' && !$ctrl.propertySchema.enum" type="'text'" style="display:block" error="$ctrl.error" label="$ctrl.label" key="$ctrl.key" path="$ctrl.path" schema="$ctrl.propertySchema" object="$ctrl.object" ></input-property> <input-property ng-if="$ctrl.propertySchema.type == 'url'" type="'url'" style="display:block" error="$ctrl.error" label="$ctrl.label" key="$ctrl.key" path="$ctrl.path" schema="$ctrl.propertySchema" object="$ctrl.object" ></input-property> <input-property ng-if="$ctrl.propertySchema.type == 'number'" type="'number'" style="display:block" error="$ctrl.error" label="$ctrl.label" key="$ctrl.key" path="$ctrl.path" schema="$ctrl.propertySchema" object="$ctrl.object" ></input-property> <inline-array-property ng-if="$ctrl.propertySchema.type == 'array' && ['string', 'number'].indexOf($ctrl.propertySchema.items.type) > -1 && !$ctrl.propertySchema.items.enum" type="'text'" style="display:block" error="$ctrl.error" label="$ctrl.label" key="$ctrl.key" path="$ctrl.path" schema="$ctrl.propertySchema" object="$ctrl.object" ></inline-array-property> <select-property ng-if="$ctrl.propertySchema.type == 'string' && $ctrl.propertySchema.enum" type="'text'" style="display:block" error="$ctrl.error" label="$ctrl.label" key="$ctrl.key" path="$ctrl.path" schema="$ctrl.propertySchema" object="$ctrl.object" ></select-property> <multi-select-property ng-if="$ctrl.propertySchema.type == 'array' && $ctrl.propertySchema.items.type == 'string' && $ctrl.propertySchema.items.enum" style="display:block" error="$ctrl.error" label="$ctrl.label" key="$ctrl.key" path="$ctrl.path" schema="$ctrl.propertySchema" object="$ctrl.object" ></multi-select-property> <checkbox-property ng-if="$ctrl.propertySchema.type == 'boolean'" style="display:block" error="$ctrl.error" label="$ctrl.label" key="$ctrl.key" path="$ctrl.path" schema="$ctrl.propertySchema" object="$ctrl.object" ></checkbox-property> <div class="card-panel" ng-if="$ctrl.propertySchema.type == 'object'" style="margin-bottom: 40px;"> <div class="card-title" style="padding: 0; margin-bottom: 40px; border-bottom: 1px #ccc solid; color: #ccc"> {{ $ctrl.key }} </div> <div style="margin-top: -15px;" id="{{ 'error-' + $ctrl.path }}" class="red-text errors" ng-if="$ctrl.error" ng-bind-html="$ctrl.error | arrayToHtmlList"> </div > <object-properties schema="$ctrl.propertySchema" object="$ctrl.object[$ctrl.key]" path="$ctrl.path" errors="$ctrl.error" ></object-properties> </div> </div> <div class="col s1"> <a class="btn-floating waves-effect waves-light red" ng-if="$ctrl.removable" ng-click="$ctrl.deleteProperty()"> <i class="material-icons">delete</i> </a> </div>