Commit 43118966 authored by Kristian Tan's avatar Kristian Tan

Made form fields required

parent 17d17c67
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
<div class="inputs"> <div class="inputs">
{% if display_change_kWh == True %} {% if display_change_kWh == True %}
<form action="{{ url_for('handle_change_kWh') }}" method="post"> <form action="{{ url_for('handle_change_kWh') }}" method="post">
Change cost per kWh: <input type="text" name="kWhprice"> Change cost per kWh: <input type="text" name="kWhprice" required>
<input type="submit" required> <input type="submit">
</form> </form>
{% endif %} {% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment