{% else %}
<td class="checkbox"><input name="choose" type="checkbox" value="{{ uuid }}"</td>
<td class="checkbox"><input name="done" type="checkbox" value="{{ uuid }}"></td>
-<td class="number"><input name="day_weight" type="number" step=0.1 size=8 placeholder={{ t.current_default_weight }} ></td>
+<td class="number"><input class="day_weight_input" name="day_weight" type="number" step=0.1 size=8 placeholder={{ t.current_default_weight }} ></td>
<td></td>
<td></td>
<td></td>
</table>
<input type="submit" value="update">
</form>
+{% include 'watch_form.html' %}
<script>
var day_weight_inputs = document.getElementsByClassName("day_weight_input");
for (let i = 0; i < day_weight_inputs.length; i++) {
input.value = parseFloat(input.placeholder);
}
input.value = parseFloat(input.value).toFixed(1);
+ formHasChanged = true;
};
input.insertAdjacentElement('afterend', button);
}
</script>
-{% include 'watch_form.html' %}
{% endblock %}