% rebase('base.html', title='Tekmovalec', uporabniskoIme=user)

  <h1>
    Tekmovalec
  </h1>

  <input type="text" class="form-control" placeholder="Tekmovalec" id="autocomplete" />

  <script type="text/javascript">
    $('#autocomplete').autocomplete({
      serviceUrl: '/autocomplete/athletes',
      onSelect: function (suggestion) {
        window.location.href = "/athlete/" + suggestion.data;
      }
    });
  </script>
  