<tal:defs define="dummy view/update" />
<html metal:use-macro="view/@@standard_macros/page" i18n:domain="schooltool">
<head>
  <title metal:fill-slot="title" i18n:translate="">Edit person</title>
</head>
<body>

<metal:nothing metal:fill-slot="content-header" />
<metal:block metal:fill-slot="body">

  <form action="." method="post" tal:attributes="action request/URL"
        class="standalone" enctype="multipart/form-data">

    <h3 i18n:translate="">
      Change info for <span tal:replace="context/title"
      i18n:name="user">User</span>
    </h3>

    <div class="info" tal:condition="view/message"
         tal:content="view/message" />
    <div class="error" tal:condition="view/error"
         tal:content="view/error" />

    <fieldset>
      <div class="row" tal:define="widget nocall:view/title_widget">
        <div metal:use-macro="context/@@form_macros/widget_row" />
      </div>
    </fieldset>

    <fieldset>
      <p tal:condition="context/photo">
        <img src="photo" alt="Photo"
             tal:attributes="src string:${context/@@absolute_url}/photo" />
      </p>
      <div class="row" tal:define="widget nocall:view/photo_widget">
        <div metal:use-macro="context/@@form_macros/widget_row" />
      </div>
      <div class="row" tal:define="widget nocall:view/clear_photo_widget">
        <div metal:use-macro="context/@@form_macros/checkbox_widget " />
      </div>
    </fieldset>

    <div class="controls">
      <tal:block metal:use-macro="view/@@standard_macros/apply-button" />
      <tal:block metal:use-macro="view/@@standard_macros/cancel-button" />
    </div>
  </form>

</metal:block>
</body>
</html>
