|
|
|
@ -15,7 +15,7 @@ |
|
|
|
limitations under the License. |
|
|
|
|
|
|
|
--> |
|
|
|
<md-dialog aria-label="{{ vm.importTitle | translate }}"> |
|
|
|
<md-dialog aria-label="{{ vm.importTitle | translate }}" class="tb-import-stepper"> |
|
|
|
<md-toolbar> |
|
|
|
<div class="md-toolbar-tools"> |
|
|
|
<h2 translate>{{ vm.importTitle }}</h2> |
|
|
|
@ -27,7 +27,7 @@ |
|
|
|
</md-toolbar> |
|
|
|
<md-progress-linear class="md-warn" md-mode="indeterminate" ng-disabled="!$root.loading" |
|
|
|
ng-show="$root.loading"></md-progress-linear> |
|
|
|
<span style="min-height: 5px;" flex="" ng-show="!$root.loading"></span> |
|
|
|
<span style="max-height: 5px; height: 5px;" flex ng-show="!$root.loading"></span> |
|
|
|
<md-dialog-content> |
|
|
|
<md-stepper id="import-stepper" md-mobile-step-text="vm.isMobileStepText" md-vertical="vm.isVertical" |
|
|
|
md-linear="vm.isLinear" md-alternative="vm.isAlternative"> |
|
|
|
@ -83,7 +83,7 @@ |
|
|
|
</md-step-actions> |
|
|
|
</md-step> |
|
|
|
|
|
|
|
<md-step md-label="Select config import"> |
|
|
|
<md-step md-label="Import configuration"> |
|
|
|
<md-step-body> |
|
|
|
<div flex layout="row" layout-xs="column"> |
|
|
|
<md-input-container class="md-block" style="min-width: 120px"> |
|
|
|
@ -95,13 +95,13 @@ |
|
|
|
</md-select> |
|
|
|
</md-input-container> |
|
|
|
<md-input-container class="md-block"> |
|
|
|
<md-checkbox ng-model="vm.importParams.isHeader" aria-label="Checkbox 1"> |
|
|
|
<md-checkbox ng-model="vm.importParams.isHeader" aria-label="First line is header"> |
|
|
|
First line is header |
|
|
|
</md-checkbox> |
|
|
|
</md-input-container> |
|
|
|
<md-input-container class="md-block"> |
|
|
|
<md-checkbox ng-model="vm.importParams.isUpdate" aria-label="Checkbox 1"> |
|
|
|
Update parameters |
|
|
|
<md-checkbox ng-model="vm.importParams.isUpdate" aria-label="Update attributes/telemetry"> |
|
|
|
Update attributes/telemetry |
|
|
|
</md-checkbox> |
|
|
|
</md-input-container> |
|
|
|
</div> |
|
|
|
@ -122,8 +122,10 @@ |
|
|
|
|
|
|
|
<md-step md-label="Select columns type"> |
|
|
|
<md-step-body> |
|
|
|
<tb-table-columns-assignment columns="vm.columnsParam" |
|
|
|
entity-type="vm.entityType"></tb-table-columns-assignment> |
|
|
|
<form name="vm.theFormStep3"> |
|
|
|
<tb-table-columns-assignment columns="vm.columnsParam" the-form="vm.theFormStep3" |
|
|
|
entity-type="vm.entityType"></tb-table-columns-assignment> |
|
|
|
</form> |
|
|
|
</md-step-body> |
|
|
|
|
|
|
|
<md-step-actions layout="row"> |
|
|
|
@ -133,35 +135,35 @@ |
|
|
|
<md-button ng-disabled="$root.loading" ng-click="vm.cancel()"> |
|
|
|
{{ 'action.cancel' | translate }} |
|
|
|
</md-button> |
|
|
|
<md-button class="md-primary md-raised" ng-disabled="$root.loading" ng-click="vm.nextStep(4);"> |
|
|
|
<md-button class="md-primary md-raised" |
|
|
|
ng-disabled="$root.loading || !vm.theFormStep3.$dirty || !vm.theFormStep3.$valid" |
|
|
|
ng-click="vm.nextStep(4);"> |
|
|
|
Continue |
|
|
|
</md-button> |
|
|
|
</md-step-actions> |
|
|
|
</md-step> |
|
|
|
|
|
|
|
<md-step md-label="Creat new device"> |
|
|
|
<md-step md-label="Creating new entities"> |
|
|
|
<md-step-body> |
|
|
|
<md-progress-linear md-mode="determinate" value="{{vm.determinateValue}}"></md-progress-linear> |
|
|
|
</md-step-body> |
|
|
|
</md-step> |
|
|
|
<md-step md-label="Creat new Entitys"> |
|
|
|
<md-step-body> |
|
|
|
<div flex layout="row" ng-repeat="(key, value) in vm.statistical"> |
|
|
|
<md-list flex layout="column"> |
|
|
|
<md-subheader class="md-no-sticky">{{key}}</md-subheader> |
|
|
|
<md-list-item class="md-2-line" ng-repeat="(info, infoValue) in vm.statistical[key]" ng-click="null"> |
|
|
|
<div class="md-list-item-text"> |
|
|
|
<p>{{ info }}: {{ infoValue }}</p> |
|
|
|
</div> |
|
|
|
</md-list-item> |
|
|
|
</md-list> |
|
|
|
<md-step md-label="Done"> |
|
|
|
<md-step-body layout="row"> |
|
|
|
<div flex ng-repeat="(key, value) in vm.statistical"> |
|
|
|
<div flex layout="column"> |
|
|
|
<div class="md-subhead" style="font-weight: 500; margin: 0.4em 0 0.6em;">{{key}}</div> |
|
|
|
<div class="md-body-1" ng-repeat="(info, infoValue) in vm.statistical[key]"> |
|
|
|
{{ info }}: {{ infoValue }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</md-step-body> |
|
|
|
<md-step-actions> |
|
|
|
<md-step-actions layout="row"> |
|
|
|
<span flex></span> |
|
|
|
<md-button ng-disabled="$root.loading" ng-click="vm.cancel()"> |
|
|
|
{{ 'action.cancel' | translate }} |
|
|
|
</md-button> |
|
|
|
<!--<md-button ng-disabled="$root.loading" ng-click="vm.cancel()">--> |
|
|
|
<!--{{ 'action.cancel' | translate }}--> |
|
|
|
<!--</md-button>--> |
|
|
|
<md-button class="md-primary md-raised" ng-disabled="$root.loading" ng-click="vm.finishExport();"> |
|
|
|
Ok |
|
|
|
</md-button> |
|
|
|
@ -171,13 +173,13 @@ |
|
|
|
</md-stepper> |
|
|
|
</md-dialog-content> |
|
|
|
<!--<md-dialog-actions layout="row">--> |
|
|
|
<!--<span flex></span>--> |
|
|
|
<!--<md-button ng-disabled="$root.loading || !theForm.$dirty || !theForm.$valid || !vm.importData" type="submit"--> |
|
|
|
<!--class="md-raised md-primary">--> |
|
|
|
<!--{{ 'action.import' | translate }}--> |
|
|
|
<!--</md-button>--> |
|
|
|
<!--<md-button ng-disabled="$root.loading" ng-click="vm.cancel()" style="margin-right:20px;">{{ 'action.cancel'--> |
|
|
|
<!--| translate }}--> |
|
|
|
<!--</md-button>--> |
|
|
|
<!--<span flex></span>--> |
|
|
|
<!--<md-button ng-disabled="$root.loading || !theForm.$dirty || !theForm.$valid || !vm.importData" type="submit"--> |
|
|
|
<!--class="md-raised md-primary">--> |
|
|
|
<!--{{ 'action.import' | translate }}--> |
|
|
|
<!--</md-button>--> |
|
|
|
<!--<md-button ng-disabled="$root.loading" ng-click="vm.cancel()" style="margin-right:20px;">{{ 'action.cancel'--> |
|
|
|
<!--| translate }}--> |
|
|
|
<!--</md-button>--> |
|
|
|
<!--</md-dialog-actions>--> |
|
|
|
</md-dialog> |
|
|
|
|