Skip to content
View templateOpen app

Bookings

5–11 Jan 1970

New booking
Meeting room

Production kickoff

Monday, 5 January 1970 · 10:00–11:30

Host
Uma Chen

Confirm the production calendar and hand over the approved layouts.

2 bookings · 2 rooms
Studio AThe workshopMeeting room
Time
Mon5
Tue6
Wed7
Thu8
Fri9
Sat10
Sun11
Walkthrough · Finish a company task
  1. Open Forma Works and check its Open tasks count.
  2. Under Tasks, open Price the first retail rollout. Set Task status to Done and choose Save status.
  3. 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
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
<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 ↓