Edit company
Tandem Labs
Client accounts, contacts and project work.
Tandem Labs
<div id="studio-workspace" class="rl-app studio-workspace" hx-history="false" data-studio-view="companies">
<aside class="rl-app-nav studio-nav">
<a class="studio-identity" href="/layouts/dashboard" hx-get="/layouts/dashboard" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-label="Studio workspace overview">
<span class="studio-identity-mark"><svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m3 15.5 8.7-10L21 8l-8.8 10.3L3 15.5Zm5.1-5.9 9.3 2.6m-8.4 4.9 8.8-10.2"/></svg></span><span>Studio<small>Team workspace</small></span>
</a>
<nav aria-label="Workspace"><div class="studio-nav-group"><span class="studio-group-name">Workspace</span>
<a href="/layouts/dashboard" hx-get="/layouts/dashboard" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7" rx="1.6"/><rect x="14" y="3" width="7" height="7" rx="1.6"/><rect x="3" y="14" width="7" height="7" rx="1.6"/><rect x="14" y="14" width="7" height="7" rx="1.6"/></svg><span>Overview</span>
</a><a href="/layouts/dashboard?view=companies" hx-get="/layouts/dashboard?view=companies" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-current="page">
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21h18M5 21V5l9-2v18m0-13h5v13M8 8h2M8 12h2M8 16h2"/></svg><span>Companies</span><small aria-hidden="true">6</small>
</a><a href="/layouts/dashboard?view=inventory" hx-get="/layouts/dashboard?view=inventory" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m12 2.8 8.5 4.8v8.8L12 21l-8.5-4.6V7.6L12 2.8Zm0 9 8.5-4.2M12 11.8 3.5 7.6M12 12v9M8 5l8.2 4.8"/></svg><span>Inventory</span>
</a><a href="/layouts/dashboard?view=settings" hx-get="/layouts/dashboard?view=settings" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7h9m4 0h5M3 17h3m4 0h11"/><circle cx="14" cy="7" r="2"/><circle cx="8" cy="17" r="2"/></svg><span>Settings</span>
</a></div><div class="studio-nav-group"><span class="studio-group-name">Planning</span>
<a href="/layouts/dashboard?view=board" hx-get="/layouts/dashboard?view=board" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="16" rx="2.4"/><path d="M8 8v7m4-7v4m4-4v6"/></svg><span>Task board</span><small aria-hidden="true">9</small>
</a><a href="/layouts/dashboard?view=calendar" hx-get="/layouts/dashboard?view=calendar" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" >
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24" height="18" width="18" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="16" rx="2.5"/><path d="M7.5 3v4m9-4v4M3 10h18m-13 4h2m3 0h2"/></svg><span>Bookings</span>
</a></div>
</nav>
</aside>
<section class="rl-app-main studio-main" aria-label="Workspace content"><section class="sc-companies" aria-label="Company workspace">
<header class="rl-page-head sc-head"><div><h1>Companies</h1><p>Client accounts, contacts and project work.</p></div></header>
<div class="sc-panes" data-open-record>
<section class="sc-directory" aria-label="Company directory"><div class="sc-directory-head"><h2>Directory</h2><span>6</span></div>
<form class="sc-search" role="search" aria-label="Search company directory" action="/layouts/dashboard" method="get" hx-get="/layouts/dashboard" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">
<input type="hidden" name="view" value="companies">
<input class="rl-input" type="search" id="studio-company-search" aria-label="Search companies" name="q" value="" placeholder="Search companies">
<button class="rl-button" type="submit" aria-label="Search companies"><span class="sc-search-icon" aria-hidden="true"></span></button>
</form>
<nav class="sc-accounts" aria-label="Companies"><a class="sc-account" href="/layouts/dashboard?view=companies&company=forma" hx-get="/layouts/dashboard?view=companies&company=forma" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">
<span class="sc-mark" data-client="forma" aria-hidden="true">FW</span><span><strong>Forma Works</strong><small>Copenhagen</small></span></a><a class="sc-account" href="/layouts/dashboard?view=companies&company=arc" hx-get="/layouts/dashboard?view=companies&company=arc" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">
<span class="sc-mark" data-client="arc" aria-hidden="true">AF</span><span><strong>Arc & Field</strong><small>London</small></span></a><a class="sc-account" href="/layouts/dashboard?view=companies&company=stillwater" hx-get="/layouts/dashboard?view=companies&company=stillwater" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">
<span class="sc-mark" data-client="stillwater" aria-hidden="true">S</span><span><strong>Stillwater</strong><small>Stockholm</small></span></a><a class="sc-account" href="/layouts/dashboard?view=companies&company=tandem" hx-get="/layouts/dashboard?view=companies&company=tandem" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace" aria-current="true">
<span class="sc-mark" data-client="tandem" aria-hidden="true">TL</span><span><strong>Tandem Labs</strong><small>Amsterdam</small></span></a><a class="sc-account" href="/layouts/dashboard?view=companies&company=cinder" hx-get="/layouts/dashboard?view=companies&company=cinder" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">
<span class="sc-mark" data-client="cinder" aria-hidden="true">CS</span><span><strong>Cinder Studio</strong><small>Berlin</small></span></a><a class="sc-account" href="/layouts/dashboard?view=companies&company=union" hx-get="/layouts/dashboard?view=companies&company=union" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">
<span class="sc-mark" data-client="union" aria-hidden="true">UH</span><span><strong>Union House</strong><small>Antwerp</small></span></a></nav>
</section><article class="sc-record" aria-label="Edit company profile">
<header class="sc-identity"><span class="sc-mark sc-mark-large" data-client="tandem" aria-hidden="true">TL</span><div><h2>Edit company</h2><p>Tandem Labs</p></div></header>
<form class="sc-edit-form" action="/demo/studio/companies" method="post" hx-post="/demo/studio/companies" hx-target="#studio-workspace" hx-swap="outerHTML show:none" data-rl-form>
<input type="hidden" name="company" value="tandem"><input type="hidden" name="q" value="">
<label class="rl-field">
<span class="rl-label">Industry</span><input class="rl-input" type="text" name="industry" required data-studio-initial-focus maxlength="80"
value="Workplace design">
</label><label class="rl-field">
<span class="rl-label">City</span><input class="rl-input" type="text" name="city" required maxlength="80"
value="Amsterdam">
</label><label class="rl-field">
<span class="rl-label">Team size</span><input class="rl-input" type="number" name="employees" required min="0" step="1"
value="48">
</label>
<div class="sc-edit-actions"><button class="rl-button rl-button-primary" type="submit">Save changes</button><a class="rl-button rl-button-ghost" href="/layouts/dashboard?view=companies&company=tandem" hx-get="/layouts/dashboard?view=companies&company=tandem" hx-target="#studio-workspace" hx-swap="outerHTML show:none" hx-push-url="true" hx-sync="#studio-workspace:replace">Cancel</a></div>
</form>
</article>
</div>
</section></section>
</div>Use the preview to see the request and the HTML your server returns.POST /demo/studio/tasks
HX-Request: true
HX-Target: studio-workspace
Content-Type: application/x-www-form-urlencoded
operation=move&id=ST-103&company=forma&display=list&openTask=1&status=doneStudio validates the task and stage, then returns the updated #studio-workspace fragment. A successful save returns HTTP 200 and replaces the current history entry. An invalid stage returns HTTP 422 with the error. A native form submission redirects to the task with HTTP 303 on success.
Studio keeps companies, tasks and bookings in memory for the life of the demo server. The company profile counts open tasks from those same records.
Serve these assets from the download’s public/ directory. Add the tags to your page head.
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-layouts.css">
<link rel="stylesheet" href="/mero-inventory.css">
<link rel="stylesheet" href="/studio-workspace.css">
<link rel="stylesheet" href="/studio-companies.css">
<link rel="stylesheet" href="/studio-board.css">
<link rel="stylesheet" href="/studio-bookings.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-forms.js"></script>
<script defer src="/mero-inventory.js"></script>
<script defer src="/studio-board.js"></script>
<script defer src="/studio-display.js"></script>
<script defer src="/studio-workspace.js"></script>Server source · site/studio.mjs
Download full example source ↓