Skip to content

Commit

Permalink
Set html classes to make the scripts work again (removed in OrchardCM…
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-spits-servico committed Sep 18, 2023
1 parent ccacef1 commit bb77c02
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<input type="hidden" name="@Html.NameFor(m => m.ContentTypes[i].ContentTypeName)"
value="@Model.ContentTypes[i].ContentTypeName" />
<div class="mb-3 form-check">
<input asp-for="ContentTypes[i].IsChecked" type="checkbox" class="form-check-input" />
<input asp-for="ContentTypes[i].IsChecked" type="checkbox" class="form-check-input content-type-checkbox" />
<label asp-for="ContentTypes[i].IsChecked" class="form-check-label">@Model.ContentTypes[i].ContentTypeDisplayName</label>
</div>
</div>
Expand Down Expand Up @@ -118,15 +118,15 @@
<ul class="list-group">
@for (int i = 0; i < Model.LimitedContentTypes.Length; i++)
{
var checkd = string.Equals(Model.LimitedContentTypes[i].ContentTypeName, Model.LimitedContentType);
var checkd = String.Equals(Model.LimitedContentTypes[i].ContentTypeName, Model.LimitedContentType);
var notChecked = !checkd;
<li class="list-group-item d-flex row px-0">
@* Select content types *@
<div class="col-12 col-md-3">
<input type="hidden" name="@Html.NameFor(m => m.LimitedContentTypes[i].ContentTypeName)"
value="@Model.LimitedContentTypes[i].ContentTypeName" />
<div class="mb-3 form-check">
<input type="radio" id="LimitedContentTypes_@i" asp-for="LimitedContentType" value="@Model.LimitedContentTypes[i].ContentTypeName" class="form-check-input" />
<input type="radio" id="LimitedContentTypes_@i" asp-for="LimitedContentType" value="@Model.LimitedContentTypes[i].ContentTypeName" class="form-check-input content-type-radio" />
<label for="LimitedContentTypes_@i" class="form-check-label">@Model.LimitedContentTypes[i].ContentTypeDisplayName</label>
</div>
</div>
Expand Down

0 comments on commit bb77c02

Please sign in to comment.