Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Stub template for adding workouts

Roland Geider1297f84b38a7
diff --git a/manager/templates/add.html b/manager/templates/add.html
new file mode 100644
index 000000000..a6b3d4f0c
--- /dev/null
+++ b/manager/templates/add.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% load i18n %}
+{% load staticfiles %}
+
+{% block title %}{% trans "Add a new Workout" %}{% endblock %}
+
+{% block content %}
+
+
+
+<h1> {% trans "Add a new Workout" %}</h1>
+
+<p>Form goes here...</p>
+
+{% endblock %}
\ No newline at end of file
diff --git a/manager/views.py b/manager/views.py
index 10ad5a214..0e2ddd3f3 100644
--- a/manager/views.py
+++ b/manager/views.py
@@ -25,7 +25,7 @@ def index(request):
def add(request):
- return HttpResponse("Hello, world. You're at the add method.")
+ return render_to_response('add.html')
def view_workout(request, id):
p = get_object_or_404(TrainingSchedule, pk=id)