mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
ul and li in dropdwon collection in submissions form
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
#searchFieldEl>
|
#searchFieldEl>
|
||||||
</div>
|
</div>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<div class="scrollable-menu"
|
<ul class="scrollable-menu p-0"
|
||||||
aria-labelledby="dropdownMenuButton"
|
aria-labelledby="dropdownMenuButton"
|
||||||
(scroll)="onScroll($event)"
|
(scroll)="onScroll($event)"
|
||||||
infiniteScroll
|
infiniteScroll
|
||||||
@@ -18,25 +18,25 @@
|
|||||||
[scrollWindow]="false"
|
[scrollWindow]="false"
|
||||||
(scrolled)="onScrollDown()">
|
(scrolled)="onScrollDown()">
|
||||||
|
|
||||||
<button class="dropdown-item disabled" *ngIf="searchListCollection?.length == 0 && !(isLoading | async)">
|
<li class="dropdown-item disabled" *ngIf="searchListCollection?.length == 0 && !(isLoading | async)">
|
||||||
{{'submission.sections.general.no-collection' | translate}}
|
{{'submission.sections.general.no-collection' | translate}}
|
||||||
</button>
|
</li>
|
||||||
<ng-container *ngIf="searchListCollection?.length > 0">
|
<ng-container *ngIf="searchListCollection?.length > 0">
|
||||||
<button *ngFor="let listItem of searchListCollection"
|
<li *ngFor="let listItem of searchListCollection"
|
||||||
class="dropdown-item collection-item"
|
class="dropdown-item collection-item"
|
||||||
title="{{ listItem.collection.name }}"
|
title="{{ listItem.collection.name }}"
|
||||||
(click)="onSelect(listItem)">
|
(click)="onSelect(listItem)">
|
||||||
<ul class="list-unstyled mb-0">
|
<div class="list-unstyled mb-0">
|
||||||
<li class="list-item text-truncate text-secondary" *ngFor="let item of listItem.communities">
|
<div class="list-item text-truncate text-secondary" *ngFor="let item of listItem.communities">
|
||||||
{{ item.name}} <i class="fa fa-level-down" aria-hidden="true"></i>
|
{{ item.name}} <i class="fa fa-level-down" aria-hidden="true"></i>
|
||||||
</li>
|
</div>
|
||||||
<li class="list-item text-truncate text-primary font-weight-bold">{{ listItem.collection.name}}</li>
|
<div class="list-item text-truncate text-primary font-weight-bold">{{ listItem.collection.name}}</div>
|
||||||
</ul>
|
</div>
|
||||||
</button>
|
</li>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<button class="dropdown-item disabled" *ngIf="(isLoading | async)">
|
<button class="dropdown-item disabled" *ngIf="(isLoading | async)">
|
||||||
<ds-themed-loading message="{{'loading.default' | translate}}">
|
<ds-themed-loading message="{{'loading.default' | translate}}">
|
||||||
</ds-themed-loading>
|
</ds-themed-loading>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user