2017-09-13 16:56:33 +09:00
|
|
|
@model CreateTokenViewModel
|
2017-09-13 15:47:34 +09:00
|
|
|
@{
|
2017-10-27 17:53:04 +09:00
|
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
2021-12-31 08:36:38 +01:00
|
|
|
ViewData.SetActivePage(StoreNavPages.Tokens, "Create New Token", Context.GetStoreData()?.Id);
|
2017-10-27 17:53:04 +09:00
|
|
|
ViewBag.HidePublicKey = ViewBag.HidePublicKey ?? false;
|
|
|
|
ViewBag.ShowStores = ViewBag.ShowStores ?? false;
|
2017-09-13 15:47:34 +09:00
|
|
|
}
|
|
|
|
<div class="row">
|
2022-01-27 03:56:46 +01:00
|
|
|
<div class="col-xxl-constrain col-xl-8">
|
2021-12-16 11:17:02 +01:00
|
|
|
<h3 class="mb-4">@ViewData["Title"]</h3>
|
2017-10-27 17:53:04 +09:00
|
|
|
<form method="post">
|
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="Label" class="form-label"></label>
|
2020-07-22 15:29:03 +02:00
|
|
|
@if (ViewBag.HidePublicKey)
|
2017-10-27 17:53:04 +09:00
|
|
|
{
|
|
|
|
<small class="text-muted">optional</small>
|
|
|
|
}
|
|
|
|
<input asp-for="Label" class="form-control" />
|
|
|
|
<span asp-validation-for="Label" class="text-danger"></span>
|
|
|
|
</div>
|
2020-07-22 15:29:03 +02:00
|
|
|
@if (!ViewBag.HidePublicKey)
|
2017-10-27 17:53:04 +09:00
|
|
|
{
|
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="PublicKey" class="form-label"></label>
|
2017-10-27 17:53:04 +09:00
|
|
|
<input asp-for="PublicKey" class="form-control" />
|
|
|
|
<span asp-validation-for="PublicKey" class="text-danger"></span>
|
2022-12-04 10:01:38 +01:00
|
|
|
<div class="form-text">Keep empty for server-initiated pairing.</div>
|
2020-07-22 15:29:03 +02:00
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@if (ViewBag.ShowStores)
|
2017-10-27 17:53:04 +09:00
|
|
|
{
|
|
|
|
<div class="form-group">
|
2021-10-25 00:15:08 -04:00
|
|
|
<label asp-for="Stores" class="form-label"></label>
|
2021-05-19 04:39:27 +02:00
|
|
|
<select asp-for="StoreId" asp-items="Model.Stores" class="form-select"></select>
|
2017-10-27 17:53:04 +09:00
|
|
|
<span asp-validation-for="StoreId" class="text-danger"></span>
|
2020-07-22 15:29:03 +02:00
|
|
|
</div>
|
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
else
|
|
|
|
{
|
2020-07-22 15:29:03 +02:00
|
|
|
<input type="hidden" asp-for="StoreId" />
|
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
<div class="form-group">
|
2021-11-18 01:04:20 -08:00
|
|
|
<input id="RequestPairing" type="submit" value="Request Pairing" class="btn btn-primary" />
|
2017-10-27 17:53:04 +09:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|