Diff -- /var/www/vhosts/3dshawn.com/crm.3dshawn.com/TEMPLATES/cf_admin_companies.html

O Operator
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
+0
lines
Removed
-0
lines
Context
46
unchanged
Blobs
from ed74081a5073
to ed74081a5073
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
11<div class="page-header">
22 <div><h1>All Companies</h1><p class="subtitle">Every tenant on the platform.</p></div>
33</div>
44<div class="card mb-2">
55 <form method="GET" action="/admin_companies.cgi" style="display:flex;gap:8px">
66 <input class="input" name="q" value="$q" placeholder="Name, subdomain, or owner email...">
77 <button type="submit" class="btn btn-primary">Search</button>
88 </form>
99</div>
1010<div class="card">
1111[if:$has_rows]
1212<table class="table">
1313 <thead>
1414 <tr>
1515 <th>Company</th>
1616 <th>Plan</th>
1717 <th>Users</th>
1818 <th>Subdomain</th>
1919 <th>Owner</th>
2020 <th>Trial ends</th>
2121 <th>Status</th>
2222 <th>Created</th>
2323 <th></th>
2424 </tr>
2525 </thead>
2626 <tbody>
2727 [loop:@rows]
2828 <tr class="ac-clickable" data-href="/admin_company.cgi?id=$loop1.id">
2929 <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>
3030 <td><span class="badge">$loop1.plan_tier</span></td>
3131 <td>$loop1.users_n</td>
3232 <td><span class="badge">$loop1.subdomain</span></td>
3333 <td><a href="/admin_user.cgi?u=$loop1.user_id" style="color:inherit">$loop1.owner_name</a></td>
3434 <td>$loop1.trial_ends_at</td>
3535 <td>[if:$loop1.status]<span class="badge">$loop1.status</span>[/if]</td>
3636 <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>
3737 <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>
3838 </tr>
3939 [/loop]
4040 </tbody>
4141</table>
4242<style>tr.ac-clickable{cursor:pointer;transition:background 0.12s}tr.ac-clickable:hover{background:rgba(255,255,255,0.04)}</style>
4343<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>
4444[/if]
4545[if:!$has_rows]<div class="muted-empty"><h3>No companies yet</h3></div>[/if]
4646</div>