|
@@ -16,7 +16,7 @@ |
|
@@ -16,7 +16,7 @@ |
16
|
|
16
|
|
17
|
-->
|
17
|
-->
|
18
|
<form>
|
18
|
<form>
|
19
|
- <mat-toolbar fxLayout="row" color="primary">
|
19
|
+ <mat-toolbar color="primary">
|
20
|
<h2 translate>{{ importTitle }}</h2>
|
20
|
<h2 translate>{{ importTitle }}</h2>
|
21
|
<span fxFlex></span>
|
21
|
<span fxFlex></span>
|
22
|
<div [tb-help]="'entitiesImport'"></div>
|
22
|
<div [tb-help]="'entitiesImport'"></div>
|
|
@@ -44,13 +44,11 @@ |
|
@@ -44,13 +44,11 @@ |
44
|
</tb-file-input>
|
44
|
</tb-file-input>
|
45
|
</fieldset>
|
45
|
</fieldset>
|
46
|
</form>
|
46
|
</form>
|
47
|
- <div fxLayout="row">
|
|
|
48
|
- <span fxFlex></span>
|
47
|
+ <div fxLayout="row" fxLayoutAlign="end center" fxLayoutGap="20px">
|
49
|
<button mat-button
|
48
|
<button mat-button
|
50
|
- style="margin-right: 20px;"
|
|
|
51
|
[disabled]="(isLoading$ | async)"
|
49
|
[disabled]="(isLoading$ | async)"
|
52
|
(click)="cancel()">{{ 'action.cancel' | translate }}</button>
|
50
|
(click)="cancel()">{{ 'action.cancel' | translate }}</button>
|
53
|
- <button mat-button mat-raised-button
|
51
|
+ <button mat-raised-button
|
54
|
[disabled]="(isLoading$ | async) || selectFileFormGroup.invalid || !selectFileFormGroup.dirty"
|
52
|
[disabled]="(isLoading$ | async) || selectFileFormGroup.invalid || !selectFileFormGroup.dirty"
|
55
|
color="primary"
|
53
|
color="primary"
|
56
|
(click)="nextStep(2)">{{ 'action.continue' | translate }}</button>
|
54
|
(click)="nextStep(2)">{{ 'action.continue' | translate }}</button>
|
|
@@ -62,7 +60,7 @@ |
|
@@ -62,7 +60,7 @@ |
62
|
<fieldset [disabled]="isLoading$ | async" fxLayout="column">
|
60
|
<fieldset [disabled]="isLoading$ | async" fxLayout="column">
|
63
|
<mat-form-field class="mat-block">
|
61
|
<mat-form-field class="mat-block">
|
64
|
<mat-label translate>import.csv-delimiter</mat-label>
|
62
|
<mat-label translate>import.csv-delimiter</mat-label>
|
65
|
- <mat-select required matInput formControlName="delim">
|
63
|
+ <mat-select required formControlName="delim">
|
66
|
<mat-option *ngFor="let delimiter of delimiters" [value]="delimiter.key">
|
64
|
<mat-option *ngFor="let delimiter of delimiters" [value]="delimiter.key">
|
67
|
{{ delimiter.value }}
|
65
|
{{ delimiter.value }}
|
68
|
</mat-option>
|
66
|
</mat-option>
|
|
@@ -78,16 +76,15 @@ |
|
@@ -78,16 +76,15 @@ |
78
|
</div>
|
76
|
</div>
|
79
|
</fieldset>
|
77
|
</fieldset>
|
80
|
</form>
|
78
|
</form>
|
81
|
- <div fxLayout="row">
|
79
|
+ <div fxLayout="row" fxLayoutGap="20px">
|
82
|
<button mat-button
|
80
|
<button mat-button
|
83
|
[disabled]="(isLoading$ | async)"
|
81
|
[disabled]="(isLoading$ | async)"
|
84
|
(click)="previousStep()">{{ 'action.back' | translate }}</button>
|
82
|
(click)="previousStep()">{{ 'action.back' | translate }}</button>
|
85
|
<span fxFlex></span>
|
83
|
<span fxFlex></span>
|
86
|
<button mat-button
|
84
|
<button mat-button
|
87
|
- style="margin-right: 20px;"
|
|
|
88
|
[disabled]="(isLoading$ | async)"
|
85
|
[disabled]="(isLoading$ | async)"
|
89
|
(click)="cancel()">{{ 'action.cancel' | translate }}</button>
|
86
|
(click)="cancel()">{{ 'action.cancel' | translate }}</button>
|
90
|
- <button mat-button mat-raised-button
|
87
|
+ <button mat-raised-button
|
91
|
[disabled]="(isLoading$ | async)"
|
88
|
[disabled]="(isLoading$ | async)"
|
92
|
color="primary"
|
89
|
color="primary"
|
93
|
(click)="nextStep(3)">{{ 'action.continue' | translate }}</button>
|
90
|
(click)="nextStep(3)">{{ 'action.continue' | translate }}</button>
|
|
@@ -98,16 +95,15 @@ |
|
@@ -98,16 +95,15 @@ |
98
|
<ng-template matStepLabel>{{ 'import.stepper-text.column-type' | translate }}</ng-template>
|
95
|
<ng-template matStepLabel>{{ 'import.stepper-text.column-type' | translate }}</ng-template>
|
99
|
<tb-table-columns-assignment formControlName="columnsParam" [entityType]="entityType"></tb-table-columns-assignment>
|
96
|
<tb-table-columns-assignment formControlName="columnsParam" [entityType]="entityType"></tb-table-columns-assignment>
|
100
|
</form>
|
97
|
</form>
|
101
|
- <div fxLayout="row">
|
98
|
+ <div fxLayout="row" fxLayoutGap="20px">
|
102
|
<button mat-button
|
99
|
<button mat-button
|
103
|
[disabled]="(isLoading$ | async)"
|
100
|
[disabled]="(isLoading$ | async)"
|
104
|
(click)="previousStep()">{{ 'action.back' | translate }}</button>
|
101
|
(click)="previousStep()">{{ 'action.back' | translate }}</button>
|
105
|
<span fxFlex></span>
|
102
|
<span fxFlex></span>
|
106
|
<button mat-button
|
103
|
<button mat-button
|
107
|
- style="margin-right: 20px;"
|
|
|
108
|
[disabled]="(isLoading$ | async)"
|
104
|
[disabled]="(isLoading$ | async)"
|
109
|
(click)="cancel()">{{ 'action.cancel' | translate }}</button>
|
105
|
(click)="cancel()">{{ 'action.cancel' | translate }}</button>
|
110
|
- <button mat-button mat-raised-button
|
106
|
+ <button mat-raised-button
|
111
|
[disabled]="(isLoading$ | async) || columnTypesFormGroup.invalid || !columnTypesFormGroup.dirty"
|
107
|
[disabled]="(isLoading$ | async) || columnTypesFormGroup.invalid || !columnTypesFormGroup.dirty"
|
112
|
color="primary"
|
108
|
color="primary"
|
113
|
(click)="nextStep(4)">{{ 'action.continue' | translate }}</button>
|
109
|
(click)="nextStep(4)">{{ 'action.continue' | translate }}</button>
|
|
@@ -131,9 +127,8 @@ |
|
@@ -131,9 +127,8 @@ |
131
|
{{ translate.instant('import.message.error-entities', {count: this.statistical.error.entity}) }}
|
127
|
{{ translate.instant('import.message.error-entities', {count: this.statistical.error.entity}) }}
|
132
|
</p>
|
128
|
</p>
|
133
|
</div>
|
129
|
</div>
|
134
|
- <div fxLayout="row">
|
|
|
135
|
- <span fxFlex></span>
|
|
|
136
|
- <button mat-button mat-raised-button
|
130
|
+ <div fxLayout="row" fxLayoutAlign="end center" fxLayoutGap="20px">
|
|
|
131
|
+ <button mat-raised-button
|
137
|
[disabled]="(isLoading$ | async)"
|
132
|
[disabled]="(isLoading$ | async)"
|
138
|
color="primary"
|
133
|
color="primary"
|
139
|
(click)="nextStep(6)">{{ 'action.ok' | translate }}</button>
|
134
|
(click)="nextStep(6)">{{ 'action.ok' | translate }}</button>
|