<tal:block i18n:domain="schooltool">
<fieldset>
  <legend><span i18n:translate="">Search</span></legend>
  <div class="row">
    <div class="label">
      <label for="SEARCH_TITLE">
        <span i18n:translate="">Title or description</span>
      </label>
    </div>
    <div class="widget">
      <input type="text" name="SEARCH_TITLE"
             id="SEARCH_TITLE" class="text-widget"
             tal:attributes="value request/SEARCH_TITLE|nothing"
             />
    </div>
  </div>
  <div class="row">
    <div class="label">
      <label for="SEARCH_TYPE">
        <span i18n:translate="">Filter by...</span>
      </label>
    </div>
    <div class="widget">
      <select name="SEARCH_TYPE" id="SEARCH_TYPE"
              class="select-widget">
        <option i18n:translate="" value="">All types</option>
        <option tal:repeat="type view/types"
                tal:content="type/title"
                tal:attributes="value type/id;
                                selected python:type['id'] == request.get('SEARCH_TYPE')"/>
      </select>
    </div>
  </div>
</fieldset>
<div class="buttons">
  <input type="submit" name="SEARCH_BUTTON" value="Search"
         class="button-ok" i18n:attributes="value" />
</div>
</tal:block>
