django-admin-js 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- django_admin_js/__init__.py +0 -0
- django_admin_js/admin.py +1 -0
- django_admin_js/apps.py +7 -0
- django_admin_js/migrations/__init__.py +0 -0
- django_admin_js/models.py +1 -0
- django_admin_js/templates/admin/404.html +27 -0
- django_admin_js/templates/admin/500.html +34 -0
- django_admin_js/templates/admin/actions.html +33 -0
- django_admin_js/templates/admin/admin_styles.css +895 -0
- django_admin_js/templates/admin/app_index.html +20 -0
- django_admin_js/templates/admin/app_list.html +60 -0
- django_admin_js/templates/admin/auth/user/add_form.html +10 -0
- django_admin_js/templates/admin/auth/user/change_password.html +57 -0
- django_admin_js/templates/admin/base.html +971 -0
- django_admin_js/templates/admin/base_site.html +19 -0
- django_admin_js/templates/admin/change_form.html +92 -0
- django_admin_js/templates/admin/change_form_object_tools.html +8 -0
- django_admin_js/templates/admin/change_list.html +323 -0
- django_admin_js/templates/admin/change_list_object_tools.html +13 -0
- django_admin_js/templates/admin/change_list_results.html +36 -0
- django_admin_js/templates/admin/color_theme_toggle.html +15 -0
- django_admin_js/templates/admin/date_hierarchy.html +14 -0
- django_admin_js/templates/admin/delete_confirmation.html +82 -0
- django_admin_js/templates/admin/delete_selected_confirmation.html +81 -0
- django_admin_js/templates/admin/edit_inline/stacked.html +66 -0
- django_admin_js/templates/admin/edit_inline/tabular.html +94 -0
- django_admin_js/templates/admin/filter.html +19 -0
- django_admin_js/templates/admin/includes/aurora_bg.html +4 -0
- django_admin_js/templates/admin/includes/breadcrumbs.html +12 -0
- django_admin_js/templates/admin/includes/command_palette.html +217 -0
- django_admin_js/templates/admin/includes/dashboard_stats.html +41 -0
- django_admin_js/templates/admin/includes/fieldset.html +34 -0
- django_admin_js/templates/admin/includes/header.html +95 -0
- django_admin_js/templates/admin/includes/object_delete_summary.html +7 -0
- django_admin_js/templates/admin/index.html +61 -0
- django_admin_js/templates/admin/invalid_setup.html +13 -0
- django_admin_js/templates/admin/login.html +120 -0
- django_admin_js/templates/admin/nav_sidebar.html +17 -0
- django_admin_js/templates/admin/object_history.html +66 -0
- django_admin_js/templates/admin/pagination.html +12 -0
- django_admin_js/templates/admin/popup_response.html +10 -0
- django_admin_js/templates/admin/prepopulated_fields_js.html +5 -0
- django_admin_js/templates/admin/search_form.html +46 -0
- django_admin_js/templates/admin/submit_line.html +41 -0
- django_admin_js/templates/admin/widgets/clearable_file_input.html +6 -0
- django_admin_js/templates/admin/widgets/date.html +3 -0
- django_admin_js/templates/admin/widgets/foreign_key_raw_id.html +2 -0
- django_admin_js/templates/admin/widgets/many_to_many_raw_id.html +1 -0
- django_admin_js/templates/admin/widgets/radio.html +1 -0
- django_admin_js/templates/admin/widgets/related_widget_wrapper.html +52 -0
- django_admin_js/templates/admin/widgets/split_datetime.html +4 -0
- django_admin_js/templates/admin/widgets/time.html +3 -0
- django_admin_js/templates/admin/widgets/url.html +1 -0
- django_admin_js/templates/registration/logged_out.html +92 -0
- django_admin_js/templatetags/__init__.py +0 -0
- django_admin_js/templatetags/admin_stats.py +84 -0
- django_admin_js/tests.py +1 -0
- django_admin_js/tests_settings.py +32 -0
- django_admin_js/views.py +1 -0
- django_admin_js-0.1.0.dist-info/METADATA +122 -0
- django_admin_js-0.1.0.dist-info/RECORD +64 -0
- django_admin_js-0.1.0.dist-info/WHEEL +5 -0
- django_admin_js-0.1.0.dist-info/licenses/LICENSE +21 -0
- django_admin_js-0.1.0.dist-info/top_level.txt +1 -0
|
File without changes
|
django_admin_js/admin.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Register your models here.
|
django_admin_js/apps.py
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Create your models here.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{% extends "admin/base_site.html" %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% block title %}{% translate 'Page not found' %}{% endblock %}
|
|
5
|
+
|
|
6
|
+
{% block content %}
|
|
7
|
+
<div class="max-w-md mx-auto my-12 text-center">
|
|
8
|
+
<div class="bg-white dark:bg-apple-darkcard border border-apple-border/40 dark:border-apple-darkborder/40 rounded-2xl shadow-xl p-8 space-y-6">
|
|
9
|
+
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-indigo-50 dark:bg-indigo-950/20 text-apple-blue mb-2">
|
|
10
|
+
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
|
12
|
+
</svg>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="space-y-2">
|
|
16
|
+
<h2 class="text-2xl font-bold tracking-tight text-apple-text dark:text-apple-darktext">{% translate 'Page not found' %}</h2>
|
|
17
|
+
<p class="text-apple-secondary text-sm">{% translate 'We’re sorry, but the page you are looking for could not be found.' %}</p>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="pt-4 border-t border-apple-border/20 dark:border-apple-darkborder/20">
|
|
21
|
+
<a href="{% url 'admin:index' %}" class="inline-block px-5 py-2 text-sm font-semibold text-white bg-apple-blue hover:bg-apple-blue-hover rounded-lg shadow-sm transition-all duration-150">
|
|
22
|
+
{% translate 'Go back home' %}
|
|
23
|
+
</a>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
{% endblock %}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{% extends "admin/base_site.html" %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% block breadcrumbs %}
|
|
5
|
+
<div class="breadcrumbs">
|
|
6
|
+
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
|
|
7
|
+
› {% translate 'Server error' %}
|
|
8
|
+
</div>
|
|
9
|
+
{% endblock %}
|
|
10
|
+
|
|
11
|
+
{% block title %}{% translate 'Server error (500)' %}{% endblock %}
|
|
12
|
+
|
|
13
|
+
{% block content %}
|
|
14
|
+
<div class="max-w-md mx-auto my-12 text-center">
|
|
15
|
+
<div class="bg-white dark:bg-apple-darkcard border border-apple-border/40 dark:border-apple-darkborder/40 rounded-2xl shadow-xl p-8 space-y-6">
|
|
16
|
+
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-red-50 dark:bg-red-950/20 text-red-500 mb-2">
|
|
17
|
+
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>
|
|
19
|
+
</svg>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="space-y-2">
|
|
23
|
+
<h2 class="text-2xl font-bold tracking-tight text-apple-text dark:text-apple-darktext">{% translate 'Server Error (500)' %}</h2>
|
|
24
|
+
<p class="text-apple-secondary text-sm">{% translate 'There’s been an error. It’s been reported to the site administrators and should be fixed shortly. Thanks for your patience.' %}</p>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="pt-4 border-t border-apple-border/20 dark:border-apple-darkborder/20">
|
|
28
|
+
<a href="{% url 'admin:index' %}" class="inline-block px-5 py-2 text-sm font-semibold text-white bg-apple-blue hover:bg-apple-blue-hover rounded-lg shadow-sm transition-all duration-150">
|
|
29
|
+
{% translate 'Go back home' %}
|
|
30
|
+
</a>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
{% endblock %}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
<div class="actions flex flex-wrap items-center gap-3 text-sm text-apple-secondary">
|
|
3
|
+
{% block actions %}
|
|
4
|
+
{% block actions-form %}
|
|
5
|
+
<div class="flex items-center gap-2">
|
|
6
|
+
{% for field in action_form %}
|
|
7
|
+
{% if field.label %}
|
|
8
|
+
<label class="font-semibold text-apple-text dark:text-apple-darktext">{{ field.label }}</label>
|
|
9
|
+
{% endif %}
|
|
10
|
+
{{ field }}
|
|
11
|
+
{% endfor %}
|
|
12
|
+
</div>
|
|
13
|
+
{% endblock %}
|
|
14
|
+
{% block actions-submit %}
|
|
15
|
+
<button type="submit" class="!inline-flex !items-center !gap-1.5 button !px-4 !py-2 !text-sm !font-semibold !text-white !bg-apple-blue hover:!bg-apple-blue-hover !rounded-lg !shadow-sm !transition-all !duration-150 !cursor-pointer !h-[38px] !m-0" title="{% translate "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">
|
|
16
|
+
<svg class="w-3.5 h-3.5 text-white" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" /></svg>
|
|
17
|
+
<span>{% translate "Go" %}</span>
|
|
18
|
+
</button>
|
|
19
|
+
{% endblock %}
|
|
20
|
+
{% block actions-counter %}
|
|
21
|
+
{% if actions_selection_counter %}
|
|
22
|
+
<span class="action-counter text-xs text-apple-secondary" data-actions-icnt="{{ cl.result_list|length }}">{{ selection_note }}</span>
|
|
23
|
+
{% if cl.result_count != cl.result_list|length %}
|
|
24
|
+
<span class="all hidden text-xs text-apple-secondary">{{ selection_note_all }}</span>
|
|
25
|
+
<span class="question hidden text-xs">
|
|
26
|
+
<a href="#" class="text-apple-blue hover:underline font-semibold" title="{% translate "Click here to select the objects across all pages" %}">{% blocktranslate with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktranslate %}</a>
|
|
27
|
+
</span>
|
|
28
|
+
<span class="clear hidden text-xs"><a href="#" class="text-red-500 hover:underline">{% translate "Clear selection" %}</a></span>
|
|
29
|
+
{% endif %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% endblock %}
|
|
32
|
+
{% endblock %}
|
|
33
|
+
</div>
|