Skip to content

Commit e592e6d

Browse files
authored
Update dropdowns in ListPartDetailAdmin to Bootstrap 5 (#11860)
1 parent 5cf3f82 commit e592e6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartDetailAdmin.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ else
4747
<div class="mb-n1">
4848
<div class="input-group input-group-sm w-50 d-inline-flex has-filter">
4949
<div class="input-group-prepend">
50-
<button class="btn btn-sm dropdown-toggle" style="border:1px solid lightgrey" type="button" data-toggle="dropdown" id="filter-dropdown" aria-haspopup="true" aria-expanded="false">
50+
<button class="btn btn-sm dropdown-toggle" style="border:1px solid lightgrey" type="button" data-bs-toggle="dropdown" id="filter-dropdown" aria-haspopup="true" aria-expanded="false">
5151
<i class="fa fa-filter" title="@T["Filters"]" aria-hidden="true"></i>
5252
</button>
5353
<div class="dropdown-menu @if (CultureInfo.CurrentUICulture.IsRightToLeft()) {<text>dropdown-menu-start</text>}" aria-labelledby="filter-dropdown">
@@ -76,9 +76,9 @@ else
7676
}
7777
else if (authorizedContentTypeDefinitions.Count() > 1)
7878
{
79-
<a class="btn btn-sm btn-success dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
79+
<button class="btn btn-sm btn-success dropdown-toggle" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
8080
@T["Create"]
81-
</a>
81+
</button>
8282
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
8383
@foreach (var containedContentTypeDefinition in authorizedContentTypeDefinitions)
8484
{

0 commit comments

Comments
 (0)