
{% if collection_name %}
	<form method="GET" action="{% url 'collection_haystack_search' collection_name %}" class="navbar-form navbar-left" role="search">
		{% else %}
	<form method="GET" action="{% url 'haystack_search' %}" class="navbar-form navbar-left" role="search">	
{% endif %}
	
	<div class="form-group">
	  <input name="q" type="text" class="form-control" placeholder="Trouver ...">
	</div>
	
	<div class="form-group">
		<select name="model_type" class="form-control">
			<option value="images">Images</option>
			<option value="annotations">Annotations</option>
		</select>
	</div>

	<button type="submit" class="btn btn-default btn-sm"><i class="fa fa-search" aria-hidden="true"></i></button>
</form>
