{# @var craft \craft\web\twig\variables\CraftVariable #} {% extends "_layouts/cp" %} {% set fullPageForm = true %} {% import "_includes/forms" as forms %} {% block content %} {{ redirectInput('portal/targets') }} {% if target.id %}{% endif %} {{ forms.textField({ first: true, label: "Name"|t('app'), instructions: "What this target will be called in the CP."|t('portal'), id: 'name', name: 'name', value: target.name, errors: target.getErrors('name'), autofocus: true, required: true, }) }} {{ forms.selectField({ label: "Context"|t('portal'), instructions: "Where this target can be used in the CP."|t('portal'), id: 'context', name: 'context', options: contextOptions, value: target.context, errors: target.getErrors('context'), required: true, }) }}