Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add a JQuery datepicker to enter the weight date
Roland Geider76cbfa98d754
diff --git a/weight/templates/edit.html b/weight/templates/edit.htmlindex 74ad6ce37..f31f1caaf 100644--- a/weight/templates/edit.html+++ b/weight/templates/edit.html@@ -1,12 +1,21 @@{% extends "base.html" %}-{% load i18n %}+{% load i18n %}+{% load staticfiles %}+-<!--- Title--->{% block title %}{% trans "Weight entry" %}{% endblock %}+{% block header %}+<script src="{% static "js/jquery-ui.js" %}"></script>+<script>+ $(function() {+ $( "#id_creation_date" ).datepicker({ dateFormat: "dd.mm.yy" });+ });+</script>+{% endblock %}++<!--Main Content-->