mirror of
https://github.com/kbenestad/ClubLedger.git
synced 2026-06-18 09:44:33 +00:00
- PIN input: removed literal bullet placeholder (was the reported gibberish) - Search placeholders: ... -> ... (ASCII) - Custom... period option in statement: uses … entity - app.js/common.js/style.css/bar.js/cashier.js: en/em dashes in comments -> ASCII hyphens; Unicode minus sign U+2212 -> plain hyphen - main.py: arrows and dashes in comments -> ASCII - bar.html/cashier.html: standalone page titles and placeholders fixed Intentional: pound sign in currency defaults stays as UTF-8 (served with Content-Type: text/html; charset=utf-8 and correct HTTP headers). https://claude.ai/code/session_01JuRTR5Xjx8emQsyerBgGU7
98 lines
3.1 KiB
HTML
98 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Cashier - ClubLedger</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<nav>
|
|
<span class="brand" id="navBrand">ClubLedger</span>
|
|
<a class="nav-link active" href="/cashier">Cashier</a>
|
|
<a class="nav-link" href="/bar">Bar</a>
|
|
</nav>
|
|
|
|
<div class="view">
|
|
|
|
<!-- Register -->
|
|
<div class="panel">
|
|
<h2>Register New Member</h2>
|
|
<form id="registerForm">
|
|
<div class="form-row">
|
|
<label>Member Number</label>
|
|
<input type="text" id="reg-number" placeholder="e.g. 001" required>
|
|
</div>
|
|
<div class="form-row">
|
|
<label>Full Name</label>
|
|
<input type="text" id="reg-name" placeholder="Name" required>
|
|
</div>
|
|
<div class="form-row">
|
|
<label>PIN</label>
|
|
<input type="password" id="reg-pin" placeholder="Min 4 digits" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Register</button>
|
|
</form>
|
|
<div id="registerMsg" class="msg"></div>
|
|
</div>
|
|
|
|
<!-- Top Up -->
|
|
<div class="panel">
|
|
<h2>Top Up Account</h2>
|
|
<div class="search-row">
|
|
<input type="text" id="cashierSearch" placeholder="Search member...">
|
|
<button class="btn" onclick="cashierSearchMembers()">Search</button>
|
|
</div>
|
|
<div id="cashierMemberList" class="member-pick-list"></div>
|
|
|
|
<div id="cashierForm" class="hidden">
|
|
<div class="selected-member-box" id="cashierSelected"></div>
|
|
<div class="form-row">
|
|
<label>Amount (<span class="currency-unit"></span>)</label>
|
|
<input type="number" id="cashierAmount" placeholder="e.g. 1000" min="1" step="1">
|
|
</div>
|
|
<div class="form-row">
|
|
<label>Staff</label>
|
|
<select id="cashierStaff"></select>
|
|
</div>
|
|
<div class="form-row">
|
|
<label>Note (optional)</label>
|
|
<input type="text" id="cashierNote" placeholder="">
|
|
</div>
|
|
<button class="btn btn-primary" onclick="doTopup()">Top Up</button>
|
|
<button class="btn" onclick="clearCashierSelection()">Cancel</button>
|
|
</div>
|
|
<div id="cashierMsg" class="msg"></div>
|
|
</div>
|
|
|
|
<!-- Member list -->
|
|
<div class="panel">
|
|
<h2>Members</h2>
|
|
<div class="search-row">
|
|
<input type="text" id="memberSearch" placeholder="Search name or number...">
|
|
<button class="btn" onclick="searchMembers()">Search</button>
|
|
</div>
|
|
<table id="memberTable" class="data-table">
|
|
<thead><tr><th>#</th><th>Name</th><th>Balance</th><th>Joined</th><th></th></tr></thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Staff management -->
|
|
<div class="panel">
|
|
<h2>Staff</h2>
|
|
<div class="search-row">
|
|
<input type="text" id="staffNameInput" placeholder="Staff name" id="staffNameInput">
|
|
<button class="btn btn-primary" onclick="addStaff()">Add</button>
|
|
</div>
|
|
<div id="staffChips" class="staff-chips"></div>
|
|
<div id="staffMsg" class="msg"></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="/static/common.js"></script>
|
|
<script src="/static/cashier.js"></script>
|
|
</body>
|
|
</html>
|