Files
member-console/internal/embeds/templates/products.html
T
cgalo5758 408fa6f5a6 Add page anatomy parts and UI quality gate
- Add shared ui_*.html parts (pageHeader, sectionHeader, statusBadge,
  emptyState) parsed into every template set
- Add anatomy lint rules with a shrinking allowlist and screen-coverage
  check
- Add make screens capture harness with contact sheets and baseline diff
- Compose member and FedWiki regions server-side so pages arrive
  complete
- Rebuild Domains and Integrations on the parts as pilots
2026-08-30 04:05:31 -05:00

98 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Products - {{ deploymentName }}</title>
<meta name="description" content="Console for {{ deploymentName }} members">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="htmx-config" content='{"includeIndicatorStyles": false}'>
<link href="/static/bootstrap.css" rel="stylesheet">
<script defer src="/static/bootstrap.bundle.js"></script>
<script defer src="/static/shell.js"></script>
<script defer src="/static/htmx.min.js"></script>
<script defer src="/static/error-handler.js"></script>
<script defer src="/static/success-toast.js"></script>
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
<link rel="manifest" href="/static/site.webmanifest">
<link href="/static/app.css" rel="stylesheet">
</head>
<body class="d-flex flex-column vh-100" hx-headers='{"X-CSRF-Token": "{{ .CSRFToken }}"}'>
{{ template "shell_topbar.html" .Shell }}
<div class="d-flex flex-column flex-lg-row flex-grow-1">
{{ template "shell_rail_member.html" .Shell }}
<!-- Main Content -->
<div class="flex-fill p-4">
<div class="container-xxl px-0">
<h1>Products</h1>
<!-- Your Entitlements Section -->
<div class="row">
<div class="col-12">
<div class="card mt-3">
<div class="card-header">Your Entitlements</div>
<div class="card-body">
<!-- Composed on the server (page-anatomy "A page arrives
complete"); re-fetched only on the entitlements-changed event. -->
<div hx-get="/partials/member/entitlements" hx-trigger="entitlements-changed from:body" hx-swap="innerHTML">{{ .Entitlements }}</div>
</div>
</div>
</div>
</div>
<!-- Available Products Section -->
<div class="row mt-4">
<div class="col-12">
<div class="card">
<div class="card-header">Available Products</div>
<div class="card-body">
<!-- Plans -->
<h2 class="text-muted mb-3 h6">Plans</h2>
<div id="member-plans">{{ .Plans }}</div>
<!-- Add-ons -->
<div class="mt-4">{{ .Addons }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Toast Container -->
<div class="toast-container">
<div id="errorToast" class="toast align-items-center text-bg-danger border-0" role="alert" aria-live="assertive"
aria-atomic="true">
<div class="d-flex">
<div class="toast-body" id="errorToastBody">
An error occurred. Please try again.
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
aria-label="Close"></button>
</div>
</div>
<div id="successToast" class="toast align-items-center text-bg-success border-0" role="status" aria-live="polite"
aria-atomic="true">
<div class="d-flex">
<div class="toast-body" id="successToastBody">
Done.
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast"
aria-label="Close"></button>
</div>
</div>
</div>
</body>
</html>