From 74a38303ebbdfc7abe428e3e70df4f5e4946dfa0 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Tue, 28 Apr 2020 19:10:01 +0100 Subject: [PATCH] - show type of submission - fix timer when there is no time limit --- demo/demo.yaml | 2 +- perguntations/__init__.py | 2 +- perguntations/templates/test.html | 19 +++++++++++++++---- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/demo/demo.yaml b/demo/demo.yaml index 7a4b462..f9587c4 100644 --- a/demo/demo.yaml +++ b/demo/demo.yaml @@ -22,7 +22,7 @@ title: Teste de demonstração (tutorial) # Duration in minutes. # (0 or undefined means infinite time) duration: 10 -autosubmit: false +autosubmit: true # Show points for each question, scale 0-20. # (default: false) diff --git a/perguntations/__init__.py b/perguntations/__init__.py index d749702..b3d98ee 100644 --- a/perguntations/__init__.py +++ b/perguntations/__init__.py @@ -32,7 +32,7 @@ proof of submission and for review. ''' APP_NAME = 'perguntations' -APP_VERSION = '2020.03.dev1' +APP_VERSION = '2020.04.dev1' APP_DESCRIPTION = __doc__ __author__ = 'Miguel Barão' diff --git a/perguntations/templates/test.html b/perguntations/templates/test.html index fc1bfcc..c29eabf 100644 --- a/perguntations/templates/test.html +++ b/perguntations/templates/test.html @@ -91,7 +91,11 @@
-
{{ str(t['duration'])+' minutos' if t['duration'] > 0 else chr(8734) }}
+
{{ str(t['duration'])+' minutos' if t['duration'] > 0 else 'sem limite' }}
+
+
+ +
{{ 'automática' if t['autosubmit'] else 'manual' }}
@@ -147,9 +151,14 @@ -- libgit2 0.21.2