From 8109fc7619a164a2b05440b479e82b4b1d6b4e12 Mon Sep 17 00:00:00 2001 From: svxf Date: Thu, 27 Dec 2018 13:44:21 +0400 Subject: [PATCH] abra at Thu Dec 27 13:44:21 +04 2018 --- Pipfile | 1 + Pipfile.lock | 10 +++++++++- templates/web/activitylog_form.html | 11 +++++++---- templates/web/user_detail.html | 6 +++--- timelogger/settings.py | 1 + web/chart_views.py | 3 ++- web/forms.py | 14 ++++++++++++++ web/models.py | 7 +++++-- web/views.py | 20 +++++++++++++++++--- 9 files changed, 59 insertions(+), 14 deletions(-) create mode 100644 web/forms.py diff --git a/Pipfile b/Pipfile index b1bcff9..5574909 100644 --- a/Pipfile +++ b/Pipfile @@ -9,6 +9,7 @@ sqlalchemy = "*" numpy = "*" matplotlib = "*" scipy = "*" +django-bootstrap-datepicker-plus = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index afa2d00..d7309b6 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "6116399a31049347a1b4684b7d45038cd1bbc4c40c7f945196fd85072e90c483" + "sha256": "c6a6b8d3ebd478446b8e8800b29555ed874b559625670a9961406e358b897e06" }, "pipfile-spec": 6, "requires": { @@ -31,6 +31,14 @@ "index": "pypi", "version": "==2.1.4" }, + "django-bootstrap-datepicker-plus": { + "hashes": [ + "sha256:490058eba99d47f48a7d24fa78581c0e36375bdc7aa9605783eeb170d51fd0df", + "sha256:a8bc19cc6846f97ff1e6c447f4e0387881d16e8afa1e8bd7a652c19e545c566b" + ], + "index": "pypi", + "version": "==3.0.5" + }, "kiwisolver": { "hashes": [ "sha256:0ee4ed8b3ae8f5f712b0aa9ebd2858b5b232f1b9a96b0943dceb34df2a223bc3", diff --git a/templates/web/activitylog_form.html b/templates/web/activitylog_form.html index f7089bd..972af0d 100644 --- a/templates/web/activitylog_form.html +++ b/templates/web/activitylog_form.html @@ -1,10 +1,13 @@ {% extends 'web/base.html' %} {% block main %} + {{ form.media }} -
{% csrf_token %} - {{ form.as_p }} - -
+
{% csrf_token %} + {{ form.as_p }} + {# {% bootstrap_form form %}#} + + +
{% endblock %} diff --git a/templates/web/user_detail.html b/templates/web/user_detail.html index 7595880..3735d6a 100644 --- a/templates/web/user_detail.html +++ b/templates/web/user_detail.html @@ -81,10 +81,10 @@

Активности