Context menu
An invoice
Invoice
£84.00
Source
<details>
<summary>An invoice and a room</summary>
<Kit.Phoenix.Roles.Row.row>
<:subject href="#role-context-menu">Oakmere Primary School</:subject>
<:facts>Invoice</:facts>
<:facts><Kit.Phoenix.Roles.Amount.amount value={Kit.Phoenix.Amount.money(reader(), Money.new(:GBP, "84.00"))} /></:facts>
<:actions>
<Kit.Phoenix.Roles.SecondaryAction.secondary_action>Send reminder</Kit.Phoenix.Roles.SecondaryAction.secondary_action>
<Kit.Phoenix.Roles.ActionMenu.action_menu
id="role-context-menu-invoice"
label="More actions for this invoice"
groups={[
Kit.Phoenix.Menu.group([
Kit.Phoenix.Menu.item("Duplicate", icon: "copy"),
Kit.Phoenix.Menu.item("Archive", icon: "archive", reason: "Only the invoice's owner can archive it.")
]),
Kit.Phoenix.Menu.group([
Kit.Phoenix.Menu.destructive("Delete invoice", icon: "trash")
])
]}
/>
</:actions>
</Kit.Phoenix.Roles.Row.row>
<Kit.Phoenix.Roles.Card.card>
<:subject href="#role-context-menu">Main Hall</:subject>
<:unnamed_fact>Booked <Kit.Phoenix.Roles.Time.time value={Kit.Phoenix.Time.day(reader(), ~D[2025-04-12])} /></:unnamed_fact>
<:actions>
<Kit.Phoenix.Roles.ActionGroup.action_group>
<:secondary><Kit.Phoenix.Roles.SecondaryAction.secondary_action>Hold the room</Kit.Phoenix.Roles.SecondaryAction.secondary_action></:secondary>
<:secondary><Kit.Phoenix.Roles.DestructiveAction.destructive_action icon="x">Cancel booking</Kit.Phoenix.Roles.DestructiveAction.destructive_action></:secondary>
</Kit.Phoenix.Roles.ActionGroup.action_group>
</:actions>
</Kit.Phoenix.Roles.Card.card>
</details>
<details>
<summary>An invoice</summary>
<Kit.Phoenix.Roles.Row.row>
<:subject href="#role-context-menu">Oakmere Primary School</:subject>
<:facts>Invoice</:facts>
<:facts><Kit.Phoenix.Roles.Amount.amount value={Kit.Phoenix.Amount.money(reader(), Money.new(:GBP, "84.00"))} /></:facts>
<:actions>
<Kit.Phoenix.Roles.SecondaryAction.secondary_action>Send reminder</Kit.Phoenix.Roles.SecondaryAction.secondary_action>
<Kit.Phoenix.Roles.ActionMenu.action_menu
id="role-context-menu-row-invoice"
label="More actions for this invoice"
groups={[
Kit.Phoenix.Menu.group([
Kit.Phoenix.Menu.item("Duplicate", icon: "copy"),
Kit.Phoenix.Menu.item("Archive", icon: "archive", reason: "Only the invoice's owner can archive it.")
]),
Kit.Phoenix.Menu.group([
Kit.Phoenix.Menu.destructive("Delete invoice", icon: "trash")
])
]}
/>
</:actions>
</Kit.Phoenix.Roles.Row.row>
</details>