{% import '_includes/forms' as forms %}
| Field | {% for schema in schemaOptions %} {% if schema.value != '' %}{{ schema.label }} | {% endif %} {% endfor %}
|---|---|
| {{ forms.field({ label: field.name, instructions: "(" ~ field.handle ~ ")", }, '') }} | {% for schema in schemaOptions %} {% if schema.value != '' %} {% set schemaKey = 'schema-' ~ schema.value %}{{ 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' }, ], }) }} | {% endif %} {% endfor %}