mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 15:41:29 +01:00
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
56 lines
2.3 KiB
Text
56 lines
2.3 KiB
Text
@using BTCPayServer.Abstractions.Models
|
|
@model IndexViewModel
|
|
@{
|
|
ViewData.SetActivePage(ManageNavPages.Index, "Update your account");
|
|
}
|
|
|
|
|
|
<form method="post">
|
|
<div class="sticky-header">
|
|
<h2>@ViewData["Title"]</h2>
|
|
<button type="submit" id="save" class="btn btn-primary">Save</button>
|
|
</div>
|
|
<partial name="_StatusMessage" />
|
|
<div class="col-xxl-constrain col-xl-8">
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
{
|
|
<div asp-validation-summary="All"></div>
|
|
}
|
|
<div class="form-group">
|
|
<div class="col-md-6">
|
|
<label asp-for="Username" class="form-label"></label>
|
|
<input asp-for="Username" class="form-control" disabled />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-6">
|
|
<label asp-for="Email" class="form-label"></label>
|
|
<input asp-for="Email" class="form-control" />
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
</div>
|
|
<div class="col-md-6 d-flex align-items-end">
|
|
@if (Model.IsEmailConfirmed)
|
|
{
|
|
<span class="badge bg-success p-2 my-1">
|
|
<vc:icon symbol="checkmark" />
|
|
confirmed
|
|
</span>
|
|
}
|
|
else
|
|
{
|
|
<button asp-action="SendVerificationEmail" class="btn btn-secondary">Send verification email</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
<h3 class="mt-5 mb-4">Delete Account</h3>
|
|
<div id="danger-zone">
|
|
<a id="delete-user" class="btn btn-outline-danger mb-5" data-confirm-input="DELETE" data-bs-toggle="modal" data-bs-target="#ConfirmModal" asp-action="DeleteUserPost" data-description="This action will also delete all stores, invoices, apps and data associated with the user.">Delete Account</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<partial name="_Confirm"
|
|
model="@(new ConfirmModel("Delete user", "The user will be permanently deleted. This action will also delete all stores, invoices, apps and data associated with your user.", "Delete", actionName: nameof(BTCPayServer.Controllers.UIManageController.DeleteUserPost)))"/>
|
|
|
|
@section PageFootContent {
|
|
<partial name="_ValidationScriptsPartial"/>
|
|
}
|