{% from "_includes/forms" import textField %} {% set static = static is defined ? static : false %} {{ textField({ label: entry.getType().titleLabel|t, id: 'title', name: 'title', value: entry.title, errors: (not static ? entry.getErrors('title')), first: true, autofocus: true, required: (not static), disabled: static, maxlength: 255 }) }}