diff --git a/app.py b/app.py index fa523c1..3b4ff17 100644 --- a/app.py +++ b/app.py @@ -81,13 +81,6 @@ def get_calendar(person_id): return render_template('calendar.html', person=person, selected_date=selected_date, selected_view=selected_view, next_date=next_date, previous_date=previous_date) -@ app.route("/person//calendar_year") -@ validate_person -def get_calendar_year(person_id): - person = db.get_person(person_id) - return render_template('calendar_year.html', person=person) - - @ app.route("/person//workout", methods=['POST']) @ validate_person def create_workout(person_id): diff --git a/templates/partials/page/calendar.html b/templates/partials/page/calendar.html index eb20016..6236fa4 100644 --- a/templates/partials/page/calendar.html +++ b/templates/partials/page/calendar.html @@ -4,7 +4,7 @@
+ + {% if selected_view == 'month' %}

{{ strftime(selected_date, '%B, %Y') }}

+ {% else %} +

{{ strftime(selected_date, '%Y') }}

+ {% endif %}
+ {% if selected_view == 'month' %}
@@ -428,4 +435,416 @@
+ {% elif selected_view == 'year'%} +
+
+
+
December 2018 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SMTWTFS
1
2345 + 6 + 78
9101112131415
16171819202122
23242526272829
3031
+
+
+
+
January 2019 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SMTWTFS
12345
6789101112
13141516171819
20212223242526
2728293031
+
+
+
+
February 2019 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SMTWTFS
12
3456789
10111213141516
17181920212223
2425262728
+
+
+
+
March 2019 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SMTWTFS
12
3456789
10111213141516
17181920212223
24252627282930
31
+
+
+
+
April 2019 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SMTWTFS
123456
78910111213
14151617181920
21222324252627
282930
+
+
+
+
May 2019 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SMTWTFS
1234
567891011
12131415161718
19202122232425
262728293031
+
+
+
+
+ {% endif %}
\ No newline at end of file