Skip to content
Snippets Groups Projects
Commit dc484d58 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

Merge develop, fix conflicts

parents 93021da8 e53fa388
No related branches found
No related tags found
No related merge requests found
...@@ -34,37 +34,54 @@ ...@@ -34,37 +34,54 @@
</div> </div>
<div id="legend"></div> <div id="legend"></div>
</div> </div>
<form class="form-inline" method="get" action=""> <form method="get" action="" class="">
<div class="form-group"> <div class="row">
<input class="form-control" type="date" id="dateFrom" name="from" value="{{from|safe}}"/> <!-- Date Range Fields -->
</div> <div class="form-group col-sm-3">
- <label for="dateFrom">{% trans "From" %}</label>
<div class="form-group"> <input class="form-control" type="date" id="dateFrom" name="from" value="{{from|safe}}"/>
<input class="form-control" type="date" id="dateTo" name="to" value="{{to|safe}}"/> </div>
</div> <div class="form-group col-sm-3">
<div class="form-group"> <label for="dateTo">{% trans "To" %}</label>
<select name="pestId" id="observationPestList" class="form-control chosen-select" data-placeholder="{% trans "Organism" %}"> <input class="form-control" type="date" id="dateTo" name="to" value="{{to|safe}}"/>
</select> </div>
</div> <div class="form-group col-sm-6">
<div class="form-group">
<select name="cropId" id="observationCropList" class="form-control chosen-select" data-placeholder="{% trans "Crop" %}">
</select>
</div>
<div class="form-group">
<select name="cropCategoryId" id="cropCategoryList" style="min-width: 150px;" class="form-control chosen-select" data-placeholder="{% trans "Crop categories" %}">
</select>
</div>
<div class="checkbox"> <div class="checkbox">
&nbsp;<br>
<label> <label>
<input type="checkbox" name="includeNegative"{% if include_negative %}checked{% endif %} value="true"> {% trans "Include registrations without pest presence" %} <input type="checkbox" name="includeNegative"{% if include_negative %}checked{% endif %} value="true"> {% trans "Include registrations without pest presence" %}
</label> </label>
</div> </div>
</div>
</div>
<div class="row mt-2">
<div class="form-group col-sm-3">
<label for="observationPestList">{% trans "Organism" %}</label>
<select name="pestId" id="observationPestList" class="form-control chosen-select" data-placeholder="{% trans "Organism" %}">
</select>
</div>
<div class="form-group col-sm-3">
<label for="observationCropList">{% trans "Crop" %}</label>
<select name="cropId" id="observationCropList" class="form-control chosen-select" data-placeholder="{% trans "Crop" %}">
</select>
</div>
<div class="form-group col-sm-3">
<label for="cropCategoryList">{% trans "Crop categories" %}</label>
<select name="cropCategoryId" id="cropCategoryList" class="form-control chosen-select" style="min-width: 150px;" data-placeholder="{% trans "Crop categories" %}">
</select>
</div>
<div class="form-group col-sm-3">
&nbsp;<br>
<button type="submit" class="btn btn-primary">{% trans "Filter" %}</button> <button type="submit" class="btn btn-primary">{% trans "Filter" %}</button>
</form> </div>
</div>
</form>
<div style="padding: 10px 0px"> <div style="padding: 10px 0px">
<span id="emptyResult">{% trans "No observations found for specified search criteria" %}</span> <span id="emptyResult">{% trans "No observations found for specified search criteria" %}</span>
<a id="downloadLink" href="">{% trans "Download as Excel" %}</a>
</div> </div>
<a id="downloadLink" href="">{% trans "Download as Excel" %}</a>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped" id="observationTable"> <table class="table table-striped" id="observationTable">
<thead> <thead>
...@@ -153,4 +170,4 @@ ...@@ -153,4 +170,4 @@
); );
</script> </script>
{% endblock %} {% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment