<%! from django.core.urlresolvers import reverse %>

<%
def url_for_search():
  return reverse('django_comment_client.forum.views.search', args=[course_id])
%>

<form action="${url_for_search()}" method="get" class="discussion-search-form">
  <input class="search-input" type="text" value="${text}" id="keywords" autocomplete="off"/>
  <a class="discussion-link" href="javascript:void(0)">Search posts</a>
  <div class="search-within">
    <input type="checkbox" id="discussion-search-within-board-${discussion_id}" class="discussion-search-within-board" checked/>
    <label for="discussion-search-within-board-${discussion_id}">Search within board</label>
  </div>
</form>
