Button consistency sweep + mobile responsiveness patches
- Standardize modal dismiss/cancel buttons to btn-outline-secondary across 70+ views - Remove btn-sm from page-level Create and Back buttons (Index + Detail pages) - Fix Edit buttons on Details pages: btn-secondary -> btn-warning - Fix form Cancel/Back links: btn-secondary -> btn-outline-secondary - Add 10 CSS patches to site.css for mobile/tablet responsiveness: top-navbar overflow prevention, page-header flex-wrap at 575px, table action button min-height override, notification dropdown width cap, tablet content padding Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
@using PowderCoating.Core.Entities
|
||||
@using PowderCoating.Core.Entities
|
||||
@using PowderCoating.Core.Enums
|
||||
@model Company
|
||||
@{
|
||||
ViewData["Title"] = $"Manage – {Model.CompanyName}";
|
||||
ViewData["Title"] = $"Manage – {Model.CompanyName}";
|
||||
var planConfigs = (dynamic)ViewBag.PlanConfigs;
|
||||
|
||||
string PlanName(int plan)
|
||||
@@ -22,11 +22,11 @@
|
||||
|
||||
<div class="container-fluid py-3" style="max-width:900px">
|
||||
<div class="d-flex align-items-center gap-3 mb-3">
|
||||
<a asp-action="Index" class="btn btn-outline-secondary btn-sm">
|
||||
<a asp-action="Index" class="btn btn-outline-secondary">
|
||||
<i class="bi bi-arrow-left me-1"></i>Back
|
||||
</a>
|
||||
<a asp-controller="Companies" asp-action="Edit" asp-route-id="@Model.Id"
|
||||
class="btn btn-outline-secondary btn-sm">
|
||||
class="btn btn-outline-secondary">
|
||||
<i class="bi bi-building me-1"></i>Edit Company
|
||||
</a>
|
||||
<h4 class="mb-0">
|
||||
@@ -66,9 +66,9 @@
|
||||
<dt class="col-7 text-muted">Users</dt>
|
||||
<dd class="col-5 fw-semibold">@ViewBag.UserCount</dd>
|
||||
<dt class="col-7 text-muted">Stripe Customer</dt>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeCustomerId ?? "—")</code></dd>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeCustomerId ?? "—")</code></dd>
|
||||
<dt class="col-7 text-muted">Stripe Sub</dt>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeSubscriptionId ?? "—")</code></dd>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeSubscriptionId ?? "—")</code></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
@@ -99,7 +99,7 @@
|
||||
<form method="post" asp-action="UpdateSubscription" asp-route-id="@Model.Id">
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
@* Comped / Internal card — prominent *@
|
||||
@* Comped / Internal card — prominent *@
|
||||
<div class="card border-0 shadow-sm mb-3 @(Model.IsComped ? "border-success border-2" : "")">
|
||||
<div class="card-header border-0 py-3 @(Model.IsComped ? "bg-success bg-opacity-10" : "bg-white")">
|
||||
<h6 class="mb-0 fw-semibold">
|
||||
@@ -351,11 +351,11 @@
|
||||
</div>
|
||||
<dl class="row small mb-3">
|
||||
<dt class="col-5 text-muted">Invoice</dt>
|
||||
<dd class="col-7 font-monospace" id="refund-invoice-number">—</dd>
|
||||
<dd class="col-7 font-monospace" id="refund-invoice-number">—</dd>
|
||||
<dt class="col-5 text-muted">Amount Paid</dt>
|
||||
<dd class="col-7 fw-semibold" id="refund-amount-paid">—</dd>
|
||||
<dd class="col-7 fw-semibold" id="refund-amount-paid">—</dd>
|
||||
<dt class="col-5 text-muted">Max Refundable</dt>
|
||||
<dd class="col-7 fw-semibold text-success" id="refund-max-amount">—</dd>
|
||||
<dd class="col-7 fw-semibold text-success" id="refund-max-amount">—</dd>
|
||||
</dl>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-medium">Refund Amount</label>
|
||||
@@ -374,7 +374,7 @@
|
||||
<div id="refund-result" class="d-none"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
|
||||
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
|
||||
<button type="button" class="btn btn-danger" id="refund-submit-btn" onclick="submitRefund()">
|
||||
<i class="bi bi-arrow-counterclockwise me-1"></i>Issue Refund
|
||||
</button>
|
||||
@@ -402,7 +402,7 @@
|
||||
|
||||
@section Scripts {
|
||||
<script>
|
||||
// ââ€â‚¬Ã¢â€â‚¬ State for the refund modal ââ€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬
|
||||
// ── State for the refund modal ────────────────────────────────────────────────
|
||||
let _refundPaymentIntentId = null;
|
||||
let _refundMaxCents = 0;
|
||||
let _refundAmountPaid = '';
|
||||
@@ -442,7 +442,7 @@ async function loadPaymentHistory() {
|
||||
: '';
|
||||
const refundedCell = ch.amountRefunded
|
||||
? `<span class="text-danger small">${ch.amountRefunded}</span>`
|
||||
: '<span class="text-muted small">—</span>';
|
||||
: '<span class="text-muted small">—</span>';
|
||||
const desc = ch.description ? `<span class="text-muted">${ch.description}</span>` : `<code class="small">${ch.id}</code>`;
|
||||
|
||||
// Show Refund button only for succeeded charges that still have something refundable
|
||||
@@ -469,7 +469,7 @@ async function loadPaymentHistory() {
|
||||
}
|
||||
|
||||
function openRefundModal(chargeId, refundableCents, amountPaid, displayLabel) {
|
||||
_refundPaymentIntentId = chargeId; // reusing variable — now holds charge ID
|
||||
_refundPaymentIntentId = chargeId; // reusing variable — now holds charge ID
|
||||
_refundMaxCents = refundableCents;
|
||||
_refundAmountPaid = amountPaid;
|
||||
_refundInvoiceNumber = displayLabel;
|
||||
@@ -509,7 +509,7 @@ async function submitRefund() {
|
||||
}
|
||||
|
||||
submitBtn.disabled = true;
|
||||
submitBtn.innerHTML = '<span class="spinner-border spinner-border-sm me-1"></span>Processing…';
|
||||
submitBtn.innerHTML = '<span class="spinner-border spinner-border-sm me-1"></span>Processing…';
|
||||
|
||||
try {
|
||||
const formData = new FormData();
|
||||
|
||||
Reference in New Issue
Block a user