V1.0 add email notifications

This commit is contained in:
ellite
2023-11-10 11:45:01 +01:00
parent 65786aa191
commit 7c2e7f00b9
22 changed files with 7161 additions and 23 deletions
+21
View File
@@ -26,6 +26,16 @@
}
}
$notificationsEnabled = false;
$query = "SELECT enabled FROM notifications WHERE id = 1";
$result = $db->query($query);
if ($result) {
$row = $result->fetchArray(SQLITE3_ASSOC);
if ($row) {
$notificationsEnabled = $row['enabled'];
}
}
$headerClass = count($subscriptions) > 0 ? "main-actions" : "main-actions hidden";
$defaultLogo = $theme == "light" ? "images/wallos.png" : "images/walloswhite.png";
?>
@@ -229,6 +239,17 @@
<input type="text" id="notes" name="notes" placeholder="Notes">
</div>
<?php
if ($notificationsEnabled) {
?>
<div class="form-group-inline">
<input type="checkbox" id="notifications" name="notifications">
<label for="notifications">Enable Notifications for this subscription</label>
</div>
<?php
}
?>
<div class="buttons">
<input type="button" value="Delete" class="warning-button left" id="deletesub" style="display: none">
<input type="button" value="Cancel" class="secondary-button" onClick="closeAddSubscription()">