<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="context/prefs_main_template/macros/master"
      i18n:domain="plone">

<body>

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

    <a href=""
       id="setup-link"
       tal:attributes="href string:$portal_url/plone_control_panel"
       i18n:translate="">
        Site Setup
    </a>


    <h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

    <div metal:use-macro="context/global_statusmessage/macros/portal_message">
      Portal status message
    </div>

    <div id="content-core">
      <div id="layout-contents" tal:define="realview nocall:view">
        <div data-pat-autotoc="levels: .tab; section: .tab-content; className: autotabs"
             class="pat-autotoc layouts-editor">
          <div class="tab-content" tal:define="form nocall:view/email_form;
                                               view nocall:form">
            <h2 class="tab">Email Users</h2>
            <div metal:use-macro="context/@@ploneform-macros/titlelessform"></div>
          </div>
          <div class="tab-content" tal:define="form nocall:view/email_subscribers_form;
                                               view nocall:form">
            <h2 class="tab">Email Subscribers</h2>
            <p class="discreet">
              Send email to site subscribers
            </p>
            <div metal:use-macro="context/@@ploneform-macros/titlelessform"></div>
          </div>
          <div class="tab-content" tal:define="form nocall:view/text_subscribers_form;
                                               view nocall:form">
            <h2 class="tab">Send Text</h2>
            <p class="discreet">
              Send text to site subscribers
            </p>
            <div metal:use-macro="context/@@ploneform-macros/titlelessform"
                 tal:condition="realview/hasTexting"></div>
            <p tal:condition="not: realview/hasTexting">
              Text messaging not setup on this site.
            </p>
          </div>
          <div class="tab-content">
            <h2 class="tab">Settings</h2>
            <span tal:replace="structure realview/contents" />
          </div>
        </div>
      </div>
    </div>

</metal:main>
</body>
</html>
