{% extends "_layouts/cp" %} {% import "_includes/forms" as forms %} {% set title = "General Settings"|t %} {% set fullPageForm = true %} {% set crumbs = [ { label: "Settings"|t, url: url('settings') } ] %} {% macro configWarning(setting, file) -%} {{ "This is being overridden by the {setting} config setting."|t({ setting: ''~setting~'' })|raw }} {%- endmacro %} {% from _self import configWarning %} {% block content %} {{ redirectInput('settings') }} {{ forms.lightswitchField({ first: true, label: "System Status"|t, warning: (craft.app.config.get('isSystemOn') is same as(true) or craft.app.config.get('isSystemOn') is same as(false) ? configWarning('isSystemOn')), id: 'on', name: 'on', on: info.on }) }} {{ forms.selectField({ label: "Timezone"|t, warning: (craft.app.config.get('timezone') ? configWarning('timezone')), id: 'timezone', name: 'timezone', value: info.timezone, options: timezoneOptions }) }} {% if CraftEdition >= CraftClient %}
{% do view.registerTranslations('app', [ "Are you sure you want to delete the logo?", ]) %} {% do view.registerAssetBundle("craft\\web\\assets\\fileupload\\FileUploadAsset") %} {% do view.registerAssetBundle("craft\\web\\assets\\imageeditor\\ImageEditorAsset") %} {{ forms.field({ label: "Login Page Logo"|t }, include('settings/general/_images/logo')) }} {{ forms.field({ label: "Site Icon"|t }, include('settings/general/_images/icon')) }}
{% endif %} {% endblock %}