Preview Template HTTP exchange
Companies Client accounts, contacts and project work.
← Company directory
Open pipeline $54,200
Open tasks 1
Bookings 1
Account owner Maya Chen
Team size 116 employees
Showroom fixtures negotiation
Confirm the installation dates before procurement signs the agreement.
Server-rendered workspace HTML Copy code
<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" aria-current ="true" >
<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" >
<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 ="Stillwater company record" >
<a class ="sc-back sc-text-link" 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" ><span aria-hidden ="true" >← </span >Company directory</a >
<header class ="sc-identity" ><span class ="sc-mark sc-mark-large" data-client ="stillwater" aria-hidden ="true" >S</span ><div ><h2 data-studio-initial-focus tabindex ="-1" >Stillwater</h2 ><p >Furniture<span aria-hidden ="true" > · </span >Stockholm</p ></div >
<a class ="rl-button rl-button-sm sc-edit" href ="/layouts/dashboard?view=companies&company=stillwater&edit=profile" hx-get ="/layouts/dashboard?view=companies&company=stillwater&edit=profile" hx-target ="#studio-workspace" hx-swap ="outerHTML show:none" hx-push-url ="true" hx-sync ="#studio-workspace:replace" >Edit company</a ></header >
<dl class ="sc-metrics" ><div ><dt >Open pipeline</dt ><dd >$54,200</dd ></div ><div ><dt >Open tasks</dt ><dd >1</dd ></div ><div ><dt >Bookings</dt ><dd >1</dd ></div ></dl >
<div class ="sc-facts" ><dl ><div ><dt >Account owner</dt ><dd >Maya Chen</dd ></div ><div ><dt >Team size</dt ><dd >116 employees</dd ></div ></dl ></div >
<div class ="sc-blocks" >
<section class ="sc-block" ><header ><h3 >Opportunity</h3 ></header ><div class ="sc-project" ><div ><strong >Showroom fixtures</strong ><span class ="sc-stage" >negotiation</span ></div ><p >Confirm the installation dates before procurement signs the agreement.</p ></div ></section >
<section class ="sc-block" ><header ><h3 >People</h3 ></header ><ul class ="sc-people" ><li ><span class ="sc-avatar" aria-hidden ="true" >NS</span ><div ><strong >Nina Shah</strong ><small >Head of product</small ></div ></li ><li ><span class ="sc-avatar" aria-hidden ="true" >EL</span ><div ><strong >Elsa Lund</strong ><small >Procurement lead</small ></div ></li ></ul ></section >
<section class ="sc-block" ><header ><h3 >Tasks</h3 ><a class ="sc-text-link" href ="/layouts/dashboard?view=board&company=stillwater" hx-get ="/layouts/dashboard?view=board&company=stillwater" hx-target ="#studio-workspace" hx-swap ="outerHTML show:none" hx-push-url ="true" hx-sync ="#studio-workspace:replace" >Open board<span aria-hidden ="true" > →</span ></a ></header ><ul class ="sc-work-items" ><li ><a href ="/layouts/dashboard?view=board&company=stillwater&task=ST-105" hx-get ="/layouts/dashboard?view=board&company=stillwater&task=ST-105" hx-target ="#studio-workspace" hx-swap ="outerHTML show:none" hx-push-url ="true" hx-sync ="#studio-workspace:replace" ><span >Check the fixture clearances</span ><small class ="sc-state" data-state ="active" >In progress</small ></a ></li ><li ><a href ="/layouts/dashboard?view=board&company=stillwater&task=ST-108" hx-get ="/layouts/dashboard?view=board&company=stillwater&task=ST-108" hx-target ="#studio-workspace" hx-swap ="outerHTML show:none" hx-push-url ="true" hx-sync ="#studio-workspace:replace" ><span >Issue the showroom survey</span ><small class ="sc-state" data-state ="done" >Done</small ></a ></li ></ul ></section >
<section class ="sc-block" ><header ><h3 >Bookings</h3 ><a class ="sc-text-link" href ="/layouts/dashboard?view=calendar&company=stillwater" hx-get ="/layouts/dashboard?view=calendar&company=stillwater" hx-target ="#studio-workspace" hx-swap ="outerHTML show:none" hx-push-url ="true" hx-sync ="#studio-workspace:replace" >Open calendar<span aria-hidden ="true" > →</span ></a ></header ><ul class ="sc-work-items" ><li ><a href ="/layouts/dashboard?view=calendar&company=stillwater&booking=lookbook" hx-get ="/layouts/dashboard?view=calendar&company=stillwater&booking=lookbook" hx-target ="#studio-workspace" hx-swap ="outerHTML show:none" hx-push-url ="true" hx-sync ="#studio-workspace:replace" ><span >Lookbook shoot</span ><small ><time datetime ="1969-12-31" >Dec 31</time > · 09:00</small ></a ></li ></ul ></section >
</div >
</article >
</div >
</section ></section >
</div >
HTTP exchange Waiting for a request
Use the preview to see the request and the HTML your server returns.
Walkthrough · Finish a company task
Open Forma Works and check its Open tasks count.
Under Tasks , open Price the first retail rollout . Set Task status to Done and choose Save status .
Open HTTP exchange to inspect the save. Use your browser’s Back button to return to Forma Works. The task now shows Done. Finishing an open task reduces the count by one.
Task move with List selected Copy code
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=done
Studio 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.
Read the task move handler Use in your app
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.
Page assets Copy code
<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 ↓