Cotton code
106 lines · 1.9 KB · JSONRaw
{  "format_version": 1,  "id": "yoga_trainer",  "name": "Trainer",  "plural": "Trainers",  "picture": null,  "builtin": false,  "engine": null,  "visibility": "public",  "columns": [    {      "key": "name",      "name": "Name",      "type": "text",      "required": true    },    {      "key": "photo",      "name": "Photo",      "type": "photo"    },    {      "key": "role",      "name": "Role",      "type": "text",      "placeholder": "Yoga Instructor"    },    {      "key": "styles",      "name": "Teaches",      "type": "text"    },    {      "key": "bio",      "name": "About",      "type": "longtext"    }  ],  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "photo": "photo",    "toggle": null,    "subtitle": [      "role",      "styles"    ],    "trailing": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "name",        "photo",        "role",        "styles"      ]    },    {      "heading": "About",      "columns": [        "bio"      ]    }  ],  "sort": {    "column": "name",    "descending": false  },  "empty": {    "title": "No trainers",    "message": "Add the people who teach."  },  "instructions": "One row per trainer, public so members see who teaches: name, photo, role, the classes they teach and their words. It keeps no person and no contact: anyone admitted reads this table.",  "card": {    "face": "sharmila.trainer",    "fields": [      {        "slot": "photo",        "column": "photo"      },      {        "slot": "title",        "column": "name"      },      {        "slot": "subtitle",        "column": "role",        "also": [          "styles"        ]      },      {        "slot": "body",        "column": "bio"      }    ]  }}