Skip to content

A live bird collage card for your Home Assistant dashboard.

Add Species Management button and view handling

Alexandreb703f5bf045b
diff --git a/homepage/views.php b/homepage/views.php
index a137c785..501989ea 100644
--- a/homepage/views.php
+++ b/homepage/views.php
@@ -173,6 +173,7 @@ if(isset($_GET['view'])){
<button type=\"submit\" name=\"view\" value=\"Included\" form=\"views\">Custom Species List</button>
<button type=\"submit\" name=\"view\" value=\"Excluded\" form=\"views\">Excluded Species List</button>
<button type=\"submit\" name=\"view\" value=\"Whitelisted\" form=\"views\">Whitelist Species List</button>
+ <button type=\"submit\" name=\"view\" value=\"Species Management\" form=\"views\">Species Management</button>
</form>
</div>";
}
@@ -203,6 +204,10 @@ if(isset($_GET['view'])){
$species_list="whitelist";
include('./scripts/species_list.php');
}
+ if($_GET['view'] == "Species Management"){
+ ensure_authenticated();
+ include('scripts/species_tools.php');
+ }
if($_GET['view'] == "File"){
echo "<iframe src='scripts/filemanager/filemanager.php'></iframe>";
}