-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d5ebe4
commit 95726b8
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
28 changes: 14 additions & 14 deletions
28
src/OrchardCore.Modules/OrchardCore.Rules/Views/Items/ConditionGroup.Fields.Summary.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
@model ConditionGroupViewModel | ||
@inject IDisplayManager<Condition> DisplayManager | ||
|
||
@if (Model.Entries.Any()) | ||
{ | ||
<ol class="condition-group pt-3" data-conditiongroupid="@Model.Condition.ConditionId"> | ||
@foreach (var entry in Model.Entries) | ||
{ | ||
dynamic summary = await DisplayManager.BuildDisplayAsync(entry.Condition, null, "Summary"); | ||
summary.Condition = entry.Condition; | ||
<li class="list-group-item pr-0" data-conditionid="@entry.Condition.ConditionId"> | ||
@await DisplayAsync(summary) | ||
</li> | ||
} | ||
</ol> | ||
} | ||
else | ||
@if (Model.Entries.Length == 0) | ||
{ | ||
<p class="alert alert-warning message-warning mb-0 ms-0 mt-3 me-3">@T["No conditions found. Please add at least one condition."]</p> | ||
|
||
return; | ||
} | ||
|
||
<ol class="list-group condition-group pt-3" data-conditiongroupid="@Model.Condition.ConditionId"> | ||
@foreach (var entry in Model.Entries) | ||
{ | ||
dynamic summary = await DisplayManager.BuildDisplayAsync(entry.Condition, null, "Summary"); | ||
summary.Condition = entry.Condition; | ||
<li class="list-group-item pr-0" data-conditionid="@entry.Condition.ConditionId"> | ||
@await DisplayAsync(summary) | ||
</li> | ||
} | ||
</ol> |