<form action="" method="get" class="search">
    <fieldset>
        <input type="hidden" name="assignee" value="{{ request.GET.assignee }}" />
        <input type="hidden" name="lang" value="{{ request.GET.lang }}" />
        <input type="text" name="q" value="{{ request.GET.q }}" placeholder="Search&hellip;" />
    </fieldset>
</form>

<script type="text/javascript">
    $(function() {
        if ('{{ request.GET.q }}' !== '') {
            $searchFieldset = $('form.search fieldset');
            $searchFieldset.append('<a href="#" class="reset">x</a>');
            $anc = $('a.reset', $searchFieldset);
            $anc.click(function() {
                $anc.siblings('input[name="q"]')
                    .val('')
                    .attr('placeholder', 'Loading...');
                $anc.hide();
                $searchFieldset.parent().submit();
                return false;
            });
        }
    });
</script>

<form action="" method="get" class="search">
    <fieldset>
        <input type="hidden" name="assignee" value="{{ request.GET.assignee }}" />
        <input type="hidden" name="project" value="{{ request.GET.project }}" />
        <input type="hidden" name="lang" value="{{ request.GET.lang }}" />
        <input type="text" name="q" value="{{ request.GET.q }}" placeholder="Search&hellip;" />
    </fieldset>
</form>

<script type="text/javascript">
    $(function() {
        if ('{{ request.GET.q }}' !== '') {
            $searchFieldset = $('form.search fieldset');
            $searchFieldset.append('<a href="#" class="reset">x</a>');
            $anc = $('a.reset', $searchFieldset);
            $anc.click(function() {
                $anc.siblings('input[name="q"]')
                    .val('')
                    .attr('placeholder', 'Loading...');
                $anc.hide();
                $searchFieldset.parent().submit();
                return false;
            });
        }
    });
</script>

Make the team search field respect project.
Make the team search field respect project.
