1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-04-27 08:52:36 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Emmy D'Anello
0499885fc8
Fix problem names for 2025 2025-04-22 20:20:22 +02:00
Emmy D'Anello
63c96ff2d2
Refetch search query when the input is updated 2025-04-22 19:52:07 +02:00
Emmy D'Anello
efeb2628ad
Fix notation sheet when there is no observer 2025-04-22 19:44:21 +02:00
4 changed files with 13 additions and 13 deletions

View File

@ -1414,8 +1414,8 @@ class Pool(models.Model):
if has_observer:
merge_cells.append(f"{getcol(9 + i * passage_width)}2:{getcol(10 + i * passage_width)}2")
merge_cells.append(f"{getcol(9 + i * passage_width)}{max_row + 3}"
f":{getcol(10 + i * passage_width)}{max_row + 3}")
merge_cells.append(f"{getcol(9 + i * passage_width)}{max_row + 3}"
f":{getcol(10 + i * passage_width)}{max_row + 3}")
merge_cells.append(f"A{max_row + 1}:B{max_row + 1}")
merge_cells.append(f"A{max_row + 2}:B{max_row + 2}")
merge_cells.append(f"A{max_row + 3}:B{max_row + 3}")

View File

@ -389,14 +389,14 @@ if TFJM_APP == "TFJM":
)
PROBLEMS = [
"Triominos",
"Rassemblements mathématiques",
"Tournoi de ping-pong",
"Dépollution de la Seine",
"Électron libre",
"Pièces truquées",
"Drôles de cookies",
"Création d'un jeu",
"Une bonne humeur contagieuse",
"Drôles de toboggans",
"Plats à tarte gradués",
"Transformation de papillons",
"Gerrymandering",
"Le cauchemar de la ligne 20-25",
"Taxes routières",
"Points colorés sur un cercle",
]
elif TFJM_APP == "ETEAM":
PREFERRED_LANGUAGE_CODE = 'en'

View File

@ -1,9 +1,9 @@
function initModal(target, url, content_id = 'form-content') {
function initModal(target, url, content_id = 'form-content', always_refetch = false) {
document.querySelectorAll('[data-bs-target="#' + target + 'Modal"]')
.forEach(elem => elem.addEventListener('click', () => {
let modalBody = document.querySelector("#" + target + "Modal div.modal-body")
if (!modalBody.innerHTML.trim()) {
if (!modalBody.innerHTML.trim() || always_refetch) {
if (url instanceof Function) url = url()
fetch(url, {headers: {'CONTENT-ONLY': '1'}})

View File

@ -106,7 +106,7 @@
{% if user.is_authenticated and user.registration.is_admin %}
initModal("search",
() => "{% url "haystack_search" %}?q=" + encodeURI(document.getElementById("search-term").value),
"search-results")
"search-results", true)
{% endif %}
{% if not user.is_authenticated %}