<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="">
    Select calendars to display
  </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="">
      Select additional calendars to display
    </h3>

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

    <input type="hidden" name="nexturl"
           tal:attributes="value request/nexturl|nothing" />

    <p i18n:translate="">
      Hold down Ctrl or Shift to select multiple calendars.
    </p>

    <fieldset tal:define="app view/application" tal:condition="app">
      <legend i18n:translate="">Public Calendar</legend>
      <label>
        <input type="checkbox" name="application" value="application"
            tal:attributes="checked app/selected"/>
          <span tal:content="app/title"></span>
          <span i18n:translate="">site-wide calendar</span>
      </label>
    </fieldset>

    <fieldset class="inline" tal:define="resources view/resources">
      <legend i18n:translate="">Resources</legend>
      <p tal:condition="not:resources" i18n:translate="">
        There are no resources with calendars accessible to you.
      </p>
      <select size=8 multiple="multiple" id="resources" name="resources:list"
              tal:condition="resources">
        <option tal:repeat="resource resources/sortby:title"
                tal:attributes="value resource/id;
                                selected resource/selected"
                tal:content="resource/title">Resource</option>
      </select>
    </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>
