{% 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 %}
{% if list.id %} {% endif %}
{% 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 %}
{{ "Recipients"|t('sprout-lists') }}

{{ "Date Created"|t('sprout-lists') }}
{{ list.dateCreated.localeDate() }} {{ list.dateCreated.localeTime() }}
{{ "Date Updated"|t('sprout-lists') }}
{{ list.dateUpdated.localeDate() }} {{ list.dateUpdated.localeTime() }}

{{ "Deleting a List will delete all Subscriptions to the List. No Subscribers will be deleted."|t('sprout-lists') }}

{% endif %} {% endblock %} {% if not list.handle %} {% includejs %} new Craft.HandleGenerator('#name', '#handle'); {% endincludejs %} {% endif %}