{% extends "sprout-base-lists/_layouts/base" %} {% import "_includes/forms" as forms %} {% set title = "Edit List"|t('sprout-lists') %} {% if craft.app.request.getSegment(3) == 'new' %} {% set title = "New List"|t('sprout-lists') %} {% endif %} {% set crumbs = [ { label: "Lists"|t('sprout-lists'), url: url('sprout-lists/lists') }, ] %} {% set fullPageForm = true %} {% block actionButton %}
{% endblock %} {% set saveShortcutRedirect = continueEditingUrl %} {% block content %} {{ redirectInput("sprout-lists/lists") }} {{ forms.textField({ label: "List Name"|t('sprout-lists'), instructions: "The name of your list that will be visible to users."|t('sprout-lists'), id: 'name', name: 'name', value: (list is defined ? list.name : null), autofocus: true, required: true, first: true, errors: (list is defined ? list.getErrors('name') : null) }) }} {{ forms.textField({ label: "List Handle"|t('sprout-lists'), instructions: "How you’ll refer to this list in your templates."|t('sprout-lists'), id: 'handle', name: 'handle', value: (list is defined ? list.handle : null), required: true, errors: (list is defined ? list.getErrors('handle') : null) }) }} {% endblock %} {% block details %} {% if list.id is not null %}