From 936a00bf68ceb98661bbd710cd2ca1ed0a4579e0 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 4 Mar 2018 09:48:51 +0100 Subject: [PATCH] Use session to store session_pk instead of passing it with url params --- gym/templates/gym/equipment.html | 8 +-- gym/templates/gym/round_edit.html | 2 +- gym/templates/gym/session_detail.html | 4 +- gym/templates/gym/setting_edit.html | 2 +- gym/templates/gym/theoretical_max_edit.html | 2 +- gym/views.py | 73 ++++++++------------- 6 files changed, 36 insertions(+), 55 deletions(-) diff --git a/gym/templates/gym/equipment.html b/gym/templates/gym/equipment.html index 8c18120..c4d5563 100644 --- a/gym/templates/gym/equipment.html +++ b/gym/templates/gym/equipment.html @@ -16,12 +16,12 @@ Retourner à la salle {% endif %} - Ajouter un réglage - Ajouter un max théorique {% if session %} - Commencer une série {% endif %} @@ -46,7 +46,7 @@ {% if equipment.settings.all %}