From 5b1877a5e22fa7c1bf5ed3dfe85b78ff1fc00158 Mon Sep 17 00:00:00 2001 From: Kamil Szymczak Date: Thu, 6 Mar 2025 09:43:07 +0100 Subject: [PATCH 1/2] Add a note about copying limits --- oioioi/problems/forms.py | 9 ++++++++- .../problems/templates/problems/problemset-source.html | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/oioioi/problems/forms.py b/oioioi/problems/forms.py index 4d93d98b5..4f5f54050 100644 --- a/oioioi/problems/forms.py +++ b/oioioi/problems/forms.py @@ -104,7 +104,14 @@ class Meta(object): class ProblemsetSourceForm(forms.Form): - url_key = forms.CharField(label=_("Enter problem's secret key"), required=True) + url_key = forms.CharField(label=_("Enter problem's secret key"), + help_text=("Please note that the time and memory limits will be copied\ + from the source problem. If they have been overriden\ + in a specific contest, these settings will not be copied.\ + If you want to copy the limits from a specific contest,\ + please go the contest's problem list and use the 'Attach\ + to another contest' option."), + required=True) def __init__(self, url_key, *args, **kwargs): super(ProblemsetSourceForm, self).__init__(*args, **kwargs) diff --git a/oioioi/problems/templates/problems/problemset-source.html b/oioioi/problems/templates/problems/problemset-source.html index f9848dddb..14add5d99 100644 --- a/oioioi/problems/templates/problems/problemset-source.html +++ b/oioioi/problems/templates/problems/problemset-source.html @@ -20,7 +20,7 @@ {{ error }} {% endfor %} {% if form.url_key.help_text %} -

{{ form.url_key.help_text }}

+ {{ form.url_key.help_text }} {% endif %} From b2e792e428dd0830bcd5432cbeac70fa1d543fe0 Mon Sep 17 00:00:00 2001 From: Kamil Szymczak Date: Wed, 26 Mar 2025 12:46:53 +0100 Subject: [PATCH 2/2] Add text translation --- oioioi/problems/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oioioi/problems/forms.py b/oioioi/problems/forms.py index 4f5f54050..252bd52ec 100644 --- a/oioioi/problems/forms.py +++ b/oioioi/problems/forms.py @@ -105,7 +105,7 @@ class Meta(object): class ProblemsetSourceForm(forms.Form): url_key = forms.CharField(label=_("Enter problem's secret key"), - help_text=("Please note that the time and memory limits will be copied\ + help_text=_("Please note that the time and memory limits will be copied\ from the source problem. If they have been overriden\ in a specific contest, these settings will not be copied.\ If you want to copy the limits from a specific contest,\