Move storage path and correspondent to bottom of form

This commit is contained in:
Martin Tan 2023-08-22 18:19:50 +08:00
parent 6e6e84294e
commit 80110c30c2

View File

@ -147,19 +147,6 @@
[suggestions]="suggestions?.dates" [suggestions]="suggestions?.dates"
[error]="error?.created_date" [error]="error?.created_date"
></app-input-date> ></app-input-date>
<app-input-select
[items]="correspondents"
i18n-title
title="Correspondent"
formControlName="correspondent"
[allowNull]="true"
(createNew)="createCorrespondent($event)"
[suggestions]="suggestions?.correspondents"
*appIfPermissions="{
action: PermissionAction.View,
type: PermissionType.Correspondent
}"
></app-input-select>
<app-input-select <app-input-select
[items]="documentTypes" [items]="documentTypes"
@ -208,6 +195,15 @@
</div> </div>
</div> </div>
<app-input-tags
formControlName="tags"
[suggestions]="suggestions?.tags"
*appIfPermissions="{
action: PermissionAction.View,
type: PermissionType.Tag
}"
></app-input-tags>
<app-input-select <app-input-select
[items]="storagePaths" [items]="storagePaths"
i18n-title i18n-title
@ -223,14 +219,20 @@
type: PermissionType.StoragePath type: PermissionType.StoragePath
}" }"
></app-input-select> ></app-input-select>
<app-input-tags
formControlName="tags" <app-input-select
[suggestions]="suggestions?.tags" [items]="correspondents"
i18n-title
title="Correspondent"
formControlName="correspondent"
[allowNull]="true"
(createNew)="createCorrespondent($event)"
[suggestions]="suggestions?.correspondents"
*appIfPermissions="{ *appIfPermissions="{
action: PermissionAction.View, action: PermissionAction.View,
type: PermissionType.Tag type: PermissionType.Correspondent
}" }"
></app-input-tags> ></app-input-select>
</ng-template> </ng-template>
</li> </li>