@ -32,22 +32,23 @@
<ul class="list-group">
@for (var i = 0; i < Model.ConsentInput.IdentityScopes.Count; i++)
{
var identityScope = Model.ConsentInput.IdentityScopes[i];
<li class="list-group-item">
<div class="form-check">
<label asp-for="@Model.ConsentInput.IdentityScopes[i]. Checked" class="form-check-label">
<input asp-for="@Model.ConsentInput.IdentityScopes[i] .Checked" class="form-check-input" />
@Model.ConsentInput.IdentityScopes[i] .DisplayName
@if (Model.ConsentInput.IdentityScopes[i] .Required)
<label asp-for="@identityScope.Checked" for="ConsentInput_IdentityScopes_@(i)__ Checked" class="form-check-label">
<input abp-id-name="@Model.ConsentInput.IdentityScopes[i].Checked" asp-for="@identityScope .Checked" class="form-check-input" />
@identityScope .DisplayName
@if (identityScope .Required)
{
<span><em>(required)</em></span>
}
</label>
</div>
<input asp-for="@Model.ConsentInput.IdentityScopes[i] .Name" type="hidden" /> @* TODO: Use attributes on the view model instead of using hidden here *@
@if (Model.ConsentInput.IdentityScopes[i] .Description != null)
<input abp-id-name="@Model.ConsentInput.IdentityScopes[i].Name" asp-for="@identityScope .Name" type="hidden" /> @* TODO: Use attributes on the view model instead of using hidden here *@
@if (identityScope .Description != null)
{
<div class="consent-description">
@Model.ConsentInput.IdentityScopes[i] .Description
@identityScope .Description
</div>
}
</li>
@ -62,22 +63,23 @@
<ul class="list-group">
@for (var i = 0; i < Model.ConsentInput.ApiScopes.Count; i++)
{
var apiScope = Model.ConsentInput.ApiScopes[i];
<li class="list-group-item">
<div class="form-check">
<label asp-for="@Model.ConsentInput.ApiScopes[i]. Checked" class="form-check-label">
<input asp-for="@Model.ConsentInput.ApiScopes[i].Checked" class="form-check-input" disabled="@Model.ConsentInput.ApiScopes[i] .Required" />
@Model.ConsentInput.ApiScopes[i] .DisplayName
@if (Model.ConsentInput.ApiScopes[i] .Required)
<label asp-for="@apiScope.Checked" for="ConsentInput_ApiScopes_@(i)__ Checked" class="form-check-label">
<input abp-id-name="@Model.ConsentInput.ApiScopes[i].Checked" asp-for="@apiScope.Checked" class="form-check-input" disabled="@apiScope .Required" />
@apiScope .DisplayName
@if (apiScope .Required)
{
<span><em>(required)</em></span>
}
</label>
</div>
<input asp-for="@Model.ConsentInput.ApiScopes[i] .Name" type="hidden" /> @* TODO: Use attributes on the view model instead of using hidden here *@
@if (Model.ConsentInput.ApiScopes[i] .Description != null)
<input abp-id-name="@Model.ConsentInput.ApiScopes[i].Name" asp-for="@apiScope .Name" type="hidden" /> @* TODO: Use attributes on the view model instead of using hidden here *@
@if (apiScope .Description != null)
{
<div class="consent-description">
@Model.ConsentInput.ApiScopes[i] .Description
@apiScope .Description
</div>
}
</li>