{% import '_includes/forms' as forms %}
| Field | {% for schema in schemaOptions %}{{ schema.label == '-' ? 'Public' : schema.label }} | {% endfor %}
|---|---|
| {{ forms.field({ label: field.name, instructions: "(" ~ field.handle ~ ")", }, '') }} | {% for schema in schemaOptions %} {% set schemaKey = 'schema-' ~ (schema.value != '' ? schema.value : '1') %}{{ forms.selectField({ name: 'fieldRestrictions[' ~ schemaKey ~ '][' ~ field.handle ~ ']', value: settings.fieldRestrictions[schemaKey][field.handle] ?? 'queryMutate', options: [ { value: 'queryMutate', label: 'Query & Mutate' }, { value: 'query', label: 'Query' }, { value: 'private', label: 'Private' }, ], }) }} | {% endfor %}