§5.6
Support and remaining client screens
- Phase 10.7a
- theme 1.6.0
Support screens are theme templates in the panel shell; the forms and business rules of the remaining screens arrive as a core block (body_html): endpoints, field names, CSRF, token / signature / expiry / single-use rules and validation do not change; the theme only provides the layout.
| File | Page | Main variables |
|---|---|---|
supporttickets.wcp |
My support tickets | $tickets (id, number, subject, department, status, status_label, tone, group, created, last_reply, last_reply_by_label, service {label, url} or null, url), $tabs (key — all / open / awaiting_you / awaiting_staff / closed —, label, count, url, active), $filters (tab, q, from, to), $search (action, tab, clear_url), $filtered, $new_url, $empty_text, $blocks['pagination_html'] |
viewticket.wcp |
ticket detail | $ticket (list row + priority), $messages (id, side — client / staff / system —, author, initials, time, iso, body_html, attachments [name, size, purged, url], last), $can (close, rate, reply), $locked, $back, $blocks: reply_html, close_html, rating_html, fields_html |
submitticket.wcp |
new ticket | $back, $closed, $no_departments, $blocks['form_html'] |
clientcommunication.wcp, reauth.wcp, cardpayment.wcp, clientservice-package.wcp, clientservice-transfer.wcp, clientsoftware.wcp |
communication preferences, re-authentication, add card page, package change, service transfer, software downloads | $blocks['body_html'] and small screen-specific values (reauth: minutes, fresh; cardpayment: test; package / transfer: back) |
guestticket.wcp, ticketrating.wcp, cookie-preferences.wcp |
guest ticket, rating by link, cookie preferences (no session, site region) | $heading, $lead, $blocks['body_html']; for guest and rating $state (form / sent / verified / invalid; form / done / invalid); for rating $ticket {number, subject} only when the token is valid; for cookies $policy_url |
clientverify.wcp |
required verifications (login flow region) | $heading, $lead, $pending, $logout, $blocks['body_html'] |
Rules
- Tabs map to core states; sorting is in the core: awaiting your reply → awaiting support reply → other open → closed, newest last reply first within a group. Search, date filter and pagination are on the server; the theme does not sort or count.
- The message body arrives escaped as
body_html(only line breaks become<br>); the theme does not format messages itself. Internal notes, staff email, IP and attachment paths never reach the theme; attachments download only from the core endpoint (url), with ownership checked again. - Another client's ticket, attachment and actions return 404; hiding a button is not the only protection.
- The reply form is locked against double submission (
data-wi-once); replying to a closed ticket reopens it (core rule). - The payment provider redirect and the test provider page (
client::payment-redirect,client::payment-test-page) carry provider fields and are therefore not themed. On the card page, card number / CVV / token never reach the theme; only the core block and thetestflag. - In a minimal theme (without these templates) the core views are used with the same data.