Diff -- /var/www/vhosts/3dshawn.com/crm.3dshawn.com/TEMPLATES/cf_admin_companies.html
Diff
/var/www/vhosts/3dshawn.com/crm.3dshawn.com/TEMPLATES/cf_admin_companies.html
added on local at 2026-07-11 18:31:53
Added
+46
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to ed74081a5073
to ed74081a5073
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | <div class="page-header"> | |
| 2 | <div><h1>All Companies</h1><p class="subtitle">Every tenant on the platform.</p></div> | |
| 3 | </div> | |
| 4 | <div class="card mb-2"> | |
| 5 | <form method="GET" action="/admin_companies.cgi" style="display:flex;gap:8px"> | |
| 6 | <input class="input" name="q" value="$q" placeholder="Name, subdomain, or owner email..."> | |
| 7 | <button type="submit" class="btn btn-primary">Search</button> | |
| 8 | </form> | |
| 9 | </div> | |
| 10 | <div class="card"> | |
| 11 | [if:$has_rows] | |
| 12 | <table class="table"> | |
| 13 | <thead> | |
| 14 | <tr> | |
| 15 | <th>Company</th> | |
| 16 | <th>Plan</th> | |
| 17 | <th>Users</th> | |
| 18 | <th>Subdomain</th> | |
| 19 | <th>Owner</th> | |
| 20 | <th>Trial ends</th> | |
| 21 | <th>Status</th> | |
| 22 | <th>Created</th> | |
| 23 | <th></th> | |
| 24 | </tr> | |
| 25 | </thead> | |
| 26 | <tbody> | |
| 27 | [loop:@rows] | |
| 28 | <tr class="ac-clickable" data-href="/admin_company.cgi?id=$loop1.id"> | |
| 29 | <td><div style="display:flex;align-items:center;gap:8px"><span style="display:inline-block;width:10px;height:10px;border-radius:3px;background:$loop1.brand_color"></span>$loop1.name</div></td> | |
| 30 | <td><span class="badge">$loop1.plan_tier</span></td> | |
| 31 | <td>$loop1.users_n</td> | |
| 32 | <td><span class="badge">$loop1.subdomain</span></td> | |
| 33 | <td><a href="/admin_user.cgi?u=$loop1.user_id" style="color:inherit">$loop1.owner_name</a></td> | |
| 34 | <td>$loop1.trial_ends_at</td> | |
| 35 | <td>[if:$loop1.status]<span class="badge">$loop1.status</span>[/if]</td> | |
| 36 | <td style="font-size:12px;color:var(--col-text-dim)"><span class="ts" data-ts="$loop1.created_epoch" data-fmt="date">$loop1.created_at</span></td> | |
| 37 | <td style="display:flex;gap:6px"><a href="/admin_user.cgi?u=$loop1.user_id" class="btn btn-ghost btn-sm">View</a><a href="/admin_user.cgi?u=$loop1.user_id" class="btn btn-ghost btn-sm">Manage</a></td> | |
| 38 | </tr> | |
| 39 | [/loop] | |
| 40 | </tbody> | |
| 41 | </table> | |
| 42 | <style>tr.ac-clickable{cursor:pointer;transition:background 0.12s}tr.ac-clickable:hover{background:rgba(255,255,255,0.04)}</style> | |
| 43 | <script>document.querySelectorAll('tr.ac-clickable').forEach(function(tr){tr.addEventListener('click',function(e){if(e.target.closest('a,button,form,input'))return;window.location.href=tr.dataset.href})});</script> | |
| 44 | [/if] | |
| 45 | [if:!$has_rows]<div class="muted-empty"><h3>No companies yet</h3></div>[/if] | |
| 46 | </div> |