commit to current

This commit is contained in:
Dan
2022-12-15 23:08:33 -05:00
parent 75f2a07722
commit 62df4359e7
7 changed files with 383 additions and 380 deletions

View File

@@ -1,20 +1,20 @@
<html>
<head>
<title>Hydro</title>
</head>
<body>
<script type="text/javascript" src="/static/scripts.js"></script>
<div>Hydro: <a href="index.html">home</a></div>
<br>
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
<br>
{% block content %}{% endblock %}
</body>
<html>
<head>
<title>Hydro</title>
</head>
<body>
<script type="text/javascript" src="/static/scripts.js"></script>
<div>Hydro: <a href="index.html">home</a></div>
<br>
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
<br>
{% block content %}{% endblock %}
</body>
</html>

View File

@@ -1,33 +1,33 @@
{% extends "base.html" %}
{% block content %}
<h1>Information</h1>
<form method="post">
<h3>Feeding Information</h3>
<label>Plant Date</label>
<input type="date" name="plantDate" value= {{ plant.plant }}>
<br>
<label>Last Feed Date</label>
<input type="date" name="lastDate" value= {{ plant.last }}>
<br>
<!--<label>Next Feed Date</label>
<input type="date" name="nextDate" value= {{ plant.next }}>-->
Next Feed Date: {{ plant.next }}
<br>
Feed Frequency: {{ plant.freq }} days
<h3>Cleaning Information</h3>
<label>Last Clean Date</label>
<input type="date" name="lastClean" value= {{ plant.lastClean }}>
<br>
Next Clean Date: {{ plant.nextClean }}
<br>
Cleaning Frequency: {{ plant.cleanFreq }} days
<h1>Alerts</h1>
<input type="checkbox" id="alert_text" name="AlertText" value={{ alerts.text }} {{ "checked" if alerts.text else "" }}>
<label for="alert_text">Text Message</label>
<input type="checkbox" id="alert_email" name="AlertEmail" value={{ alerts.email }} {{ "checked" if alerts.email else "" }}>
<label for="alert_email">Email</label><br>
<input type="submit" id="DateSubmitForm" name="DateSubmitForm" value="Save">
</form>
<button class=button onclick="updateFeed()">Update Feed</button>
{% extends "base.html" %}
{% block content %}
<h1>Information</h1>
<form method="post">
<h3>Feeding Information</h3>
<label>Plant Date</label>
<input type="date" name="plantDate" value= {{ plant.plant }}>
<br>
<label>Last Feed Date</label>
<input type="date" name="lastDate" value= {{ plant.last }}>
<br>
<!--<label>Next Feed Date</label>
<input type="date" name="nextDate" value= {{ plant.next }}>-->
Next Feed Date: {{ plant.next }}
<br>
Feed Frequency: {{ plant.freq }} days
<h3>Cleaning Information</h3>
<label>Last Clean Date</label>
<input type="date" name="lastClean" value= {{ plant.lastClean }}>
<br>
Next Clean Date: {{ plant.nextClean }}
<br>
Cleaning Frequency: {{ plant.cleanFreq }} days
<h1>Alerts</h1>
<input type="checkbox" id="alert_text" name="AlertText" value={{ alerts.text }} {{ "checked" if alerts.text else "" }}>
<label for="alert_text">Text Message</label>
<input type="checkbox" id="alert_email" name="AlertEmail" value={{ alerts.email }} {{ "checked" if alerts.email else "" }}>
<label for="alert_email">Email</label><br>
<input type="submit" id="DateSubmitForm" name="DateSubmitForm" value="Save">
</form>
<button class=button onclick="updateFeed()">Update Feed</button>
{% endblock %}