mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
86 lines
4.1 KiB
Plaintext
86 lines
4.1 KiB
Plaintext
@model ConsentViewModel
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-12 text-center">
|
|
<div class="page-consent">
|
|
<div class="row page-header">
|
|
<div class="col-md-6 col-md-offset-3">
|
|
@if (Model.ClientLogoUrl != null)
|
|
{
|
|
<div class="client-logo"><img src="@Model.ClientLogoUrl" style="max-height: 100px; max-width: 100px;"></div>
|
|
}
|
|
<h1>
|
|
@Model.ClientName
|
|
<small>is requesting your permission</small>
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 col-md-offset-4">
|
|
@await Html.PartialAsync("_ValidationSummary")
|
|
|
|
<form asp-action="Index" class="consent-form">
|
|
<input type="hidden" asp-for="ReturnUrl" />
|
|
|
|
<div>Uncheck the permissions you do not wish to grant.</div>
|
|
|
|
@if (Model.IdentityScopes.Any())
|
|
{
|
|
<div class="panel panel-default consent-buttons">
|
|
<div class="panel-heading">
|
|
<span class="glyphicon glyphicon-user"></span>
|
|
Personal Information
|
|
</div>
|
|
<ul class="list-group">
|
|
@foreach (var scope in Model.IdentityScopes)
|
|
{
|
|
@await Html.PartialAsync("_ScopeListItem", scope)
|
|
}
|
|
</ul>
|
|
</div>
|
|
}
|
|
|
|
@if (Model.ResourceScopes.Any())
|
|
{
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<span class="glyphicon glyphicon-tasks"></span>
|
|
Application Access
|
|
</div>
|
|
<ul class="list-group">
|
|
@foreach (var scope in Model.ResourceScopes)
|
|
{
|
|
@await Html.PartialAsync("_ScopeListItem", scope)
|
|
}
|
|
</ul>
|
|
</div>
|
|
}
|
|
|
|
@if (Model.AllowRememberConsent)
|
|
{
|
|
<div class="consent-remember abc-checkbox">
|
|
<input class="consent-scopecheck" asp-for="RememberConsent" />
|
|
<label asp-for="RememberConsent"><strong>Remember My Decision</strong></label>
|
|
</div>
|
|
}
|
|
|
|
<div class="consent-buttons">
|
|
<button name="button" value="yes" class="btn btn-primary" autofocus>Yes, Allow</button>
|
|
<button name="button" value="no" class="btn">No, Do Not Allow</button>
|
|
@if (Model.ClientUrl != null)
|
|
{
|
|
<a class="pull-right btn btn-default" target="_blank" href="@Model.ClientUrl">
|
|
<span class="glyphicon glyphicon-info-sign"></span>
|
|
<strong>@Model.ClientName</strong>
|
|
</a>
|
|
}
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |