From ebee2d514c0e9bb6c949beaa802b181e0862a523 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Fri, 12 Aug 2022 00:20:37 -0400 Subject: [PATCH] Correct Current Cycle and add styling to new/update --- period/templates/cycle/create.html | 24 ++++++++++++++++++++---- period/templates/cycle/index.html | 2 +- period/templates/cycle/update.html | 23 +++++++++++++++++++---- 3 files changed, 40 insertions(+), 9 deletions(-) diff --git a/period/templates/cycle/create.html b/period/templates/cycle/create.html index 360a7c9..863c3a6 100644 --- a/period/templates/cycle/create.html +++ b/period/templates/cycle/create.html @@ -1,15 +1,31 @@ {% extends 'base.html' %} -{% block header %} -

{% block title %}New Cycle{% endblock %}

-{% endblock %} - {% block content %} + + +
+
+
+
+
+
+ {% block header %} +

{% block title %}New Cycle{% endblock %}

+ {% endblock %} +
+
+ New Cycle +
+
+
+
+

+
{% endblock %} \ No newline at end of file diff --git a/period/templates/cycle/index.html b/period/templates/cycle/index.html index 8861ed6..c89d59b 100644 --- a/period/templates/cycle/index.html +++ b/period/templates/cycle/index.html @@ -24,7 +24,7 @@
{% if cycle['cycle_length'] %} {% if loop.first %} - Day {{ cycle['cycle_length'] }} + Day {{ cycle['cycle_length'] - 1 }} {% else %} {{ cycle['cycle_length'] }} days. {% endif %} diff --git a/period/templates/cycle/update.html b/period/templates/cycle/update.html index 6eb0b24..e71062b 100644 --- a/period/templates/cycle/update.html +++ b/period/templates/cycle/update.html @@ -1,13 +1,28 @@ {% extends 'base.html' %} -{% block header %} -

{% block title %}Edit Cycle{% endblock %}

-{% endblock %} - {% block content %} + + +
+
+
+
+
+
+ {% block header %} +

{% block title %}Edit Cycle{% endblock %}

+ {% endblock %} +
+
+ New Cycle +
+
+
+
+