{% extends "_layouts/cp" %} {% requireEdition CraftPro %} {% set selectedSubnavItem = 'tokens' %} {% set fullPageForm = true %} {% set crumbs = [ { label: "GraphQL Tokens"|t('app'), url: url('graphql/tokens') } ] %} {% import "_includes/forms" as forms %} {% block content %} {{ redirectInput('graphql/tokens') }} {% if token.id %}{% endif %} {{ forms.textField({ first: true, label: "Name"|t('app'), instructions: "What this token will be called in the control panel."|t('app'), id: 'name', name: 'name', value: token.name, errors: token.getErrors('name'), autofocus: true, required: true, }) }} {{ forms.selectField({ label: 'GraphQL Schema', instructions: 'Choose which GraphQL schema this token has access to.', name: 'schema', id: 'schema', options: schemaOptions, value: token.schemaId, warning: not schemaOptions|length ? 'No Schemas exist yet to assign to this token.'|t('app') : null }) }}