{ "format_version": 1, "id": "kitchen_dish", "name": "Dish", "plural": "Dishes", "picture": null, "builtin": false, "engine": null, "visibility": "public", "columns": [ { "key": "name", "name": "Dish", "type": "text", "required": true, "placeholder": "Kosha mangsho" }, { "key": "kind", "name": "Kind", "type": "choice", "choices": [ "veg", "egg", "non_veg", "sweet" ], "format": "words", "labels": { "veg": "Veg", "egg": "Egg", "non_veg": "Non-veg", "sweet": "Sweet" } }, { "key": "price", "name": "Price a plate", "type": "amount", "currency": "currency" }, { "key": "currency", "name": "Currency", "type": "text" }, { "key": "notes", "name": "Notes", "type": "longtext" }, { "key": "photo", "name": "Photo", "type": "photo" }, { "key": "description", "name": "Description", "type": "longtext" }, { "key": "spice", "name": "Spice", "type": "choice", "choices": [ "mild", "medium", "spicy", "very_spicy" ], "format": "words", "labels": { "mild": "Mild", "medium": "Medium", "spicy": "Spicy", "very_spicy": "Very Spicy" } }, { "key": "category", "name": "Category", "type": "choice", "choices": [ "naga", "north_indian", "sides" ], "format": "words", "labels": { "naga": "Naga", "north_indian": "North Indian", "sides": "Sides" } }, { "key": "available", "name": "Available", "type": "bool" }, { "key": "rating", "name": "Rating", "type": "number", "computed": { "rollup": { "table": "kitchen_review", "link": "dish", "op": "average", "column": "rating" } }, "reading": "★ {value}", "decimals": 1 }, { "key": "reviews", "name": "Reviews", "type": "number", "computed": { "rollup": { "table": "kitchen_review", "link": "dish", "op": "count" } }, "reading": "{value} reviews" }, { "key": "review_summary", "name": "What buyers say", "type": "longtext" } ], "title": "name", "date": null, "project": null, "order": null, "slip": { "title": "name", "photo": "photo", "toggle": null, "subtitle": [ "kind", "spice", "rating" ], "trailing": "price" }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "photo", "name", "kind", "spice", "category", "price", "currency", "available" ] }, { "heading": "Description", "columns": [ "description" ] }, { "heading": "Reviews", "columns": [ "rating", "reviews", "review_summary" ] }, { "heading": "Notes", "columns": [ "notes" ] } ], "sort": { "column": "name", "descending": false }, "empty": { "title": "No dishes", "message": "Add what the kitchen cooks." }, "instructions": "One row per dish the kitchen cooks: its plate photo, description, kind, spice and price a plate. Rating and Reviews are counted from the dish's reviews; What buyers say is a short summary of them, rewritten when reviews come in. Available says whether it can be ordered now.", "card": { "face": "nancy.dish", "fields": [ { "slot": "photo", "column": "photo" }, { "slot": "title", "column": "name" }, { "slot": "subtitle", "column": "kind", "also": [ "spice" ] }, { "slot": "body", "column": "description" }, { "slot": "amount", "column": "price" }, { "slot": "count", "column": "reviews" }, { "slot": "facts", "column": "price", "also": [ "rating", "reviews", "category" ] } ], "pages": [ "description", "review_summary" ] }, "acts": [ { "id": "order", "label": "Order", "object": "plus", "kind": "create", "verb": "reserve_record", "bindings": { "data.name": "name" }, "picks": [ { "argument": "slot", "kind": "record", "table": "kitchen_menu_day", "label": "Day", "where": { "dish": "$id" } }, { "argument": "data.customer", "kind": "record", "table": "kitchen_customer", "label": "Customer" }, { "kind": "number", "argument": "data.quantity", "label": "Quantity", "min": 1, "default": 1 } ] } ] }