107 lines
4.1 KiB
Text
107 lines
4.1 KiB
Text
|
|
@page
|
||
|
|
@model Yavsc.Pages.Consent.Index
|
||
|
|
@{
|
||
|
|
}
|
||
|
|
|
||
|
|
<div class="page-consent">
|
||
|
|
<div class="lead">
|
||
|
|
@if (Model.View.ClientLogoUrl != null)
|
||
|
|
{
|
||
|
|
<div class="client-logo"><img src="@Model.View.ClientLogoUrl"></div>
|
||
|
|
}
|
||
|
|
<h1>
|
||
|
|
@Model.View.ClientName
|
||
|
|
<small class="text-muted">is requesting your permission</small>
|
||
|
|
</h1>
|
||
|
|
<p>Uncheck the permissions you do not wish to grant.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-sm-8">
|
||
|
|
<partial name="_ValidationSummary" />
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<form asp-page="/Consent/Index">
|
||
|
|
<input type="hidden" asp-for="Input.ReturnUrl" />
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-sm-8">
|
||
|
|
@if (Model.View.IdentityScopes.Any())
|
||
|
|
{
|
||
|
|
<div class="form-group">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<span class="glyphicon glyphicon-user"></span>
|
||
|
|
Personal Information
|
||
|
|
</div>
|
||
|
|
<ul class="list-group list-group-flush">
|
||
|
|
@foreach (var scope in Model.View.IdentityScopes)
|
||
|
|
{
|
||
|
|
<partial name="_ScopeListItem" model="@scope" />
|
||
|
|
}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
|
||
|
|
@if (Model.View.ApiScopes.Any())
|
||
|
|
{
|
||
|
|
<div class="form-group">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<span class="glyphicon glyphicon-tasks"></span>
|
||
|
|
Application Access
|
||
|
|
</div>
|
||
|
|
<ul class="list-group list-group-flush">
|
||
|
|
@foreach (var scope in Model.View.ApiScopes)
|
||
|
|
{
|
||
|
|
<partial name="_ScopeListItem" model="scope" />
|
||
|
|
}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
|
||
|
|
<div class="form-group">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
||
|
|
Description
|
||
|
|
</div>
|
||
|
|
<div class="card-body">
|
||
|
|
<input class="form-control" placeholder="Description or name of device" asp-for="Input.Description" autofocus>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
@if (Model.View.AllowRememberConsent)
|
||
|
|
{
|
||
|
|
<div class="form-group">
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input" asp-for="Input.RememberConsent">
|
||
|
|
<label class="form-check-label" asp-for="Input.RememberConsent">
|
||
|
|
<strong>Remember My Decision</strong>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-sm-4">
|
||
|
|
<button name="Input.button" value="yes" class="btn btn-primary" autofocus>Yes, Allow</button>
|
||
|
|
<button name="Input.button" value="no" class="btn btn-secondary">No, Do Not Allow</button>
|
||
|
|
</div>
|
||
|
|
<div class="col-sm-4 col-lg-auto">
|
||
|
|
@if (Model.View.ClientUrl != null)
|
||
|
|
{
|
||
|
|
<a class="btn btn-outline-info" href="@Model.View.ClientUrl">
|
||
|
|
<span class="glyphicon glyphicon-info-sign"></span>
|
||
|
|
<strong>@Model.View.ClientName</strong>
|
||
|
|
</a>
|
||
|
|
}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|