<%= form_tag({:action => "filter_columns"}, :onsubmit => 'return proof()') %>
<h1 class="head">Filterkriterien für Einleitstellen</h1>


<div class="form-abfrage">
  <table border="0" class="form--settings form--selection-list">
    <tr>
      <td>Berichtszeitraum:</td>
      <td><%= select_tag :jahr, options_for_select(@reporting_periods, @act_period)  %></td>
    </tr>
    <tr>
      <td>Name oder Namensteil:</td>
      <td colspan="2"><input type="text" name="name"></td>
    </tr>
    <tr>
      <td>ID oder Teil-ID:</td>
      <td colspan="2"><input type="text" name="id"></td>
    </tr>
    <tr>
      <td>EU-Schlüssel oder Teilschlüssel:</td>
      <td><input type="text" name="eu_key"></td>
    </tr>
    <tr>
      <td>Bundesland</td>
      <td><%= select_tag :federal_state_id, options_for_select(@federal_states, @default_federal_state) %></td>
    </tr>
    <tr>
    <tr>
      <td>Einleitstelle aktiv:</td>
      <td><label><input type="radio" name="aktiv" value =""  checked>Alle anzeigen</label><br>
          <label><input type="radio" name="aktiv" value ="1">Ja</label><br>
          <label><input type="radio" name="aktiv" value ="0">Nein</label>
      </td>
    </tr>
    <tr>
      <td>Namensteil des Vorfluters:</td>
      <td colspan="2"><input type="text" name="rb_name"></td>
    </tr>
    <tr>
      <td>Vorfluter überwacht:</td>
      <td><label><input type="radio" name="vorfluter" value ="" checked>Alle anzeigen</label><br>
          <label><input type="radio" name="vorfluter" value ="1">Ja</label><br>
          <label><input type="radio" name="vorfluter" value ="0">Nein</label>
      </td>
    </tr>
    <tr>
      <td>Art des Einleitgewässers:</td>
      <td colspan="2"><%= select_tag :area, options_for_select(@waters)  %></td>
    </tr>
    <tr>
      <td>Flussgebietseinheit:</td>
      <td colspan="2"><%= select_tag :rb_rbd_id, options_for_select(@river_basin_districts)  %></td>
    </tr>
  </table>


  <div class="from--submit">
    <button type="button" onclick="window.location='<%= url_for :action => "index" %>'">
      <i class="fa fa-times" aria-hidden="true"></i>
    </button>
    <button type="submit">
      <i class="fa fa-check" aria-hidden="true"></i>
    </button>
  </div>
</div>
