{
  "$schema": "../../packages/ui/screens/screen.schema.json",
  "id": "athlete.plans",
  "version": 1,
  "app": "athlete",
  "route": "/plaene",
  "title": "Trainingspläne",
  "nav": {
    "label": "Pläne",
    "icon": "list",
    "order": 2,
    "tab": true
  },
  "data": {
    "plans": {
      "source": "athlete.plans.active"
    }
  },
  "body": [
    {
      "component": "page-header",
      "data": {
        "title": "Trainingspläne"
      }
    },
    {
      "component": "list",
      "data": {
        "label": "Trainingspläne",
        "variant": "cards",
        "items": {
          "$each": "plans.items",
          "as": "p",
          "map": {
            "id": {
              "$bind": "p.id"
            },
            "title": {
              "$bind": "p.title"
            },
            "ring": {
              "$bind": "p.pct"
            },
            "href": {
              "$bind": "p.href"
            },
            "tags": {
              "$bind": "p.tags"
            }
          }
        }
      }
    }
  ]
}
