Created
August 14, 2018 15:15
-
-
Save kizzlebot/b0818b579351f27ff215fc3751b9dc63 to your computer and use it in GitHub Desktop.
define-feed-details.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
#%L | |
thinkbig-ui-feed-manager | |
%% | |
Copyright (C) 2017 ThinkBig Analytics | |
%% | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
#L% | |
--> | |
<card-layout body-css="md-padding"> | |
<header-section> | |
<div layout="row" layout-align="space-between-center" flex> | |
<div class="card-title" flex>{{"views.define-feed-details.DS" | translate}}</div> | |
<h2 class="card-sub-header">{{vm.stepNumber}} {{"views.define-feed-general-info.of" | translate}} {{vm.totalSteps}}</h2> | |
</div> | |
<div layout="row" layout-align="space-between-center" flex class="layout-padding-top"> | |
<div class="card-sub-header" flex>{{"views.define-feed-details.ChooseDS" | translate}}</div> | |
<thinkbig-feed-errors-card-header></thinkbig-feed-errors-card-header> | |
</div> | |
</header-section> | |
<body-section> | |
<ng-form name="vm.feedDetailsForm"> | |
<div layout="column" ng-if="vm.loading == false"> | |
<div style="padding-bottom:10px;" ng-if="vm.model.inputProcessor != null"> | |
<div class="md-subhead"> {{"views.define-feed-details.ChooseTS" | translate}} </div> | |
<div class="layout-padding-indent" style="padding-top:8px;"> | |
<md-radio-group ng-model="vm.inputProcessorId" layout="row"> | |
<md-radio-button ng-repeat="inputProcessor in vm.inputProcessors" | |
ng-value="inputProcessor.processorId" | |
aria-label="{{inputProcessor.name}}"> | |
{{inputProcessor.name}} | |
<div class="hint" ng-if="vm.model.inputProcessor.config.comments != ''">{{vm.inputProcessor.config.comments}}</div> | |
</md-radio-button> | |
</md-radio-group> | |
</div> | |
</div> | |
<div ng-if="vm.model.inputProcessor != null && (vm.model.inputProcessor.feedPropertiesUrl == null || vm.model.inputProcessor.feedPropertiesUrl == undefined)"> | |
<div class="layout-padding-indent"> | |
<md-input-container ng-class="{'condensed':property.renderType == 'radio' }" nifi-property-input the-form="vm.feedDetailsForm" class="md-block layout-padding-top-bottom" | |
property="property" flex-gt-sm ng-repeat="property in vm.model.inputProcessor.properties | filter:{userEditable:true}" track by property.key/> | |
</div> | |
</div> | |
<div ng-if="vm.model.inputProcessor != null && vm.model.inputProcessor.feedPropertiesUrl != null"> | |
<custom-processor-rendering template-url="{{vm.model.inputProcessor.feedPropertiesUrl}}" processor="vm.model.inputProcessor" the-form="vm.feedDetailsForm"></custom-processor-rendering> | |
</div> | |
<div ng-repeat="processor in vm.model.nonInputProcessors track by processor.processorId" ng-if="processor.userEditable && (processor.allProperties | filter:{key: 'display.step'}).length == 0"> | |
<div class="md-subhead" ng-if="(processor.allProperties | filter:{key: 'display.step'}).length == 0 && (processor.feedPropertiesUrl == null || processor.feedPropertiesUrl == undefined)">{{processor.name}}</div> | |
<div class="layout-padding-indent" ng-if="processor.feedPropertiesUrl == null || processor.feedPropertiesUrl == undefined"> | |
<div ng-repeat="property in processor.properties | filter:{userEditable:true} track by property.key"> | |
<md-input-container ng-class="{'condensed':property.renderType == 'radio' }" nifi-property-input the-form="vm.feedDetailsForm" property="property" | |
class="md-block layout-padding-top-bottom" flex-gt-sm/> | |
</div> | |
</div> | |
<div ng-if="processor.feedPropertiesUrl != null"> | |
<custom-processor-rendering template-url="{{processor.feedPropertiesUrl}}" processor="processor" the-form="vm.feedDetailsForm"></custom-processor-rendering> | |
</div> | |
</div> | |
</div> | |
<div ng-if="vm.loading"> | |
<md-progress-circular md-diameter="36px"></md-progress-circular> | |
</div> | |
<thinkbig-step-buttons can-continue="vm.isValid && vm.feedDetailsForm.$valid" step-index="{{::vm.stepIndex}}"></thinkbig-step-buttons> | |
</ng-form> | |
</body-section> | |
</card-layout> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment