From 0946fe79f6376cd4eaf042616fcd329b29f1d024 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Tue, 5 May 2020 16:11:56 +0100 Subject: [PATCH] debounce authorization checkboxes --- BUGS.md | 4 ++-- perguntations/static/js/admin.js | 2 +- perguntations/templates/admin.html | 2 +- perguntations/templates/grade.html | 5 ++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/BUGS.md b/BUGS.md index 2909df8..e60b1de 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,8 +1,7 @@ # BUGS -- botao de autorizar desliga-se, fazer debounce. -e.g. retornar None quando nao ha alteracoes relativamente à última vez. +- retornar None quando nao ha alteracoes relativamente à última vez. ou usar push (websockets?) - quando scale_max não é 20, as cores das barras continuam a reflectir a escala 0,20 - CRITICAL se answer for `i - + diff --git a/perguntations/templates/grade.html b/perguntations/templates/grade.html index 0c3c353..492ed9f 100644 --- a/perguntations/templates/grade.html +++ b/perguntations/templates/grade.html @@ -45,7 +45,7 @@ {{ f'{round(t["grade"], 1)}' }} valores na escala de {{t['scale'][0]}} a {{t['scale'][1]}}. -

O seu teste foi entregue e está registado.

+

O seu teste foi correctamente entregue e a nota registada.

Clique aqui para sair do teste

{% if t['grade'] - t['scale'][0] >= 0.75*(t['scale'][1] - t['scale'][0]) %} @@ -90,8 +90,7 @@ aria-valuenow="{{ 100*(g[1] - t['scale'][0])/(t['scale'][1] - t['scale'][0]) }}" aria-valuemin="0" aria-valuemax="100" - style="min-width: 2em; width: {{ 100*(g[1]-t['scale'][0])/(t['scale'][1]-t['scale'][0]) }}%;" - > + style="min-width: 2em; width: {{ 100*(g[1]-t['scale'][0])/(t['scale'][1]-t['scale'][0]) }}%;"> {{ str(round(g[1], 1)) }} -- libgit2 0.21.2