<form method="post" class="standalone"
      tal:attributes="action string:${context/@@absolute_url}"
      i18n:domain="schooltool.intervention">
  <div class="viewspace">
    <h3>
      <span i18n:translate="">Goals</span>
      <a href="goals/addGoal.html" title="Add Goal"
         i18n:attributes="title">
        <img alt="Add Goal"
             tal:attributes="src context/++resource++schooltool.skin.flourish/add-icon.png"
             i18n:attributes="alt" />
      </a>
    </h3>
    <table>
      <thead>
        <tr>
          <th i18n:translate="">Goal</th>
          <th i18n:translate="">Added</th>
          <th i18n:translate="">Due</th>
          <th i18n:translate="">Status</th>
        </tr>
      </thead>
      <tal:if condition="not: view/goals">
        <tr>
          <td colspan="2" i18n:translate="">There are none.</td>
        </tr>
      </tal:if>
      <tal:if condition="view/goals">
        <tr tal:repeat="goal view/goals">
          <td>
            <a tal:content="goal/name"
               tal:attributes="href goal/url" />
          </td>
          <td>
            <a tal:content="goal/added"
               tal:attributes="href goal/url" />
          </td>
          <td>
            <a tal:content="goal/due"
               tal:attributes="href goal/url" />
          </td>
          <td>
            <a tal:content="goal/status"
               tal:attributes="href goal/url" />
          </td>
        </tr>
      </tal:if>
    </table>
    <p tal:condition="view/goals">
      <a href="goals/allGoals.html" i18n:translate="">More...</a>
    </p>

    <h3>
      <span i18n:translate="">Messages</span>
      <a href="messages/addMessage.html" title="Add Message"
         i18n:attributes="title">
      <img alt="Add Message"
           tal:attributes="src context/++resource++schooltool.skin.flourish/add-icon.png"
           i18n:attributes="alt" />
    </a>
    </h3>
    <table>
      <thead>
        <tr>
          <th i18n:translate="">From</th>
          <th i18n:translate="">Sent</th>
        </tr>
      </thead>
      <tal:if condition="not: view/messages">
        <tr>
          <td colspan="2" i18n:translate="">There are none.</td>
        </tr>
      </tal:if>
      <tal:if condition="view/messages">
        <tr tal:repeat="message view/messages">
          <td>
            <a tal:content="message/from"
               tal:attributes="href message/url" />
          </td>
          <td>
            <a tal:content="message/sent"
               tal:attributes="href message/url" />
          </td>
        </tr>
      </tal:if>
    </table>
    <p tal:condition="view/messages">
      <a href="messages/allMessages.html" i18n:translate="">More...</a>
    </p>
  </div>
</form>

