{ "format_version": 1, "id": "kitchen_plan", "name": "Plan", "plural": "Plans", "picture": null, "builtin": false, "engine": null, "visibility": "public", "columns": [ { "key": "name", "name": "Plan", "type": "text", "required": true, "placeholder": "Weekday lunch, 10 meals" }, { "key": "meals", "name": "Meals", "type": "number", "required": true, "reading": "{value} meals" }, { "key": "slot", "name": "Slot", "type": "choice", "choices": [ "lunch", "dinner" ], "format": "words" }, { "key": "days", "name": "Days", "type": "choice", "choices": [ "weekdays", "every_day" ], "format": "words", "labels": { "weekdays": "Weekdays", "every_day": "Every day" } }, { "key": "valid_days", "name": "Valid for", "type": "number", "reading": "{value} days" }, { "key": "price", "name": "Price", "type": "amount", "currency": "currency" }, { "key": "currency", "name": "Currency", "type": "text" }, { "key": "description", "name": "Description", "type": "longtext" }, { "key": "available", "name": "Available", "type": "bool" } ], "title": "name", "date": null, "project": null, "order": null, "slip": { "title": "name", "photo": null, "toggle": null, "subtitle": [ "meals", "slot", "days" ], "trailing": "price" }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "name", "meals", "slot", "days", "valid_days", "price", "currency", "available" ] }, { "heading": "Description", "columns": [ "description" ] } ], "sort": { "column": "meals", "descending": false, "tie": "name" }, "empty": { "title": "No plans", "message": "Add the meal plans customers can buy." }, "card": { "face": "nancy.plan", "fields": [ { "slot": "title", "column": "name" }, { "slot": "subtitle", "column": "meals", "also": [ "slot" ] }, { "slot": "price", "column": "price" }, { "slot": "period", "column": "days" }, { "slot": "body", "column": "description" } ] }, "instructions": "One row per meal plan on offer: how many meals, lunch or dinner, weekdays or every day, how long it runs and its price. A customer who buys one holds a subscription to it." }