You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec/presentation.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ widgets:
141
141
142
142
## view — calendar, range, slots
143
143
144
-
`view:` (with a `calendar:` / `slots:` descriptor) renders an entity as a time-based page instead of a table:
144
+
`view:` (with a `calendar:` / `slots:` descriptor) places an entity's records on a time surface:
145
145
146
146
```yaml
147
147
- name: DayAllocation
@@ -157,6 +157,36 @@ widgets:
157
157
158
158
`view: calendar` is also expressible as the role alias `function: Calendar`.
159
159
160
+
### A view adds a page
161
+
162
+
`view: calendar`, `view: range` and `view: slots` **add** a page; they never take one away. The entity keeps the page family its structure already implies — a list, a master-detail, or a document editor — and the view joins it:
163
+
164
+
| Route | Page |
165
+
|---|---|
166
+
| `/<Entity>` | the calendar, or the slot picker |
167
+
| `/<Entity>/list` | the entity's own browse page (list / master / document list) |
168
+
| `/<Entity>/create`, `/<Entity>/<id>/edit` | the entity's own editor |
169
+
170
+
Both browse pages offer a switch to the other, and choosing a day, an event or a free slot opens the entity's own editor. So a document master may be browsed on a calendar — or booked from a slot picker — and still be edited as a document, with its line items, printing and workflow tasks intact: declaring a view never costs an entity its editing surface. A picker is how a record is *created*; the list or document page is how it is worked with afterwards, and an author needs both.
171
+
172
+
### A document's line items on a calendar
173
+
174
+
When the entity declaring `view: calendar` is a document's **line-items** child, the document's items pane *is* the calendar instead of the row grid — the shape for a day-grained line, such as a booked day or an allocated hour:
The document keeps its header, totals and printing; only the items pane changes. Clicking an event edits that line, clicking an empty day adds one with that date filled in. It cannot be combined with `documentItemsLayout: chat`, which claims the same pane.
A document master can render its line-items child as a chat thread (message bubbles + a composer) instead of an editable items table — support cases, tickets, comment threads. The header, status pill, workflow tasks and print stay as in a normal document:
0 commit comments