<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      lang="en"
      metal:use-macro="context/main_template/macros/master"
      xml:lang="en"
      i18n:domain="ploneintranet"
>
  <metal:content fill-slot="main">

    <tal:condition condition="python: not request.get('form.buttons.save')">
      <aside>
        <figure class="user-portrait">
          <img class="pat-avatar"
               alt="Image of {{ page.title }}"
               src="{{ page.image_url }}"
               tal:attributes="
                 src string:${context/absolute_url}/@@avatar_profile.jpg;
               "
               i18n:attributes="alt"
          />
          <figcaption class="status-message">
            <h1 tal:content="context/fullname"></h1>
          </figcaption>
        </figure>
      </aside>
    </tal:condition>

    <metal:block use-macro="context/@@ploneform-macros/form" />

  </metal:content>
</html>
