Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note about copying limits #480

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion oioioi/problems/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<span class="help-inline">{{ error }}</span>
{% endfor %}
{% if form.url_key.help_text %}
<p class="help-block">{{ form.url_key.help_text }}</p>
<small class="help text-muted form-text">{{ form.url_key.help_text }}</small>
{% endif %}
</div>

Expand Down