Commit b99092f2 authored by Kristian Tan's avatar Kristian Tan

Alligned form input boxes

parent 9c39357c
...@@ -60,3 +60,14 @@ body { ...@@ -60,3 +60,14 @@ body {
text-decoration: underline; text-decoration: underline;
text-align: center; text-align: center;
} }
.add_new_device_form {
width: 100%;
}
label{
width: 50%;
}
input {
width: 50%;
}
\ No newline at end of file
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
{% endif %} {% endif %}
{% if display_new_device_form == True %} {% if display_new_device_form == True %}
<div class=".add_new_device_form"> <div class="add_new_device_form">
<form action="{{ url_for('handle_new_device') }}" method="post"> <form action="{{ url_for('handle_new_device') }}" method="post">
<label>New device name:</label> <input type="text" name="new_device_name" required> <br> <label>New device name:</label> <input type="text" name="new_device_name" required> <br>
<label>New device wattage:</label> <input type="number" name="new_device_wattage" required> <br> <label>New device wattage:</label> <input type="number" name="new_device_wattage" required> <br>
......
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