add delete-all in test-data page
This commit is contained in:
parent
fa9cc9b7cb
commit
954597cd96
7 changed files with 1324 additions and 4 deletions
|
@ -391,3 +391,165 @@ INFO 2020-01-24 02:28:30,582 judgehandler judge1: Grading has begun on: 36
|
||||||
INFO 2020-01-24 02:28:30,714 judgehandler judge1: 3 test case(s) completed on: 36
|
INFO 2020-01-24 02:28:30,714 judgehandler judge1: 3 test case(s) completed on: 36
|
||||||
INFO 2020-01-24 02:28:30,783 judgehandler judge1: Grading has ended on: 36
|
INFO 2020-01-24 02:28:30,783 judgehandler judge1: Grading has ended on: 36
|
||||||
INFO 2020-01-24 02:28:30,784 judgelist Judge available after grading 36: judge1
|
INFO 2020-01-24 02:28:30,784 judgelist Judge available after grading 36: judge1
|
||||||
|
INFO 2020-01-24 04:00:04,615 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 04:01:41,763 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 04:02:04,245 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 04:02:04,245 judgelist Dispatched submission 37 to: judge1
|
||||||
|
INFO 2020-01-24 04:02:04,253 judgehandler Submission acknowledged: 37
|
||||||
|
INFO 2020-01-24 04:02:04,288 judgehandler judge1: Grading has begun on: 37
|
||||||
|
INFO 2020-01-24 04:02:04,357 judgehandler judge1: 1 test case(s) completed on: 37
|
||||||
|
INFO 2020-01-24 04:02:04,460 judgehandler judge1: 2 test case(s) completed on: 37
|
||||||
|
INFO 2020-01-24 04:02:04,528 judgehandler judge1: Grading has ended on: 37
|
||||||
|
INFO 2020-01-24 04:02:04,529 judgelist Judge available after grading 37: judge1
|
||||||
|
INFO 2020-01-24 04:02:20,761 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 04:02:20,762 judgelist Dispatched submission 38 to: judge1
|
||||||
|
INFO 2020-01-24 04:02:20,778 judgehandler Submission acknowledged: 38
|
||||||
|
INFO 2020-01-24 04:02:20,815 judgehandler judge1: Grading has begun on: 38
|
||||||
|
INFO 2020-01-24 04:02:20,910 judgehandler judge1: 3 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 04:02:21,051 judgehandler judge1: Grading has ended on: 38
|
||||||
|
INFO 2020-01-24 04:02:21,051 judgelist Judge available after grading 38: judge1
|
||||||
|
INFO 2020-01-24 04:02:42,811 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 04:02:42,811 judgelist Dispatched submission 39 to: judge1
|
||||||
|
INFO 2020-01-24 04:02:42,828 judgehandler Submission acknowledged: 39
|
||||||
|
INFO 2020-01-24 04:02:42,863 judgehandler judge1: Grading has begun on: 39
|
||||||
|
INFO 2020-01-24 04:02:42,953 judgehandler judge1: 3 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 04:02:43,035 judgehandler judge1: Grading has ended on: 39
|
||||||
|
INFO 2020-01-24 04:02:43,035 judgelist Judge available after grading 39: judge1
|
||||||
|
INFO 2020-01-24 04:03:07,798 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 04:03:07,798 judgelist Dispatched submission 40 to: judge1
|
||||||
|
INFO 2020-01-24 04:03:07,815 judgehandler Submission acknowledged: 40
|
||||||
|
INFO 2020-01-24 04:03:07,855 judgehandler judge1: Grading has begun on: 40
|
||||||
|
INFO 2020-01-24 04:03:07,983 judgehandler judge1: 3 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 04:03:08,056 judgehandler judge1: Grading has ended on: 40
|
||||||
|
INFO 2020-01-24 04:03:08,056 judgelist Judge available after grading 40: judge1
|
||||||
|
INFO 2020-01-24 04:17:47,286 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 05:02:07,043 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 05:03:19,384 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 05:03:19,385 judgelist Dispatched submission 40 to: judge1
|
||||||
|
INFO 2020-01-24 05:03:19,394 judgehandler Submission acknowledged: 40
|
||||||
|
INFO 2020-01-24 05:03:19,441 judgehandler judge1: Grading has begun on: 40
|
||||||
|
INFO 2020-01-24 05:03:19,596 judgehandler judge1: 5 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:19,847 judgehandler judge1: 7 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:20,098 judgehandler judge1: 8 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:20,921 judgehandler judge1: 4 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:21,120 judgehandler judge1: 1 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:21,380 judgehandler judge1: 5 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:21,521 judgehandler judge1: 3 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:21,656 judgehandler judge1: 7 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:21,852 judgehandler judge1: 7 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:22,103 judgehandler judge1: 8 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:22,354 judgehandler judge1: 7 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:22,813 judgehandler judge1: 4 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:23,394 judgehandler judge1: 1 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:23,741 judgehandler judge1: 3 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:24,608 judgehandler judge1: 1 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:24,757 judgehandler judge1: 6 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:24,907 judgehandler judge1: 2 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:25,211 judgehandler judge1: 1 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:25,355 judgehandler judge1: 4 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:25,498 judgehandler judge1: 7 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:25,643 judgehandler judge1: 7 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:26,556 judgehandler judge1: 2 test case(s) completed on: 40
|
||||||
|
INFO 2020-01-24 05:03:26,717 judgehandler judge1: Grading has ended on: 40
|
||||||
|
INFO 2020-01-24 05:03:26,717 judgelist Judge available after grading 40: judge1
|
||||||
|
INFO 2020-01-24 05:03:44,777 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 05:03:44,778 judgelist Dispatched submission 38 to: judge1
|
||||||
|
INFO 2020-01-24 05:03:44,794 judgehandler Submission acknowledged: 38
|
||||||
|
INFO 2020-01-24 05:03:45,013 judgehandler judge1: Grading has begun on: 38
|
||||||
|
INFO 2020-01-24 05:03:45,140 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:45,391 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:45,789 judgehandler judge1: 3 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:46,267 judgehandler judge1: 1 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:47,279 judgehandler judge1: 3 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:47,514 judgehandler judge1: 3 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:47,618 judgehandler judge1: 1 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:47,712 judgehandler judge1: 1 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:47,805 judgehandler judge1: 1 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:47,899 judgehandler judge1: 4 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:47,994 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:48,134 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:48,275 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:48,399 judgehandler judge1: 8 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:48,650 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:48,901 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:49,762 judgehandler judge1: 2 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:49,957 judgehandler judge1: 1 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:50,194 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:50,314 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:50,703 judgehandler judge1: 7 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:50,846 judgehandler judge1: 2 test case(s) completed on: 38
|
||||||
|
INFO 2020-01-24 05:03:51,804 judgehandler judge1: Grading has ended on: 38
|
||||||
|
INFO 2020-01-24 05:03:51,804 judgelist Judge available after grading 38: judge1
|
||||||
|
INFO 2020-01-24 05:04:06,445 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 05:04:06,446 judgelist Dispatched submission 39 to: judge1
|
||||||
|
INFO 2020-01-24 05:04:06,459 judgehandler Submission acknowledged: 39
|
||||||
|
INFO 2020-01-24 05:04:06,506 judgehandler judge1: Grading has begun on: 39
|
||||||
|
INFO 2020-01-24 05:04:06,677 judgehandler judge1: 4 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:06,928 judgehandler judge1: 7 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:07,178 judgehandler judge1: 7 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:07,429 judgehandler judge1: 7 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:07,679 judgehandler judge1: 8 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:08,955 judgehandler judge1: 2 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:09,048 judgehandler judge1: 1 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:09,142 judgehandler judge1: 1 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:09,235 judgehandler judge1: 4 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:09,325 judgehandler judge1: 6 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:09,436 judgehandler judge1: 8 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:09,687 judgehandler judge1: 7 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:09,937 judgehandler judge1: 7 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:10,188 judgehandler judge1: 7 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:10,439 judgehandler judge1: 8 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:11,345 judgehandler judge1: 5 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:11,658 judgehandler judge1: 1 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:11,836 judgehandler judge1: 7 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:12,014 judgehandler judge1: 3 test case(s) completed on: 39
|
||||||
|
INFO 2020-01-24 05:04:12,128 judgehandler judge1: Grading has ended on: 39
|
||||||
|
INFO 2020-01-24 05:04:12,128 judgelist Judge available after grading 39: judge1
|
||||||
|
INFO 2020-01-24 05:24:11,841 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 05:24:14,084 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 05:35:10,473 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 05:35:30,120 judgehandler judge1: Updated problem list
|
||||||
|
INFO 2020-01-24 05:36:00,928 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-24 05:36:00,928 judgelist Dispatched submission 41 to: judge1
|
||||||
|
INFO 2020-01-24 05:36:00,944 judgehandler Submission acknowledged: 41
|
||||||
|
INFO 2020-01-24 05:36:00,984 judgehandler judge1: Grading has begun on: 41
|
||||||
|
INFO 2020-01-24 05:36:01,275 judgehandler judge1: 8 test case(s) completed on: 41
|
||||||
|
INFO 2020-01-24 05:36:01,526 judgehandler judge1: 6 test case(s) completed on: 41
|
||||||
|
INFO 2020-01-24 05:36:01,777 judgehandler judge1: 8 test case(s) completed on: 41
|
||||||
|
INFO 2020-01-24 05:36:02,027 judgehandler judge1: 7 test case(s) completed on: 41
|
||||||
|
INFO 2020-01-24 05:36:02,113 judgehandler judge1: 1 test case(s) completed on: 41
|
||||||
|
INFO 2020-01-24 05:36:02,206 judgehandler judge1: Grading has ended on: 41
|
||||||
|
INFO 2020-01-24 05:36:02,206 judgelist Judge available after grading 41: judge1
|
||||||
|
INFO 2020-01-26 05:15:24,961 judgehandler Judge connected from: ('127.0.0.1', 34940)
|
||||||
|
INFO 2020-01-26 05:15:24,983 judgehandler Judge authenticated: ('127.0.0.1', 34940) (judge1)
|
||||||
|
INFO 2020-01-26 05:15:28,838 judgelist Free judges: 1
|
||||||
|
INFO 2020-01-26 05:15:28,840 judgelist Dispatched submission 42 to: judge1
|
||||||
|
INFO 2020-01-26 05:15:28,861 judgehandler Submission acknowledged: 42
|
||||||
|
INFO 2020-01-26 05:15:28,948 judgehandler judge1: Grading has begun on: 42
|
||||||
|
INFO 2020-01-26 05:15:29,162 judgehandler judge1: 6 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:29,413 judgehandler judge1: 7 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:29,663 judgehandler judge1: 7 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:29,915 judgehandler judge1: 8 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:30,166 judgehandler judge1: 7 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:30,416 judgehandler judge1: 7 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:30,667 judgehandler judge1: 7 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:30,918 judgehandler judge1: 8 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:31,170 judgehandler judge1: 5 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:32,176 judgehandler judge1: 1 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:32,608 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:32,731 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:32,800 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:32,869 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:33,824 judgehandler judge1: 1 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:34,409 judgehandler judge1: 7 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:34,807 judgehandler judge1: 3 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:34,911 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:34,986 judgehandler judge1: 1 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,061 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,156 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,249 judgehandler judge1: 1 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,343 judgehandler judge1: 2 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,436 judgehandler judge1: 5 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,531 judgehandler judge1: 3 test case(s) completed on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,729 judgehandler judge1: Grading has ended on: 42
|
||||||
|
INFO 2020-01-26 05:15:35,729 judgelist Judge available after grading 42: judge1
|
||||||
|
|
|
@ -497,3 +497,6 @@ except IOError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
TESTCASE_VISIBLE_LENGTH = 60
|
TESTCASE_VISIBLE_LENGTH = 60
|
||||||
|
|
||||||
|
DATA_UPLOAD_MAX_NUMBER_FIELDS = 10240
|
||||||
|
DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
|
||||||
|
|
|
@ -17,6 +17,7 @@ from judge.sitemap import BlogPostSitemap, ContestSitemap, HomePageSitemap, Orga
|
||||||
from judge.views import TitledTemplateView, api, blog, comment, contests, language, license, mailgun, organization, \
|
from judge.views import TitledTemplateView, api, blog, comment, contests, language, license, mailgun, organization, \
|
||||||
preview, problem, problem_manage, ranked_submission, register, stats, status, submission, tasks, ticket, totp, \
|
preview, problem, problem_manage, ranked_submission, register, stats, status, submission, tasks, ticket, totp, \
|
||||||
user, widgets
|
user, widgets
|
||||||
|
from judge.views.about import about, custom_checker_sample
|
||||||
from judge.views.problem_data import ProblemDataView, ProblemSubmissionDiff, \
|
from judge.views.problem_data import ProblemDataView, ProblemSubmissionDiff, \
|
||||||
problem_data_file, problem_init_view
|
problem_data_file, problem_init_view
|
||||||
from judge.views.register import ActivationView, RegistrationView
|
from judge.views.register import ActivationView, RegistrationView
|
||||||
|
@ -162,7 +163,7 @@ urlpatterns = [
|
||||||
url(r'^users/', include([
|
url(r'^users/', include([
|
||||||
url(r'^$', user.users, name='user_list'),
|
url(r'^$', user.users, name='user_list'),
|
||||||
url(r'^(?P<page>\d+)$', lambda request, page:
|
url(r'^(?P<page>\d+)$', lambda request, page:
|
||||||
HttpResponsePermanentRedirect('%s?page=%s' % (reverse('user_list'), page))),
|
uncommitted HttpResponsePermanentRedirect('%s?page=%s' % (reverse('user_list'), page))),
|
||||||
url(r'^find$', user.user_ranking_redirect, name='user_ranking_redirect'),
|
url(r'^find$', user.user_ranking_redirect, name='user_ranking_redirect'),
|
||||||
])),
|
])),
|
||||||
|
|
||||||
|
@ -360,6 +361,10 @@ urlpatterns = [
|
||||||
url(r'^failure$', tasks.demo_failure),
|
url(r'^failure$', tasks.demo_failure),
|
||||||
url(r'^progress$', tasks.demo_progress),
|
url(r'^progress$', tasks.demo_progress),
|
||||||
])),
|
])),
|
||||||
|
|
||||||
|
url(r'^about/', about, name='about'),
|
||||||
|
|
||||||
|
url(r'^custom_checker_sample', custom_checker_sample, name='custom_checker_sample'),
|
||||||
]
|
]
|
||||||
|
|
||||||
favicon_paths = ['apple-touch-icon-180x180.png', 'apple-touch-icon-114x114.png', 'android-chrome-72x72.png',
|
favicon_paths = ['apple-touch-icon-180x180.png', 'apple-touch-icon-114x114.png', 'android-chrome-72x72.png',
|
||||||
|
|
14
judge/views/about.py
Normal file
14
judge/views/about.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
|
|
||||||
|
def about(request):
|
||||||
|
return render(request, 'about/about.html', {
|
||||||
|
'title': _('About'),
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
def custom_checker_sample(request):
|
||||||
|
return render(request, 'about/custom-checker-sample.html', {
|
||||||
|
'title': _('Custom Checker Sample'),
|
||||||
|
})
|
7
templates/about/about.html
Normal file
7
templates/about/about.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<p style="font-size:40px;">
|
||||||
|
I am <b><a href="https://codeforces.com/profile/cuom1999" style="color:red;" target="_blank">cuom1999</a></b>.
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
1106
templates/about/custom-checker-sample.html
Normal file
1106
templates/about/custom-checker-sample.html
Normal file
File diff suppressed because one or more lines are too long
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
var $table = $('#case-table');
|
var $table = $('#case-table');
|
||||||
$table.on('add-row', function (e, $tr) {
|
$table.on('add-row', function (e, $tr) {
|
||||||
update_select2();
|
// update_select2();
|
||||||
$tr.find('input').filter('[id$=file]').each(function () {
|
$tr.find('input').filter('[id$=file]').each(function () {
|
||||||
var $select, val = $(this).replaceWith($select = $('<select>').attr({
|
var $select, val = $(this).replaceWith($select = $('<select>').attr({
|
||||||
id: $(this).attr('id'),
|
id: $(this).attr('id'),
|
||||||
|
@ -97,8 +97,17 @@
|
||||||
|
|
||||||
function checker_custom($checker, $custom_checker) {
|
function checker_custom($checker, $custom_checker) {
|
||||||
$tr = $custom_checker.parent().parent();
|
$tr = $custom_checker.parent().parent();
|
||||||
|
$td = $checker.parent();
|
||||||
|
var $sample = $("<a/>",{
|
||||||
|
text: "Sample Checker",
|
||||||
|
style: "margin-left:3em;",
|
||||||
|
target: "_blank",
|
||||||
|
href: "{{url('custom_checker_sample')}}"
|
||||||
|
}).appendTo($td);
|
||||||
|
|
||||||
$checker.change(function () {
|
$checker.change(function () {
|
||||||
$tr.toggle($checker.val().startsWith('custom')).change();
|
$tr.toggle($checker.val().startsWith('custom')).change();
|
||||||
|
$sample.toggle($checker.val().startsWith('custom')).change();
|
||||||
}).change();
|
}).change();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,6 +295,15 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('input#delete-all').change(function() {
|
||||||
|
if (this.checked) {
|
||||||
|
$("input[name$='DELETE']").attr('checked', true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("input[name$='DELETE']").attr('checked', false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var $controls = $('#column-visible');
|
var $controls = $('#column-visible');
|
||||||
var problem = $controls.attr('data-problem');
|
var problem = $controls.attr('data-problem');
|
||||||
$controls.find('input').change(function () {
|
$controls.find('input').change(function () {
|
||||||
|
@ -305,7 +323,7 @@
|
||||||
}
|
}
|
||||||
$this.prop('checked', filled).trigger('change');
|
$this.prop('checked', filled).trigger('change');
|
||||||
});
|
});
|
||||||
});
|
}).change();
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -448,6 +466,10 @@
|
||||||
<input type="checkbox" data-suffix="generator_args">
|
<input type="checkbox" data-suffix="generator_args">
|
||||||
{{ _('Generator args') }}
|
{{ _('Generator args') }}
|
||||||
</label>
|
</label>
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="delete-all">
|
||||||
|
{{ _('Delete all') }}
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<table id="case-table" class="table">
|
<table id="case-table" class="table">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -463,7 +485,8 @@
|
||||||
<th class="checker">{{ _('Checker') }}</th>
|
<th class="checker">{{ _('Checker') }}</th>
|
||||||
<th class="generator-args">{{ _('Generator args') }}</th>
|
<th class="generator-args">{{ _('Generator args') }}</th>
|
||||||
{% if cases_formset.can_delete %}
|
{% if cases_formset.can_delete %}
|
||||||
<th>{{ _('Delete?') }}</th>
|
<th>{{ _('Delete?') }}
|
||||||
|
</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
Loading…
Reference in a new issue