Skip to content
Snippets Groups Projects
Commit ea05af74 authored by Kristof De Langhe's avatar Kristof De Langhe
Browse files

67611: Import external source entry window layout changes

parent e2c4e6d2
No related branches found
No related tags found
No related merge requests found
......@@ -13,15 +13,17 @@
</div>
<h4>{{ (labelPrefix + 'select' | translate) }}</h4>
<div id="external-source-entry-collection" class="mb-3">
<div class="form-group">
<label for="collection">{{ (labelPrefix + 'collection' | translate) }}</label>
<input type="text" class="form-control" id="collection" placeholder="Enter collection ID" [(ngModel)]="collectionId">
</div>
</div>
<div id="external-source-entry-entities" class="mb-3">
<h5 class="font-weight-bold">{{ (labelPrefix + 'entities' | translate) }}</h5>
<div id="external-source-entry-collection" class="mb-3">
<div class="form-group">
<label for="collection">{{ (labelPrefix + 'collection' | translate) }}</label>
<input type="text" class="form-control" id="collection" placeholder="Enter collection ID" [(ngModel)]="collectionId">
</div>
</div>
<ds-search-results *ngIf="(localEntitiesRD$ | async)?.payload?.page?.length > 0"
[searchResults]="(localEntitiesRD$ | async)"
[sortConfig]="this.lookupRelationService.searchConfig?.sort"
......@@ -40,7 +42,7 @@
<label class="form-check-label" for="new-entity">{{ (labelPrefix + 'entities.new' | translate) }}</label>
</div>
</div>
<div id="external-source-entry-authority">
<div id="external-source-entry-authority" *ngIf="authorityEnabled">
<h5 class="font-weight-bold">{{ (labelPrefix + 'authority' | translate) }}</h5>
<div class="ml-4">
......
......@@ -142,6 +142,11 @@ export class ExternalSourceEntryImportModalComponent implements OnInit {
*/
importedObject: EventEmitter<ListableObject> = new EventEmitter<ListableObject>();
/**
* Should it display the ability to import the entry as an authority?
*/
authorityEnabled = false;
constructor(public modal: NgbActiveModal,
public lookupRelationService: LookupRelationService,
private selectService: SelectableListService,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment