mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2026-01-07 09:54:57 +01:00
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
@using BTCPayServer.Abstractions.Extensions
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@model BTCPayServer.Plugins.DataErasure.DataErasureSettings
|
|
@{
|
|
ViewData.SetActivePage("DataErasure", "Data Erasure", "DataErasure");
|
|
}
|
|
|
|
<partial name="_StatusMessage"/>
|
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
|
|
|
<div class="alert alert-warning">
|
|
<p>
|
|
This plugin erases buyer information on your store's invoices based on when they were created. THERE IS NO UNDOING THIS ACTION ONCE IT HAS EXECUTED.
|
|
</p>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-10">
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<div class="d-flex align-items-center">
|
|
<input asp-for="Enabled" type="checkbox" class="btcpay-toggle me-2"/>
|
|
<label asp-for="Enabled" class="form-label mb-0 me-1"></label>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="DaysToKeep" class="form-label">Days to keep data</label>
|
|
<input asp-for="DaysToKeep" type="number" class="form-control"/>
|
|
|
|
</div>
|
|
@if (Model.LastRunCutoff != null)
|
|
{
|
|
<div>Cleared data up to @Model.LastRunCutoff.Value.ToString("g")</div>
|
|
}
|
|
<button name="command" type="submit" value="save" class="btn btn-primary">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div> |