<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="here/prefs_main_template/macros/master"
      i18n:domain="plone">

  <body>
    <metal:override fill-slot="top_slot"
                    tal:define="disable_column_one python:request.set('disable_plone.leftcolumn',1);
                                disable_column_two python:request.set('disable_plone.rightcolumn',1);"/>

    <div metal:fill-slot="prefs_configlet_main">

      <h1 class="documentFirstHeading"
          i18n:translate="">Site Setup</h1>

      <p class="documentDescription text-secondary" i18n:translate="description_control_panel">
        Configuration area for Plone and add-on Products.
      </p>

      <div class="portalMessage warning alert alert-warning"
           role="status"
           tal:condition="view/upgrade_warning">
        <strong i18n:translate="">
          Warning
        </strong>
        <span tal:omit-tag="" i18n:translate="">
          The site configuration is outdated and needs to be
          upgraded. Please
          <a href="#"
             tal:attributes="href string:${context/portal_url}/@@plone-upgrade"
             title="Go to the upgrade page"
             i18n:attributes="title;"
             i18n:name="link_continue_with_the_upgrade"
             i18n:translate="">
            continue with the upgrade
          </a>.
        </span>
      </div>

      <div class="portalMessage warning alert alert-warning"
           role="status"
           tal:condition="view/mailhost_warning">
        <strong i18n:translate="">
          Warning
        </strong>
        <span tal:omit-tag="" i18n:translate="text_no_mailhost_configured">
          You have not configured a mail host or a site 'From'
          address, various features including contact forms, email
          notification and password reset will not work. Go to the
          <tal:link i18n:name="label_mail_control_panel_link">
            <a href=""
               i18n:translate="text_no_mailhost_configured_control_panel_link"
               tal:attributes="href string:${portal_url}/@@mail-controlpanel"
            >Mail control panel</a>
          </tal:link>
          to fix this.
        </span>
      </div>

      <div class="portalMessage warning alert alert-warning"
           role="status"
           tal:condition="view/timezone_warning">
        <strong i18n:translate="">
          Warning
        </strong>
        <span tal:omit-tag="" i18n:translate="text_no_timezone_configured">

          You have not set the portal timezone. Date/Time handling will not
          work properly for timezone aware date/time values.
          Go to the
          <tal:link i18n:name="label_mail_event_settings_link">
            <a href=""
               i18n:translate="text_no_timezone_configured_control_panel_link"
               tal:attributes="href string:${portal_url}/@@dateandtime-controlpanel"
            >Date and Time Settings control panel</a>
          </tal:link>
          to fix this.
        </span>
      </div>

      <div class="portalMessage warning alert alert-warning"
           role="status"
           tal:condition="not:view/pil">
        <strong i18n:translate="">
          Warning
        </strong>
        <span tal:omit-tag="" i18n:translate="text_no_pil_installed">
          PIL is not installed properly, image scaling will not work.
        </span>
      </div>

      <tal:category tal:repeat="category view/categories">
        <tal:defs tal:define="sublist python:view.sublists(category.get('id'))">
          <section class="portlet portletNavigationTree portletSiteSetup" tal:condition="sublist">
            <strong class="portletHeader text-secondary" tal:content="category/title"
                    i18n:translate="">Category</strong>
            <div class="row">
              <div class="col-sm-12">
              <nav class="portletContent" tal:condition="sublist">
                <ul class="nav nav-pills" tal:condition="sublist">
                  <tal:actions tal:repeat="action sublist">
                    <li class="nav-item col-sm-3" tal:condition="action/visible">
                      <a href="#"
                         class="nav-link"
                         tal:define="icon action/icon"
                         tal:attributes="href action/url">
                        <span tal:attributes="class python:'icon-controlpanel-' + action['id'].replace('.', '_')"></span>
                        <tal:title tal:content="action/title"
                                   i18n:translate="">
                          Title
                        </tal:title>
                      </a>
                    </li>
                  </tal:actions>
                </ul>
              </nav>
              </div>
            </div>

            <div class="discreet"
                 tal:condition="not:sublist"
                 i18n:translate="label_no_prefs_panels_available">
              No preference panels available.
            </div>

          </section>
        </tal:defs>
      </tal:category>

      <div class="visualClear"><!-- --></div>

      <h2 i18n:translate="heading_version_overview">Version Overview</h2>
      <ul>
        <tal:list-versions repeat="version view/version_overview">
          <li tal:content="version">Version</li>
        </tal:list-versions>
        <tal:server tal:define="server_info view/server_info;
                                has_wsgi server_info/wsgi;">
          <li>
            <tal:i18n i18n:translate="">WSGI:</tal:i18n>
            <span i18n:translate="" tal:condition="has_wsgi">On</span>
            <span i18n:translate="" tal:condition="not:has_wsgi">Off</span>
          </li>
          <li>
            <tal:i18n i18n:translate="">Server:</tal:i18n>
            <span>${server_info/server_name}</span>
            <span>${server_info/version}</span>
          </li>
        </tal:server>
      </ul>

      <p tal:condition="not:view/is_dev_mode"
         class="discreet text-muted small"
         i18n:translate="description_production_mode">
        You are running in "production mode". This is the preferred mode of
        operation for a live Plone site, but means that some
        configuration changes will not take effect until your server is
        restarted or a product refreshed. If this is a development instance,
        and you want to enable debug mode, stop the server, set 'debug-mode=on'
        in your buildout.cfg, re-run bin/buildout and then restart the server
        process.
      </p>

      <p tal:condition="view/is_dev_mode"
         class="discreet text-muted small"
         i18n:translate="description_debug_mode">
        You are running in "debug mode". This mode is intended for sites that
        are under development. This allows many configuration changes to be
        immediately visible, but will make your site run more slowly. To turn
        off debug mode, stop the server, set 'debug-mode=off' in your
        buildout.cfg, re-run bin/buildout and then restart the server
        process.
      </p>

    </div>

  </body>
</html>
