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

<metal:block metal:fill-slot="body">
  <form method="post" class="standalone" style="width: 70em"
        tal:attributes="action string:${context/@@absolute_url}">

    <h3 i18n:translate="">Student Intervention Center</h3>

    <div style="height: 11px;"></div>

    <table style="margin-left: 1em">
      <tr>
        <td>
          <b i18n:translate="">Student</b>
        </td>
        <td>&nbsp;</td>
        <td>
          <a href=""
             tal:content="view/studentName"
             tal:attributes="href view/studentURL">
             Student
          </a>
        </td>
        <td  style="width: 40px;" />
        <td>
          <label for="schoolyear"><b i18n:translate="">School Year</b></label>
        </td>
        <td>&nbsp;</td>
        <td>
          <select name="schoolyear"
                  onchange="this.form.submit()">
            <tal:block repeat="schoolyear view/schoolyears">
              <option value="1"
                  tal:condition="python:schoolyear['title'] != view.currentSchoolYear"
                  tal:attributes="value schoolyear/title"
                  tal:content="schoolyear/title" />
              <option value="1" selected="selected"
                  tal:condition="python:schoolyear['title'] == view.currentSchoolYear"
                  tal:attributes="value schoolyear/title"
                  tal:content="schoolyear/title" />
            </tal:block>
          </select>
        </td>
      </tr>
    </table>

    <div style="height: 11px;"></div>

    <fieldset>
      <legend><b i18n:translate="">Messages and Observations</b></legend>
      <tal:if condition="not: view/messages">
        <ul><li i18n:translate="">There are none.</li></ul>
      </tal:if>
      <tal:if condition="view/messages">
        <ul>
          <li tal:repeat="message view/messages">
            <a href="" tal:content="message/text"
               tal:attributes="href message/url">
               Message
            </a>
          </li>
        </ul>
      </tal:if>
      <div style="height: 5px;"></div>
      <div class="controls">
        <a class="button-ok" href="" i18n:translate=""
           tal:condition="view/isCurrentSchoolYear"
           tal:attributes="href view/newMessageURL">
           New Message
        </a>
        <a class="button-neutral" href="" i18n:translate=""
           tal:attributes="href view/allMessagesURL">
           View All Messages
        </a>
      </div>
    </fieldset>

    <div style="height: 1px;"></div>

    <fieldset>
      <legend><b i18n:translate="">Goals and Interventions</b></legend>
      <tal:if condition="not: view/goals">
        <ul><li i18n:translate="">There are none.</li></ul>
      </tal:if>
      <tal:if condition="view/goals">
        <ul>
          <li tal:repeat="goal view/goals">
            <a href="" tal:content="goal/text"
               tal:attributes="href goal/url">
               Goal
            </a>
          </li>
        </ul>
      </tal:if>
      <div style="height: 5px;"></div>
      <div class="controls">
        <a class="button-ok" href="" i18n:translate=""
           tal:condition="view/isCurrentSchoolYear"
           tal:attributes="href view/newGoalURL">
           New Goal
        </a>
        <a class="button-neutral" href="" i18n:translate=""
           tal:attributes="href view/allGoalsURL">
           View All Goals
        </a>
      </div>
    </fieldset>

    <div style="height: 1px;"></div>

    <fieldset>
      <legend><b i18n:translate="">Report Sheets</b></legend>
      <tal:if condition="not: view/terms">
        <ul><li i18n:translate="">There are none.</li></ul>
      </tal:if>
      <tal:if condition="view/terms">
        <ul>
          <li tal:repeat="term view/terms">
            <span tal:content="term/title" />
            <ul>
              <li tal:repeat="sheet term/sheets">
                <a href="" tal:content="sheet/text"
                   tal:attributes="href sheet/url">
                   Report Sheet
                </a>
              </li>
            </ul>
          </li>
        </ul>
      </tal:if>
    </fieldset>

    <div style="height: 1px;"></div>

    <fieldset>
      <legend><b i18n:translate="">Change of Status Messages</b></legend>
     <tal:if condition="not: view/statusMessages">
        <ul><li i18n:translate="">There are none.</li></ul>
      </tal:if>
      <tal:if condition="view/statusMessages">
        <ul>
          <li tal:repeat="message view/statusMessages">
            <a href="" tal:content="message/text"
               tal:attributes="href message/url">
               Change of Status Message
            </a>
          </li>
        </ul>
      </tal:if>
      <div style="height: 5px;"></div>
      <div class="controls">
        <a class="button-ok" href="" i18n:translate=""
           tal:condition="view/isCurrentSchoolYear"
           tal:attributes="href view/newStatusMessageURL">
           New Status Message
        </a>
        <a class="button-neutral" href="" i18n:translate=""
           tal:attributes="href view/allStatusMessagesURL">
           View All Status Messages
        </a>
      </div>
    </fieldset>
  </form>
</metal:block>

</body>
</html>
