%- include('partials/header') %>
Configure form requirements, the global spending limit, whitelist authorized credit cards, and manage list items.
| Name | Action | |
|---|---|---|
|
<%= s.name %>
<% if (s.group_name) { %>
<%= s.group_name %>
<% } %>
Autocreated User Login: username <%= s.name.toLowerCase().replace(/[^a-z0-9]/g, '') %>, password password123
|
<%= s.email || '—' %> |
No supervisors yet. Add one above to enable the dropdown on expense forms.
| Job # | Description | Action |
|---|---|---|
| <%= j.job_number %> | <%= j.description || '—' %> |
No active job numbers yet. Add one above to enable grouping on expense forms and exports.
When cards are listed here, only users whose card last 4 digits match can register. If the list is empty, anyone can register. Suspended cards cannot be used for registration or credit card expense submissions.
<% if (whitelist && whitelist.length > 0) { %> <% const todayStr = new Date().toISOString().split('T')[0]; const in60Days = new Date(Date.now() + 60 * 24 * 60 * 60 * 1000).toISOString().split('T')[0]; const expiringCards = whitelist.filter(w => w.expiry_date && w.expiry_date >= todayStr && w.expiry_date <= in60Days); %> <% if (expiringCards.length > 0) { %>| Card (last 4) | Label | Expiry Date | Status | Added | Actions |
|---|---|---|---|---|---|
| ****<%= w.card_digits %> | <%= w.label || '—' %> | <% if (w.expiry_date) { %> <%= w.expiry_date %> <% if (w.expiry_date <= todayStr) { %> (Expired) <% } %> <% } else { %> No Expiry <% } %> | <%= w.status %> | <%= (w.created_at || '').toString().split('T')[0] %> |
|
No cards in whitelist — open registration (anyone can sign up).
Add a card above to restrict registration.
| Division Name | Actions |
|---|---|
| <%= d.name %> |
No divisions created yet. Add one above to organize your users.
| Expense Type | Associated WBS Code | Actions |
|---|---|---|
| <%= t.name %> | <%= t.wbs_code || '—' %> |
No reimbursement expense types configured yet.
| Card Number | Type | Expiry | Truck Assigned | Assigned User | Status | Actions |
|---|---|---|---|---|---|---|
| •••• •••• •••• <%= gc.card_number.slice(-4) %> Full number ends in <%= gc.card_number.slice(-4) %> | <%= gc.card_type %> | <%= gc.expiry_date %> | <%= gc.truck_assigned || '—' %> |
No gas cards configured yet.