diff --git a/penparse/webui/templates/dashboard.html b/penparse/webui/templates/dashboard.html new file mode 100644 index 0000000..3194160 --- /dev/null +++ b/penparse/webui/templates/dashboard.html @@ -0,0 +1,52 @@ +{% extends "main.html" %} {% block content %} + + Your Dashboard + + View and manage your analyzed documents + + + + Go to Settings + + + + {% for document in documents %} + + {{ document.title }} + + Analyzed on: {{ document.analysis_date }} + + + View + Download + + + {% empty %} + + You haven't uploaded any documents yet. + + {% endfor %} + + + + + Upload a New Document + Upload Document + +{% endblock %} diff --git a/penparse/webui/urls.py b/penparse/webui/urls.py index 72734bb..6204aff 100644 --- a/penparse/webui/urls.py +++ b/penparse/webui/urls.py @@ -5,5 +5,7 @@ from . import views urlpatterns = [ path("", views.index, name="index"), path("dashboard", views.dashboard, name="dashboard"), + path("settings", views.settings, name='settings'), + path("documents/upload", views.upload_document, name="upload_document"), path("auth/register", views.register, name="register"), ] diff --git a/penparse/webui/views.py b/penparse/webui/views.py index 714f5fb..49a381c 100644 --- a/penparse/webui/views.py +++ b/penparse/webui/views.py @@ -21,7 +21,15 @@ def index(request): def dashboard(request): - return HttpResponse("Hello, world. You're at the polls index.") + return render(request, 'dashboard.html') + + +def settings(request): + return render(request, 'settings.html') + + +def upload_document(request): + return render(request, 'upload.html') def register(request: HttpRequest):
+ View and manage your analyzed documents +
+ Analyzed on: {{ document.analysis_date }} +
+ You haven't uploaded any documents yet. +