|
|
@ -16,8 +16,8 @@ |
|
|
|
|
|
|
|
|
--> |
|
|
--> |
|
|
<form class="tb-multiple-input" name="multipleInputForm" ng-submit="vm.save()" novalidate autocomplete="off"> |
|
|
<form class="tb-multiple-input" name="multipleInputForm" ng-submit="vm.save()" novalidate autocomplete="off"> |
|
|
<div style="padding: 0 8px; margin: auto 0;"> |
|
|
<div style="padding: 0 8px;" ng-if="vm.entityDetected && vm.isAllParametersValid"> |
|
|
<div ng-show="vm.entityDetected" layout="row" layout-wrap ng-class="{'vertical-alignment': vm.isVerticalAlignment || vm.changeAlignment}"> |
|
|
<div layout="row" layout-wrap ng-class="{'vertical-alignment': vm.isVerticalAlignment || vm.changeAlignment}"> |
|
|
<div ng-repeat="key in vm.data" ng-style="{'width': (vm.isVerticalAlignment || vm.changeAlignment) ? '100%' : vm.inputWidthSettings}"> |
|
|
<div ng-repeat="key in vm.data" ng-style="{'width': (vm.isVerticalAlignment || vm.changeAlignment) ? '100%' : vm.inputWidthSettings}"> |
|
|
<div class="input-field" ng-if="(key.settings.dataKeyValueType === 'string') && !key.settings.dataKeyHidden"> |
|
|
<div class="input-field" ng-if="(key.settings.dataKeyValueType === 'string') && !key.settings.dataKeyHidden"> |
|
|
<md-input-container class="md-block"> |
|
|
<md-input-container class="md-block"> |
|
|
@ -129,7 +129,17 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="md-padding" layout="row" layout-align="end center" ng-if="vm.entityDetected && vm.settings.showActionButtons"> |
|
|
|
|
|
<md-button class="md-primary" ng-click="vm.discardAll()" style="max-height: 50px; margin-right:20px;" ng-disabled="!multipleInputForm.$dirty"> |
|
|
|
|
|
{{ 'action.undo' | translate }} |
|
|
|
|
|
</md-button> |
|
|
|
|
|
<md-button class="md-raised md-primary" type="submit" value="Submit" style="max-height: 50px; margin-right:20px;" |
|
|
|
|
|
ng-disabled="!multipleInputForm.$dirty || multipleInputForm.$invalid" ng-click="vm.isFocused = false"> |
|
|
|
|
|
{{ 'action.save' | translate }} |
|
|
|
|
|
</md-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="tb-multiple-input__errors" layout="column" layout-align="center center" style="height: 100%;" ng-if="!vm.entityDetected || !vm.isAllParametersValid"> |
|
|
<div style="text-align: center; font-size: 18px; color: #a0a0a0;" ng-hide="vm.entityDetected"> |
|
|
<div style="text-align: center; font-size: 18px; color: #a0a0a0;" ng-hide="vm.entityDetected"> |
|
|
{{ 'widgets.input-widgets.no-entity-selected' | translate }} |
|
|
{{ 'widgets.input-widgets.no-entity-selected' | translate }} |
|
|
</div> |
|
|
</div> |
|
|
@ -137,13 +147,4 @@ |
|
|
{{ 'widgets.input-widgets.not-allowed-entity' | translate }} |
|
|
{{ 'widgets.input-widgets.not-allowed-entity' | translate }} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="md-padding" layout="row" layout-align="end center" ng-if="vm.entityDetected && vm.settings.showActionButtons"> |
|
|
|
|
|
<md-button class="md-primary" ng-click="vm.discardAll()" style="max-height: 50px; margin-right:20px;" ng-disabled="!multipleInputForm.$dirty"> |
|
|
|
|
|
{{ 'action.undo' | translate }} |
|
|
|
|
|
</md-button> |
|
|
|
|
|
<md-button class="md-raised md-primary" type="submit" value="Submit" style="max-height: 50px; margin-right:20px;" |
|
|
|
|
|
ng-disabled="!multipleInputForm.$dirty || multipleInputForm.$invalid" ng-click="vm.isFocused = false"> |
|
|
|
|
|
{{ 'action.save' | translate }} |
|
|
|
|
|
</md-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</form> |
|
|
</form> |
|
|
|