5 | */
6 | (function ($) {
7 | "use strict";
8 |
9 | $.extend($.fn.select2.defaults, {
10 | formatNoMatches: function () { return "Нічого не знайдено"; },
11 | formatInputTooShort: function (input, min) { var n = min - input.length, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка ще " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ]; },
12 | formatInputTooLong: function (input, max) { var n = input.length - max, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка на " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ] + " менше"; },
13 | formatSelectionTooBig: function (limit) {var s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Ви можете вибрати лише " + limit + " елемент" + s[ (limit%100>4 && limit%100<=20)? 2 : p[Math.min(limit%10, 5)] ]; },
14 | formatLoadMore: function (pageNumber) { return "Завантаження даних..."; },
15 | formatSearching: function () { return "Пошук..."; }
16 | });
17 | })(jQuery);
18 |
--------------------------------------------------------------------------------
/xadmin/static/xadmin/vendor/select2/select2_locale_zh-CN.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Select2 Chinese translation
3 | */
4 | (function ($) {
5 | "use strict";
6 | $.extend($.fn.select2.defaults, {
7 | formatNoMatches: function () { return "没有找到匹配项"; },
8 | formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
9 | formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
10 | formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
11 | formatLoadMore: function (pageNumber) { return "加载结果中..."; },
12 | formatSearching: function () { return "搜索中..."; }
13 | });
14 | })(jQuery);
15 |
--------------------------------------------------------------------------------
/xadmin/static/xadmin/vendor/select2/select2_locale_zh-hans.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Select2 Chinese translation
3 | */
4 | (function ($) {
5 | "use strict";
6 | $.extend($.fn.select2.defaults, {
7 | formatNoMatches: function () { return "没有找到匹配项"; },
8 | formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
9 | formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
10 | formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
11 | formatLoadMore: function (pageNumber) { return "加载结果中..."; },
12 | formatSearching: function () { return "搜索中..."; }
13 | });
14 | })(jQuery);
15 |
--------------------------------------------------------------------------------
/xadmin/static/xadmin/vendor/select2/select2x2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cjluzzl/TestOnlinExam/3963879ed8d881eeccf85c2d242af3f94a8fc3e7/xadmin/static/xadmin/vendor/select2/select2x2.png
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/404.html:
--------------------------------------------------------------------------------
1 | {% extends base_template %}
2 | {% load i18n %}
3 |
4 | {% block title %}{% trans 'Page not found' %}{% endblock %}
5 |
6 | {% block content %}
7 |
8 | {% trans 'Page not found' %}
9 |
10 | {% trans "We're sorry, but the requested page could not be found." %}
11 |
12 | {% endblock %}
13 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/500.html:
--------------------------------------------------------------------------------
1 | {% extends base_template %}
2 | {% load i18n %}
3 |
4 |
5 | {% block breadcrumbs %}
6 |
10 | {% endblock %}
11 |
12 | {% block title %}{% trans 'Server error (500)' %}{% endblock %}
13 |
14 | {% block content %}
15 | {% trans 'Server Error (500) ' %}
16 | {% trans "There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience." %}
17 |
18 | {% endblock %}
19 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/auth/password_reset/complete.html:
--------------------------------------------------------------------------------
1 | {% extends base_template %}
2 | {% load i18n xadmin_tags %}
3 |
4 | {% load crispy_forms_tags %}
5 |
6 | {% block body %}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
{% trans "Your password has been set. You may go ahead and log in now." %}
15 |
{% trans 'Log in' %}
16 |
17 |
18 |
19 |
20 | {% endblock %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/auth/password_reset/done.html:
--------------------------------------------------------------------------------
1 | {% extends base_template %}
2 | {% load i18n xadmin_tags %}
3 |
4 | {% load crispy_forms_tags %}
5 |
6 | {% block body %}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}
15 |
16 |
17 |
18 |
19 | {% endblock %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/auth/password_reset/email.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% autoescape off %}
2 | {% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}
3 |
4 | {% trans "Please go to the following page and choose a new password:" %}
5 | {% block reset_link %}
6 | {{ protocol }}://{{ domain }}{% url 'xadmin:xadmin_password_reset_confirm' uidb36=uid token=token %}
7 | {% endblock %}
8 | {% trans "Your username, in case you've forgotten:" %} {{ user.username }}
9 |
10 | {% trans "Thanks for using our site!" %}
11 |
12 | {% blocktrans %}The {{ site_name }} team{% endblocktrans %}
13 |
14 | {% endautoescape %}
15 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/auth/user/add_form.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/views/model_form.html" %}
2 | {% load i18n %}
3 |
4 | {% block form_top %}
5 | {% if not is_popup %}
6 | {% trans "First, enter a username and password. Then, you'll be able to edit more user options." %}
7 | {% else %}
8 | {% trans "Enter a username and password." %}
9 | {% endif %}
10 | {% endblock %}
11 |
12 | {% block after_field_sets %}
13 |
14 | {% endblock %}
15 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/comm.top.theme.html:
--------------------------------------------------------------------------------
1 | {% load i18n xadmin_tags %}
2 |
3 |
4 | {% trans "Themes" %}
5 |
10 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/modal_list.left_navbar.quickfilter.html:
--------------------------------------------------------------------------------
1 |
2 | {% for spec in cl.quickfilter.filter_specs %}{{ spec|safe }}{% endfor %}
3 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_form.before_fieldsets.wizard.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 | {{ wizard.management_form }}
3 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_list.nav_form.search_form.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 | {% if cl.search_fields %}
3 |
13 | {% endif %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_list.nav_menu.filters.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
3 |
4 | {% trans "Filters" %}{% if cl.used_filter_num > 0 %} {{cl.used_filter_num}} {% endif %}
5 |
6 |
13 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_list.results_top.charts.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/includes/box.html" %}
2 | {% load i18n xadmin_tags %}
3 | {% block box_title %}
4 | {% trans "Charts" %}
5 | {% endblock box_title %}
6 |
7 | {% block box_content_class %}nopadding{% endblock box_content_class %}
8 | {% block box_content %}
9 |
10 | {% for c in charts %}
11 | {{c.title}}
12 | {% endfor %}
13 |
14 |
15 | {% for c in charts %}
16 |
18 | {% endfor %}
19 |
20 | {% endblock box_content %}
21 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_list.results_top.date_hierarchy.html:
--------------------------------------------------------------------------------
1 | {% if show %}
2 |
10 | {% endif %}
11 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_list.top_toolbar.layouts.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_list.top_toolbar.refresh.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/blocks/model_list.top_toolbar.saveorder.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
7 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/edit_inline/blank.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/edit_inline/base.html" %}
2 | {% load i18n xadmin_tags crispy_forms_tags %}
3 |
4 | {% block box_content_class %}formset-content{% endblock box_content_class %}
5 | {% block box_content %}{% trans "Null" %}
{% endblock box_content %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/edit_inline/one.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/edit_inline/base.html" %}
2 | {% load i18n xadmin_tags crispy_forms_tags %}
3 |
4 | {% block box_title %}{{ formset.opts.verbose_name_plural|title }}{% endblock box_title %}
5 | {% block box_content %}
6 | {{ formset.formset.management_form }}
7 | {{ formset.formset.non_form_errors }}
8 | {% crispy formset.formset.0 formset.formset.helper %}
9 | {% endblock box_content %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/filters/char.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/filters/checklist.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/filters/list.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/filters/quickfilter.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
3 | {% for choice in choices %}
4 |
5 |
6 |
7 | {{ choice.display }}
8 |
9 |
10 | {% endfor %}
11 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/filters/rel.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/includes/box.html:
--------------------------------------------------------------------------------
1 |
2 |
{% block box_title %}{% endblock box_title %}
3 |
4 | {% block box_content %}{% endblock box_content %}
5 |
6 | {% block box_extra %}{% endblock box_extra %}
7 |
8 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/includes/pagination.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 | {{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
3 | {% if pagination_required %}
4 | {% for num in page_range %}
5 | {{ num }}
6 | {% endfor %}
7 | {% endif %}
8 | {% if show_all_url %}
9 | {% trans 'Show all' %}
10 | {% endif %}
11 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/includes/toggle_back.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/includes/toggle_menu.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/layout/field_value.html:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/layout/field_value_td.html:
--------------------------------------------------------------------------------
1 |
2 | {{ result.val }}
3 |
4 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/layout/fieldset.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/includes/box.html" %}
2 | {% block box_class %}fieldset{% if fieldset.css_class %} {{ fieldset.css_class }}{% endif %}{% endblock box_class %}
3 | {% block box_attrs %}{% if fieldset.css_id %}id="{{ fieldset.css_id }}"{% endif %} {{ fieldset.flat_attrs|safe }}{% endblock box_attrs %}
4 | {% block box_title %}{{ legend|safe }}{% if fieldset.description %} {{fieldset.description}} {% endif %}{% endblock box_title %}
5 | {% block box_content %}
6 | {{ fields|safe }}
7 | {% endblock box_content %}
8 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/layout/td-field.html:
--------------------------------------------------------------------------------
1 | {% load crispy_forms_field %}
2 |
3 | {% if field.is_hidden %}
4 | {{ field }}
5 | {% else %}
6 |
7 | {% if field.is_readonly %}
8 | {{ field.contents }}
9 | {% else %}
10 | {% crispy_field field %}
11 | {% if field.errors %}
12 | {% for error in field.errors %}
13 | {{ error }}
14 | {% endfor %}
15 | {% endif %}
16 | {% endif %}
17 |
18 | {% endif %}
19 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/views/app_index.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/index.html" %}
2 | {% load i18n %}
3 |
4 |
5 | {% if not is_popup %}
6 | {% block breadcrumbs %}
7 |
8 |
9 | {% trans 'Home' %}
10 |
11 | {% for app in app_list %}
12 |
13 | {% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
14 |
15 | {% endfor %}
16 |
17 | {% endblock %}
18 | {% endif %}
19 |
20 | {% block sidebar %}{% endblock %}
21 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/views/invalid_setup.html:
--------------------------------------------------------------------------------
1 | {% extends base_template %}
2 | {% load i18n %}
3 |
4 |
5 | {% block breadcrumbs %}
6 |
10 | {% endblock %}
11 |
12 | {% block content %}
13 | {% trans "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user." %}
14 | {% endblock %}
15 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/views/logged_out.html:
--------------------------------------------------------------------------------
1 | {% extends base_template %}
2 | {% load i18n %}
3 |
4 |
5 | {% block extrastyle %}{{ block.super }}
6 |
9 | {% endblock %}
10 |
11 | {% block body %}
12 |
26 |
27 | {% endblock %}
28 |
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/views/model_dashboard.html:
--------------------------------------------------------------------------------
1 | {% extends 'xadmin/views/dashboard.html' %}
2 | {% load i18n xadmin_tags %}
3 |
4 |
5 | {% block breadcrumbs %}
6 |
15 | {% endblock %}
16 |
17 | {% block nav_toggles %}
18 | {% include "xadmin/includes/toggle_back.html" %}
19 | {% if has_change_permission %}
20 |
21 | {% endif %}
22 | {% endblock %}
23 |
24 | {% block nav_btns %}
25 | {% if has_change_permission %}
26 | {% trans "Edit" %}
27 | {% endif %}
28 | {% endblock %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/views/quick_detail.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 | {% load xadmin_tags %}
3 | {% load crispy_forms_tags %}
4 | {% crispy form %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/views/quick_form.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 | {% load xadmin_tags %}
3 | {% load crispy_forms_tags %}
4 |
7 | {{ media.css }}
8 | {{ media.js }}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/views/recover_form.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/views/model_form.html" %}
2 | {% load i18n %}
3 |
4 | {% load xadmin_tags %}
5 |
6 | {% block breadcrumbs %}
7 |
17 | {% endblock %}
18 |
19 | {% block content %}
20 | {% blocktrans %}Press the recover button below to recover this version of the object.{% endblocktrans %}
21 | {{block.super}}
22 | {% endblock %}
23 |
24 | {% block submit_buttons_bottom %}
25 |
26 | {% trans 'Recover' %}
27 |
28 | {% endblock %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/widgets/addform.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/widgets/base.html" %}
2 | {% load i18n xadmin_tags %}
3 | {% load crispy_forms_tags %}
4 |
5 | {% block box_class %}{{block.super}} form-horizontal short_label fieldset{% endblock box_class %}
6 |
7 | {% block content %}
8 |
22 | {% endblock content %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/widgets/chart.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/widgets/base.html" %}
2 | {% load i18n xadmin_tags %}
3 |
4 | {% block content_css %}tabs{% endblock content_css %}
5 | {% block content %}
6 | {% if not widget.one_chart %}
7 |
8 | {% for c in charts %}
9 | {{c.title}}
10 | {% endfor %}
11 |
12 | {% endif %}
13 |
14 | {% for c in charts %}
15 |
17 | {% endfor %}
18 |
19 | {% endblock content %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/widgets/list.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/widgets/base.html" %}
2 | {% load i18n xadmin_tags %}
3 |
4 | {% block title %}
5 | {{ result_count }}
6 | {{ block.super }}
7 | {% endblock title %}
8 |
9 | {% block box_content_class %}{% if results %}nopadding x-scroll{% endif %}{% endblock box_content_class %}
10 |
11 | {% block content %}
12 | {% if results %}
13 |
14 |
15 |
16 | {% for o in result_headers %}
17 | {{ o.text }}
18 | {% endfor %}
19 |
20 |
21 |
22 | {% for row in results %}
23 | {% for o in row %}
24 |
25 | {{ o.label }}
26 |
27 | {% endfor %}
28 |
29 | {% endfor %}
30 |
31 |
32 | {% else %}
33 | {% trans "Empty list" %}
34 | {% endif %}
35 | {% endblock content %}
--------------------------------------------------------------------------------
/xadmin/templates/xadmin/widgets/qbutton.html:
--------------------------------------------------------------------------------
1 | {% extends "xadmin/widgets/base.html" %}
2 | {% load i18n xadmin_tags %}
3 |
4 | {% block content %}
5 |
6 | {% for btn in btns %}
7 |
13 | {% endfor %}
14 |
15 | {% endblock content %}
16 |
--------------------------------------------------------------------------------
/xadmin/templatetags/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cjluzzl/TestOnlinExam/3963879ed8d881eeccf85c2d242af3f94a8fc3e7/xadmin/templatetags/__init__.py
--------------------------------------------------------------------------------