mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
64a7abe53a
* Remove xxl breakpoint * Remove code bg * Form updates * Update PoS accordion * Update forms * Fix webhook password toggle * Update highlight js styles * Page updates * Style unformatted checkboxes * Fix typo * Update accordions * Update policies domain mapping * Update toggles and checkboxes * Update storage pages * Fix specter logo filename casing * Update checkout experience view * Update webhook view * Re-add used negative margins * Update bootstrap * POS layout fixes * Decrease size of info icon in main headline * Update BTCPayServer/Views/Stores/ModifyWebhook.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>
42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
@using BTCPayServer.Abstractions.Contracts
|
|
@model BTCPayServer.Controllers.ManageController.NotificationSettingsViewModel
|
|
@inject IEnumerable<INotificationHandler> NotificationHandlers
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ManageNavPages.Notifications, "Notification preferences");
|
|
}
|
|
|
|
<form method="post" asp-action="NotificationSettings">
|
|
@if (Model.All)
|
|
{
|
|
<div>
|
|
All notifications are disabled.
|
|
<button type="submit" class="btn btn-primary" name="command" value="enable-all">Enable</button>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="form-group">
|
|
<p>Do not receive notifications for</p>
|
|
<div class="card">
|
|
<ul class="list-group list-group-flush">
|
|
@for (var index = 0; index < Model.DisabledNotifications.Count; index++)
|
|
{
|
|
var item = Model.DisabledNotifications[index];
|
|
<li class="list-group-item">
|
|
<input type="hidden" asp-for="DisabledNotifications[index].Value"/>
|
|
<input type="checkbox" asp-for="DisabledNotifications[index].Selected" class="form-check-inline"/>
|
|
<label class="mb-0 cursor-pointer" asp-for="DisabledNotifications[index].Selected">
|
|
@item.Text
|
|
</label>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<button type="submit" class="btn btn-secondary" name="command" value="disable-all">Disable all</button>
|
|
<button type="submit" class="btn btn-primary" name="command" value="update">Save</button>
|
|
</div>
|
|
}
|
|
</form>
|