Files
btcpayserver/BTCPayServer/Views/UIStores/TestWebhook.cshtml
Dennis Reimann a9fbba5825 UI: Fix and unify localizer usage for page titles
Issue was caused by duplicate translation through a combination of `StringLocalizer` and `text-translate="true"` usage. Fixes #6622.
2025-03-11 10:54:17 +01:00

27 lines
1.0 KiB
Plaintext

@using BTCPayServer.HostedServices.Webhooks
@model EditWebhookViewModel
@inject WebhookSender WebhookSender
@{
ViewData.SetActivePage(StoreNavPages.Webhooks, StringLocalizer["Send a test event to a webhook endpoint"], Context.GetStoreData().Id);
}
<form method="post">
<div class="sticky-header">
<h2>@ViewData["Title"]</h2>
<button id="page-primary" type="submit" class="btn btn-primary mt-3" text-translate="true">Send test webhook</button>
</div>
<partial name="_StatusMessage" />
<div class="row">
<div class="col-lg-8">
<div class="form-group">
<label for="Type" class="form-label" text-translate="true">Event type</label>
<select
asp-items="@WebhookSender.GetSupportedWebhookTypes().Select(s => new SelectListItem(s.Value,s.Key))"
name="Type"
id="Type"
class="form-select w-auto"
></select>
</div>
</div>
</div>
</form>