<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 preferences</title>
</head>
<body>

<span metal:fill-slot="zonki">
  <img src="zonki.png" alt="SchoolTool" i18n:attributes="alt"
    tal:attributes="src context/++resource++zonki-question.png" /> 
</span>

<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 preferences for <span tal:replace="view/person/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>
      <legend i18n:translate="">
        Calendar Preferences
      </legend>

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

      <div class="row" tal:define="widget nocall:view/cal_public_widget">
        <div metal:use-macro="context/@@form_macros/widget_row" />
      </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>
