{% extends "_layouts/cp" %} {% import "_includes/forms" as forms %} {% set crumbs = [ { label: "Settings"|t, url: url('settings') }, { label: "Singletons"|t, url: url('settings/singletons') } ] %} {% if singleton is not defined and singletonId is defined %} {% set singleton = blx.singletons.getSingletonById(singletonId) %} {% if not singleton %}{% exit 404 %}{% endif %} {% endif %} {% set isNewSingleton = (singleton is not defined or not singleton.id) %} {% if isNewSingleton %} {% set title = "Create a new singleton"|t %} {% else %} {% set title = singleton.name %} {% endif %} {% set tabs = { settings: { label: "Settings"|t, url: '#singleton-settings' }, fieldlayout: { label: "Field Layout"|t, url: '#singleton-fieldlayout' } } %} {% set content %}
{% endset %}