From b0d8ceead37f2ce8d7db2f2f7bfa77e3d7ef5adf Mon Sep 17 00:00:00 2001
From: Lene Wasskog <lene.wasskog@nibio.no>
Date: Fri, 18 Oct 2024 10:41:03 +0200
Subject: [PATCH] fix: Minor style adjustments

---
 observations/templates/observations/index.html | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/observations/templates/observations/index.html b/observations/templates/observations/index.html
index 0df65c11..e5893da0 100644
--- a/observations/templates/observations/index.html
+++ b/observations/templates/observations/index.html
@@ -45,7 +45,7 @@
             <label for="dateTo">{% trans "To" %}</label>
             <input class="form-control" type="date" id="dateTo" name="to" value="{{to|safe}}"/>
         </div>
-        <div class="form-group col-sm-6">
+        <div class="form-group col-sm-6 vertical-align-center">
             <div class="checkbox">
                 <label>
                     <input type="checkbox" name="includeNegative"{% if include_negative %}checked{% endif %} value="true"> {% trans "Include registrations without pest presence" %}
@@ -72,7 +72,6 @@
         </div>
         <div class="form-group col-sm-3">
             <button type="submit" class="btn btn-primary">{% trans "Filter" %}</button>
-            <a id="downloadLink" href="">{% trans "Download as Excel" %}</a>
         </div>
     </div>
 </form>
@@ -80,6 +79,7 @@
         <div style="padding: 10px 0px">
             <span id="emptyResult">{% trans "No observations found for specified search criteria" %}</span>
         </div>
+        <a id="downloadLink" href="">{% trans "Download as Excel" %}</a>
         <div class="table-responsive">
             <table class="table table-striped" id="observationTable">
                     <thead>
@@ -128,6 +128,11 @@
         padding:0;
         margin:0;
     }
+    .vertical-align-center {
+      display: flex;
+      align-items: center;
+      justify-content: center;
+    }
 </style>
 {% endblock %}
 {% block customJS %}
-- 
GitLab