django-bootstrap6-admin 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_bootstrap6_admin/__init__.py +3 -0
- django_bootstrap6_admin/apps.py +13 -0
- django_bootstrap6_admin/static/django_bootstrap6_admin/css/admin.css +3530 -0
- django_bootstrap6_admin/static/django_bootstrap6_admin/css/widgets-overrides.css +47 -0
- django_bootstrap6_admin/static/django_bootstrap6_admin/js/admin.js +360 -0
- django_bootstrap6_admin/static/django_bootstrap6_admin/js/theme.js +108 -0
- django_bootstrap6_admin/static/django_bootstrap6_admin/vendor/bootstrap/LICENSE +21 -0
- django_bootstrap6_admin/static/django_bootstrap6_admin/vendor/bootstrap/css/bootstrap.min.css +2 -0
- django_bootstrap6_admin/static/django_bootstrap6_admin/vendor/bootstrap/js/bootstrap.bundle.min.js +9 -0
- django_bootstrap6_admin/templates/admin/404.html +17 -0
- django_bootstrap6_admin/templates/admin/500.html +31 -0
- django_bootstrap6_admin/templates/admin/actions.html +40 -0
- django_bootstrap6_admin/templates/admin/app_index.html +43 -0
- django_bootstrap6_admin/templates/admin/app_list.html +59 -0
- django_bootstrap6_admin/templates/admin/auth/user/add_form.html +11 -0
- django_bootstrap6_admin/templates/admin/auth/user/change_password.html +105 -0
- django_bootstrap6_admin/templates/admin/base.html +220 -0
- django_bootstrap6_admin/templates/admin/base_site.html +19 -0
- django_bootstrap6_admin/templates/admin/change_form.html +124 -0
- django_bootstrap6_admin/templates/admin/change_form_object_tools.html +14 -0
- django_bootstrap6_admin/templates/admin/change_list.html +179 -0
- django_bootstrap6_admin/templates/admin/change_list_object_tools.html +10 -0
- django_bootstrap6_admin/templates/admin/change_list_results.html +42 -0
- django_bootstrap6_admin/templates/admin/color_theme_toggle.html +15 -0
- django_bootstrap6_admin/templates/admin/date_hierarchy.html +27 -0
- django_bootstrap6_admin/templates/admin/delete_confirmation.html +89 -0
- django_bootstrap6_admin/templates/admin/delete_selected_confirmation.html +81 -0
- django_bootstrap6_admin/templates/admin/edit_inline/stacked.html +67 -0
- django_bootstrap6_admin/templates/admin/edit_inline/tabular.html +94 -0
- django_bootstrap6_admin/templates/admin/filter.html +17 -0
- django_bootstrap6_admin/templates/admin/includes/fieldset.html +54 -0
- django_bootstrap6_admin/templates/admin/includes/object_delete_summary.html +7 -0
- django_bootstrap6_admin/templates/admin/index.html +136 -0
- django_bootstrap6_admin/templates/admin/login.html +99 -0
- django_bootstrap6_admin/templates/admin/nav_sidebar.html +21 -0
- django_bootstrap6_admin/templates/admin/object_history.html +81 -0
- django_bootstrap6_admin/templates/admin/pagination.html +18 -0
- django_bootstrap6_admin/templates/admin/search_form.html +28 -0
- django_bootstrap6_admin/templates/admin/submit_line.html +35 -0
- django_bootstrap6_admin/templates/admin/widgets/foreign_key_raw_id.html +14 -0
- django_bootstrap6_admin/templates/admin/widgets/related_widget_wrapper.html +49 -0
- django_bootstrap6_admin/templates/registration/logged_out.html +32 -0
- django_bootstrap6_admin/templates/registration/password_change_done.html +30 -0
- django_bootstrap6_admin/templates/registration/password_change_form.html +74 -0
- django_bootstrap6_admin/templatetags/__init__.py +0 -0
- django_bootstrap6_admin/templatetags/bootstrap6_admin.py +38 -0
- django_bootstrap6_admin-0.1.0.dist-info/METADATA +262 -0
- django_bootstrap6_admin-0.1.0.dist-info/RECORD +52 -0
- django_bootstrap6_admin-0.1.0.dist-info/WHEEL +5 -0
- django_bootstrap6_admin-0.1.0.dist-info/licenses/LICENSE +21 -0
- django_bootstrap6_admin-0.1.0.dist-info/licenses/NOTICE +48 -0
- django_bootstrap6_admin-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{% load i18n admin_urls %}
|
|
2
|
+
<div class="submit-row ba-submit-row">
|
|
3
|
+
{% block submit-row %}
|
|
4
|
+
<div class="ba-submit-actions">
|
|
5
|
+
{% if show_save %}
|
|
6
|
+
<button type="submit" value="{% translate 'Save' %}" class="btn btn-solid theme-primary default" name="_save">
|
|
7
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-check"></use></svg>
|
|
8
|
+
{% translate 'Save' %}
|
|
9
|
+
</button>
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% if show_save_as_new %}
|
|
12
|
+
<button type="submit" value="{% translate 'Save as new' %}" class="btn btn-outline theme-secondary" name="_saveasnew">{% translate 'Save as new' %}</button>
|
|
13
|
+
{% endif %}
|
|
14
|
+
{% if show_save_and_add_another %}
|
|
15
|
+
<button type="submit" value="{% translate 'Save and add another' %}" class="btn btn-outline theme-secondary" name="_addanother">{% translate 'Save and add another' %}</button>
|
|
16
|
+
{% endif %}
|
|
17
|
+
{% if show_save_and_continue %}
|
|
18
|
+
<button type="submit" value="{% if can_change %}{% translate 'Save and continue editing' %}{% else %}{% translate 'Save and view' %}{% endif %}" class="btn btn-outline theme-secondary" name="_continue">{% if can_change %}{% translate 'Save and continue editing' %}{% else %}{% translate 'Save and view' %}{% endif %}</button>
|
|
19
|
+
{% endif %}
|
|
20
|
+
{% if show_close %}
|
|
21
|
+
{% url opts|admin_urlname:'changelist' as changelist_url %}
|
|
22
|
+
<a role="button" href="{% add_preserved_filters changelist_url %}" class="btn btn-outline theme-secondary closelink">{% translate 'Close' %}</a>
|
|
23
|
+
{% endif %}
|
|
24
|
+
</div>
|
|
25
|
+
{% if show_delete_link and original %}
|
|
26
|
+
<div class="ba-submit-danger">
|
|
27
|
+
{% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
|
|
28
|
+
<a role="button" href="{% add_preserved_filters delete_url %}" class="btn btn-outline theme-danger deletelink">
|
|
29
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-trash"></use></svg>
|
|
30
|
+
{% translate "Delete" %}
|
|
31
|
+
</a>
|
|
32
|
+
</div>
|
|
33
|
+
{% endif %}
|
|
34
|
+
{% endblock %}
|
|
35
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
{% if related_url %}<div class="ba-raw-id">{% endif %}
|
|
3
|
+
{% include 'django/forms/widgets/input.html' %}
|
|
4
|
+
{% if related_url %}
|
|
5
|
+
<a href="{{ related_url }}" class="related-lookup btn btn-icon btn-outline theme-secondary btn-sm"
|
|
6
|
+
id="lookup_id_{{ widget.name }}" title="{{ link_title }}">
|
|
7
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-search"></use></svg>
|
|
8
|
+
<span class="visually-hidden">{{ link_title }}</span>
|
|
9
|
+
</a>
|
|
10
|
+
{% endif %}
|
|
11
|
+
{% if link_label %}
|
|
12
|
+
<strong>{% if link_url %}<a href="{{ link_url }}">{{ link_label }}</a>{% else %}{{ link_label }}{% endif %}</strong>
|
|
13
|
+
{% endif %}
|
|
14
|
+
{% if related_url %}</div>{% endif %}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
<div class="related-widget-wrapper ba-related-widget" {% if not model_has_limit_choices_to %}data-model-ref="{{ model_name }}"{% endif %}>
|
|
3
|
+
{{ rendered_widget }}
|
|
4
|
+
{% block links %}
|
|
5
|
+
{% spaceless %}
|
|
6
|
+
{% if not is_hidden %}
|
|
7
|
+
{% if can_change_related %}
|
|
8
|
+
<a class="related-widget-wrapper-link change-related btn btn-icon btn-outline theme-secondary btn-sm"
|
|
9
|
+
id="change_id_{{ name }}"
|
|
10
|
+
data-href-template="{{ change_related_template_url }}?{{ url_params }}"
|
|
11
|
+
data-popup="yes"
|
|
12
|
+
title="{% blocktranslate %}Change selected {{ model }}{% endblocktranslate %}">
|
|
13
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-edit"></use></svg>
|
|
14
|
+
<span class="visually-hidden">{% blocktranslate %}Change selected {{ model }}{% endblocktranslate %}</span>
|
|
15
|
+
</a>
|
|
16
|
+
{% endif %}
|
|
17
|
+
{% if can_add_related %}
|
|
18
|
+
<a class="related-widget-wrapper-link add-related btn btn-icon btn-outline theme-secondary btn-sm"
|
|
19
|
+
id="add_id_{{ name }}"
|
|
20
|
+
data-popup="yes"
|
|
21
|
+
href="{{ add_related_url }}?{{ url_params }}"
|
|
22
|
+
title="{% blocktranslate %}Add another {{ model }}{% endblocktranslate %}">
|
|
23
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-plus"></use></svg>
|
|
24
|
+
<span class="visually-hidden">{% blocktranslate %}Add another {{ model }}{% endblocktranslate %}</span>
|
|
25
|
+
</a>
|
|
26
|
+
{% endif %}
|
|
27
|
+
{% if can_delete_related %}
|
|
28
|
+
<a class="related-widget-wrapper-link delete-related btn btn-icon btn-outline theme-secondary btn-sm"
|
|
29
|
+
id="delete_id_{{ name }}"
|
|
30
|
+
data-href-template="{{ delete_related_template_url }}?{{ url_params }}"
|
|
31
|
+
data-popup="yes"
|
|
32
|
+
title="{% blocktranslate %}Delete selected {{ model }}{% endblocktranslate %}">
|
|
33
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-trash"></use></svg>
|
|
34
|
+
<span class="visually-hidden">{% blocktranslate %}Delete selected {{ model }}{% endblocktranslate %}</span>
|
|
35
|
+
</a>
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% if can_view_related %}
|
|
38
|
+
<a class="related-widget-wrapper-link view-related btn btn-icon btn-outline theme-secondary btn-sm"
|
|
39
|
+
id="view_id_{{ name }}"
|
|
40
|
+
data-href-template="{{ change_related_template_url }}?{{ view_related_url_params }}"
|
|
41
|
+
title="{% blocktranslate %}View selected {{ model }}{% endblocktranslate %}">
|
|
42
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-eye"></use></svg>
|
|
43
|
+
<span class="visually-hidden">{% blocktranslate %}View selected {{ model }}{% endblocktranslate %}</span>
|
|
44
|
+
</a>
|
|
45
|
+
{% endif %}
|
|
46
|
+
{% endif %}
|
|
47
|
+
{% endspaceless %}
|
|
48
|
+
{% endblock %}
|
|
49
|
+
</div>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{% extends "admin/base_site.html" %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% block breadcrumbs %}
|
|
5
|
+
<ol class="breadcrumb">
|
|
6
|
+
<li class="breadcrumb-item">
|
|
7
|
+
<a class="breadcrumb-link" href="{% url 'admin:index' %}">
|
|
8
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-home"></use></svg>
|
|
9
|
+
{% translate 'Home' %}
|
|
10
|
+
</a>
|
|
11
|
+
</li>
|
|
12
|
+
<li class="breadcrumb-divider" aria-hidden="true"></li>
|
|
13
|
+
<li class="breadcrumb-item">
|
|
14
|
+
<span class="breadcrumb-link active" aria-current="page">{% translate 'Logout' %}</span>
|
|
15
|
+
</li>
|
|
16
|
+
</ol>
|
|
17
|
+
{% endblock %}
|
|
18
|
+
|
|
19
|
+
{% block nav-sidebar %}{% endblock %}
|
|
20
|
+
|
|
21
|
+
{% block content %}
|
|
22
|
+
<div class="card ba-message-card">
|
|
23
|
+
<div class="card-body">
|
|
24
|
+
<span class="ba-confirm-icon" aria-hidden="true">
|
|
25
|
+
<svg class="ba-icon"><use href="#ba-user"></use></svg>
|
|
26
|
+
</span>
|
|
27
|
+
<h2>{% translate 'Logged out' %}</h2>
|
|
28
|
+
<p>{% translate "Thanks for spending some quality time with the web site today." %}</p>
|
|
29
|
+
<a class="btn btn-solid theme-primary" href="{% url 'admin:index' %}">{% translate 'Log in again' %}</a>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
{% endblock %}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{% extends "admin/base_site.html" %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% block breadcrumbs %}
|
|
5
|
+
<ol class="breadcrumb">
|
|
6
|
+
<li class="breadcrumb-item">
|
|
7
|
+
<a class="breadcrumb-link" href="{% url 'admin:index' %}">
|
|
8
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-home"></use></svg>
|
|
9
|
+
{% translate 'Home' %}
|
|
10
|
+
</a>
|
|
11
|
+
</li>
|
|
12
|
+
<li class="breadcrumb-divider" aria-hidden="true"></li>
|
|
13
|
+
<li class="breadcrumb-item">
|
|
14
|
+
<span class="breadcrumb-link active" aria-current="page">{% translate 'Password change' %}</span>
|
|
15
|
+
</li>
|
|
16
|
+
</ol>
|
|
17
|
+
{% endblock %}
|
|
18
|
+
|
|
19
|
+
{% block content %}
|
|
20
|
+
<div class="card ba-message-card">
|
|
21
|
+
<div class="card-body">
|
|
22
|
+
<span class="ba-confirm-icon ba-confirm-success" aria-hidden="true">
|
|
23
|
+
<svg class="ba-icon"><use href="#ba-check"></use></svg>
|
|
24
|
+
</span>
|
|
25
|
+
<h2>{% translate 'Password changed' %}</h2>
|
|
26
|
+
<p>{% translate 'Your password was changed.' %}</p>
|
|
27
|
+
<a class="btn btn-solid theme-primary" href="{% url 'admin:index' %}">{% translate 'Back to dashboard' %}</a>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
{% endblock %}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{% extends "admin/base_site.html" %}
|
|
2
|
+
{% load i18n static %}
|
|
3
|
+
|
|
4
|
+
{% block title %}{% if form.errors %}{% translate "Error:" %} {% endif %}{{ block.super }}{% endblock %}
|
|
5
|
+
{% block bodyclass %}{{ block.super }} ba-password-page{% endblock %}
|
|
6
|
+
{% block content_title %}{% endblock %}
|
|
7
|
+
|
|
8
|
+
{% block breadcrumbs %}
|
|
9
|
+
<ol class="breadcrumb">
|
|
10
|
+
<li class="breadcrumb-item">
|
|
11
|
+
<a class="breadcrumb-link" href="{% url 'admin:index' %}">
|
|
12
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-home"></use></svg>
|
|
13
|
+
{% translate 'Home' %}
|
|
14
|
+
</a>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="breadcrumb-divider" aria-hidden="true"></li>
|
|
17
|
+
<li class="breadcrumb-item">
|
|
18
|
+
<span class="breadcrumb-link active" aria-current="page">{% translate 'Password change' %}</span>
|
|
19
|
+
</li>
|
|
20
|
+
</ol>
|
|
21
|
+
{% endblock %}
|
|
22
|
+
|
|
23
|
+
{% block content %}
|
|
24
|
+
<div id="content-main" class="ba-password">
|
|
25
|
+
<div class="card ba-password-card">
|
|
26
|
+
<div class="card-body">
|
|
27
|
+
<h1 class="ba-page-title">{% translate 'Change password' %}</h1>
|
|
28
|
+
{% if form.errors %}
|
|
29
|
+
<div class="alert theme-danger" role="alert">
|
|
30
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-alert"></use></svg>
|
|
31
|
+
<div>
|
|
32
|
+
{% blocktranslate count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
37
|
+
<p>{% translate 'Please enter your old password, for security’s sake, and then enter your new password twice so we can verify you typed it in correctly.' %}</p>
|
|
38
|
+
|
|
39
|
+
<form method="post">
|
|
40
|
+
{% csrf_token %}
|
|
41
|
+
<div class="ba-form-group{% if form.old_password.errors %} errors{% endif %}">
|
|
42
|
+
{{ form.old_password.label_tag }}
|
|
43
|
+
{{ form.old_password.errors }}
|
|
44
|
+
{{ form.old_password }}
|
|
45
|
+
</div>
|
|
46
|
+
<div class="ba-form-group{% if form.new_password1.errors %} errors{% endif %}">
|
|
47
|
+
{{ form.new_password1.label_tag }}
|
|
48
|
+
{% if form.new_password1.help_text %}
|
|
49
|
+
<div class="help"{% if form.new_password1.id_for_label %} id="{{ form.new_password1.id_for_label }}_helptext"{% endif %}>{{ form.new_password1.help_text|safe }}</div>
|
|
50
|
+
{% endif %}
|
|
51
|
+
{{ form.new_password1.errors }}
|
|
52
|
+
{{ form.new_password1 }}
|
|
53
|
+
</div>
|
|
54
|
+
<div class="ba-form-group{% if form.new_password2.errors %} errors{% endif %}">
|
|
55
|
+
{{ form.new_password2.label_tag }}
|
|
56
|
+
{% if form.new_password2.help_text %}
|
|
57
|
+
<div class="help"{% if form.new_password2.id_for_label %} id="{{ form.new_password2.id_for_label }}_helptext"{% endif %}>{{ form.new_password2.help_text|safe }}</div>
|
|
58
|
+
{% endif %}
|
|
59
|
+
{{ form.new_password2.errors }}
|
|
60
|
+
{{ form.new_password2 }}
|
|
61
|
+
</div>
|
|
62
|
+
<div class="submit-row ba-submit-row ba-submit-row-static">
|
|
63
|
+
<div class="ba-submit-actions">
|
|
64
|
+
<button type="submit" class="btn btn-solid theme-primary default">
|
|
65
|
+
<svg class="ba-icon" aria-hidden="true"><use href="#ba-key"></use></svg>
|
|
66
|
+
{% translate 'Change my password' %}
|
|
67
|
+
</button>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</form>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
{% endblock %}
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from django import template
|
|
2
|
+
|
|
3
|
+
register = template.Library()
|
|
4
|
+
|
|
5
|
+
# Django message tags are not identical to Bootstrap theme names.
|
|
6
|
+
_MESSAGE_THEMES = {
|
|
7
|
+
"debug": "secondary",
|
|
8
|
+
"info": "info",
|
|
9
|
+
"success": "success",
|
|
10
|
+
"warning": "warning",
|
|
11
|
+
"error": "danger",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
_MESSAGE_ICONS = {
|
|
15
|
+
"debug": "ba-info",
|
|
16
|
+
"info": "ba-info",
|
|
17
|
+
"success": "ba-check",
|
|
18
|
+
"warning": "ba-alert",
|
|
19
|
+
"error": "ba-alert",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@register.filter
|
|
24
|
+
def message_theme(tags):
|
|
25
|
+
"""Map a Django message tag string to a Bootstrap 6 theme name."""
|
|
26
|
+
for tag in (tags or "").split():
|
|
27
|
+
if tag in _MESSAGE_THEMES:
|
|
28
|
+
return _MESSAGE_THEMES[tag]
|
|
29
|
+
return "info"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@register.filter
|
|
33
|
+
def message_icon(tags):
|
|
34
|
+
"""Return the SVG symbol id for a Django message tag string."""
|
|
35
|
+
for tag in (tags or "").split():
|
|
36
|
+
if tag in _MESSAGE_ICONS:
|
|
37
|
+
return _MESSAGE_ICONS[tag]
|
|
38
|
+
return "ba-info"
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: django-bootstrap6-admin
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A modern Bootstrap 6 skin for the Django admin.
|
|
5
|
+
Author-email: Aliberk Sandıkçı <git@asandikci.com>
|
|
6
|
+
Maintainer-email: Aliberk Sandıkçı <git@asandikci.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://github.com/asandikci/django-bootstrap6-admin
|
|
9
|
+
Project-URL: Repository, https://github.com/asandikci/django-bootstrap6-admin
|
|
10
|
+
Project-URL: Issues, https://github.com/asandikci/django-bootstrap6-admin/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/asandikci/django-bootstrap6-admin/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: django,admin,bootstrap,bootstrap6,theme
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Web Environment
|
|
15
|
+
Classifier: Framework :: Django
|
|
16
|
+
Classifier: Framework :: Django :: 6.1
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
26
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
27
|
+
Requires-Python: >=3.12
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
License-File: NOTICE
|
|
31
|
+
Requires-Dist: Django<6.2,>=6.1
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
34
|
+
Requires-Dist: twine>=5; extra == "dev"
|
|
35
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
# django-bootstrap6-admin
|
|
39
|
+
|
|
40
|
+
[](https://github.com/asandikci/django-bootstrap6-admin/actions/workflows/ci.yml)
|
|
41
|
+
[](https://pypi.org/project/django-bootstrap6-admin/)
|
|
42
|
+
[](https://pypi.org/project/django-bootstrap6-admin/)
|
|
43
|
+
[](https://www.djangoproject.com/)
|
|
44
|
+
[](LICENSE)
|
|
45
|
+
|
|
46
|
+
A modern, responsive Bootstrap 6 skin for the Django admin. It replaces the
|
|
47
|
+
default admin templates and static assets without monkey-patching Django,
|
|
48
|
+
changing admin classes, adding database queries, or requiring migrations.
|
|
49
|
+
|
|
50
|
+
The package is a thin presentation layer: Django's admin views, forms,
|
|
51
|
+
permissions and JavaScript remain in charge.
|
|
52
|
+
|
|
53
|
+
## Features
|
|
54
|
+
|
|
55
|
+
- Bootstrap 6 markup and design tokens throughout the admin.
|
|
56
|
+
- Sticky top bar with a collapsible sidebar (desktop) and drawer navigation
|
|
57
|
+
with a backdrop (mobile).
|
|
58
|
+
- Dashboard with application cards, model shortcuts and recent activity.
|
|
59
|
+
- Changelist with search, date hierarchy, collapsible filters, sortable
|
|
60
|
+
headers, bulk actions and Bootstrap pagination.
|
|
61
|
+
- Change form with card-based fieldsets, collapsible sections, a clear save
|
|
62
|
+
bar, tabular/stacked inlines and related-object popups.
|
|
63
|
+
- Modern login, logout and password change pages.
|
|
64
|
+
- Light, dark and system themes. The existing Django `theme` localStorage
|
|
65
|
+
preference is synchronised with Bootstrap's `data-bs-theme` attribute.
|
|
66
|
+
- Accessible focus states, labels, table headers and ARIA attributes.
|
|
67
|
+
- All Django admin JavaScript hooks are preserved: `actions.js`,
|
|
68
|
+
`filters.js`, `nav_sidebar.js`, inlines, Select2/autocomplete, calendar
|
|
69
|
+
widgets and related-object lookups.
|
|
70
|
+
- CSP-aware: bundled scripts and styles use Django 6.1's
|
|
71
|
+
`{% csp_nonce_attr %}` tag, so nonce-based policies work out of the box.
|
|
72
|
+
- Generic by design: no models, no migrations, no project-specific imports and
|
|
73
|
+
no assumptions about the host project's branding. The default navy/gold
|
|
74
|
+
palette is only a set of overridable CSS variables.
|
|
75
|
+
|
|
76
|
+
## Requirements
|
|
77
|
+
|
|
78
|
+
| Component | Supported versions |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| Python | 3.12, 3.13, 3.14 |
|
|
81
|
+
| Django | 6.1.x |
|
|
82
|
+
| Bootstrap | 6.0.0-alpha.1 (bundled) |
|
|
83
|
+
|
|
84
|
+
Django 6.1 is required because the templates use the
|
|
85
|
+
`{% csp_nonce_attr %}` template tag and the change-form admin actions added in
|
|
86
|
+
that release. Django 5.2 LTS and 6.0 are not supported by this version.
|
|
87
|
+
|
|
88
|
+
## Installation
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pip install django-bootstrap6-admin
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Add the app **before** `django.contrib.admin` so its `admin/` templates take
|
|
95
|
+
precedence:
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
INSTALLED_APPS = [
|
|
99
|
+
"django_bootstrap6_admin",
|
|
100
|
+
"django.contrib.admin",
|
|
101
|
+
"django.contrib.auth",
|
|
102
|
+
"django.contrib.contenttypes",
|
|
103
|
+
"django.contrib.sessions",
|
|
104
|
+
"django.contrib.messages",
|
|
105
|
+
"django.contrib.staticfiles",
|
|
106
|
+
# ...
|
|
107
|
+
]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
That's it. There are no settings to add, no migrations and no URL changes.
|
|
111
|
+
|
|
112
|
+
For a local checkout:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
git clone https://github.com/asandikci/django-bootstrap6-admin.git
|
|
116
|
+
cd django-bootstrap6-admin
|
|
117
|
+
python -m pip install -e .
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## What gets overridden
|
|
121
|
+
|
|
122
|
+
The app provides templates for the standard Django admin pages, including:
|
|
123
|
+
|
|
124
|
+
- `admin/base.html`, `base_site.html`, `index.html`, `app_list.html`
|
|
125
|
+
- `admin/change_list.html`, `change_form.html`, `delete_confirmation.html`
|
|
126
|
+
- `admin/edit_inline/stacked.html`, `edit_inline/tabular.html`
|
|
127
|
+
- `admin/login.html`, `admin/object_history.html`
|
|
128
|
+
- `admin/auth/user/add_form.html`, `admin/auth/user/change_password.html`
|
|
129
|
+
- `registration/logged_out.html`, `registration/password_change_form.html`
|
|
130
|
+
and `registration/password_change_done.html`
|
|
131
|
+
|
|
132
|
+
Only the three auth templates used directly by the admin site are shipped.
|
|
133
|
+
They still live in Django's global `registration/` namespace, so they also
|
|
134
|
+
apply to those views if a project uses them outside the admin; override them
|
|
135
|
+
if you need separate public-site auth screens. Password reset templates are
|
|
136
|
+
intentionally left to the host project, because reset URLs and their branding
|
|
137
|
+
usually belong to the public site rather than to the admin package.
|
|
138
|
+
|
|
139
|
+
## Customisation
|
|
140
|
+
|
|
141
|
+
### Long change forms
|
|
142
|
+
|
|
143
|
+
The action bar sits at the end of the form by default. For long forms, enable
|
|
144
|
+
Django's standard top action bar on a `ModelAdmin`:
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
class BookAdmin(admin.ModelAdmin):
|
|
148
|
+
save_on_top = True
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Branding
|
|
152
|
+
|
|
153
|
+
Use Django's existing admin site settings:
|
|
154
|
+
|
|
155
|
+
```python
|
|
156
|
+
from django.contrib import admin
|
|
157
|
+
|
|
158
|
+
admin.site.site_header = "Acme administration"
|
|
159
|
+
admin.site.site_title = "Acme"
|
|
160
|
+
admin.site.index_title = "Operations"
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Templates
|
|
164
|
+
|
|
165
|
+
Every block from Django's admin base templates is preserved. Override any
|
|
166
|
+
template normally, for example `templates/admin/base_site.html`, or extend the
|
|
167
|
+
provided template:
|
|
168
|
+
|
|
169
|
+
```django
|
|
170
|
+
{% extends "admin/base_site.html" %}
|
|
171
|
+
|
|
172
|
+
{% block branding %}
|
|
173
|
+
{{ block.super }}
|
|
174
|
+
<span class="badge badge-subtle theme-info">Internal</span>
|
|
175
|
+
{% endblock %}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Colours
|
|
179
|
+
|
|
180
|
+
The skin uses Bootstrap 6 design tokens (`--bs-*`) and a small set of
|
|
181
|
+
`--ba-*` variables. Override them after the admin stylesheet, for example in a
|
|
182
|
+
custom admin CSS file:
|
|
183
|
+
|
|
184
|
+
```css
|
|
185
|
+
:root {
|
|
186
|
+
--ba-topbar-bg: #1f2937;
|
|
187
|
+
--ba-gold: #f59e0b;
|
|
188
|
+
--ba-sidebar-width: 300px;
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
The default primary and danger colours are deliberately deeper than Bootstrap
|
|
193
|
+
6's defaults so white button text meets WCAG AA contrast.
|
|
194
|
+
|
|
195
|
+
The select controls use small `data:` SVG arrows. If you enable a strict CSP,
|
|
196
|
+
allow `img-src 'self' data:` (or replace the arrows in your own CSS).
|
|
197
|
+
|
|
198
|
+
### Turning it off
|
|
199
|
+
|
|
200
|
+
Remove `django_bootstrap6_admin` from `INSTALLED_APPS` (or move it after
|
|
201
|
+
`django.contrib.admin`) and the default Django admin returns immediately.
|
|
202
|
+
There is no runtime state to clean up.
|
|
203
|
+
|
|
204
|
+
## How it works
|
|
205
|
+
|
|
206
|
+
- The app only contributes templates and static files.
|
|
207
|
+
- Django's admin views and forms are untouched.
|
|
208
|
+
- Django's own JavaScript remains the source of truth for the sidebar state,
|
|
209
|
+
filters, bulk actions and inlines.
|
|
210
|
+
- The bundled `theme.js` reads and writes Django's `theme` localStorage key and
|
|
211
|
+
mirrors it to `data-bs-theme`; it does not replace Django's admin behaviour.
|
|
212
|
+
- Bootstrap 6 is pinned as `6.0.0-alpha.1` in
|
|
213
|
+
`static/django_bootstrap6_admin/vendor/bootstrap/` to keep the visual result
|
|
214
|
+
stable. Its MIT licence is included next to the assets. SHA-256 of the
|
|
215
|
+
bundled files:
|
|
216
|
+
- `bootstrap.min.css`:
|
|
217
|
+
`678508b198d9b1b8877e338f419fdada00024be2bcc638a539dd724856095112`
|
|
218
|
+
- `bootstrap.bundle.min.js`:
|
|
219
|
+
`47ea447f46e288dd9d3e83147b7ba539c6df5192c047b8f91739cd56a5721148`
|
|
220
|
+
|
|
221
|
+
## Development
|
|
222
|
+
|
|
223
|
+
The test suite uses an isolated settings module and a small demo app. Create a
|
|
224
|
+
virtual environment and install the package in editable mode:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
python -m venv .venv
|
|
228
|
+
source .venv/bin/activate
|
|
229
|
+
python -m pip install --upgrade pip
|
|
230
|
+
python -m pip install -e ".[dev]"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Run the tests and the linter:
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
python -m django test --settings=tests.settings
|
|
237
|
+
ruff check .
|
|
238
|
+
ruff format --check .
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Build and validate the distribution:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
python -m build
|
|
245
|
+
python -m twine check --strict dist/*
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
The same checks run in GitHub Actions on Python 3.12, 3.13 and 3.14.
|
|
249
|
+
|
|
250
|
+
## Releasing
|
|
251
|
+
|
|
252
|
+
Releases are published from a `v*` tag with PyPI Trusted Publishing. See
|
|
253
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) for the complete release checklist and the
|
|
254
|
+
one-time PyPI publisher setup.
|
|
255
|
+
|
|
256
|
+
## Licence
|
|
257
|
+
|
|
258
|
+
MIT. The admin templates are derived from Django's BSD-licensed admin
|
|
259
|
+
templates, and Bootstrap is distributed under the MIT licence. See
|
|
260
|
+
[NOTICE](NOTICE) and
|
|
261
|
+
`static/django_bootstrap6_admin/vendor/bootstrap/LICENSE` for the full
|
|
262
|
+
attribution and licence texts.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
django_bootstrap6_admin/__init__.py,sha256=EM6y4CMZs0e0pni1bb7FgxY3zaPkmEYH0iW8NnNjUt0,68
|
|
2
|
+
django_bootstrap6_admin/apps.py,sha256=F3VeBmCLBL9acdOY4WKJwXBgFM4wpyjxLNAXwJBlfb8,398
|
|
3
|
+
django_bootstrap6_admin/static/django_bootstrap6_admin/css/admin.css,sha256=JwmNC0-mCzsgsuOblUoDAHNhcIpk3N2S4uOUX3vg6t8,73371
|
|
4
|
+
django_bootstrap6_admin/static/django_bootstrap6_admin/css/widgets-overrides.css,sha256=7pJ3J4g1fGPSECgd5CKbpb7vKlGEmD4HbgBmABiRDLg,1606
|
|
5
|
+
django_bootstrap6_admin/static/django_bootstrap6_admin/js/admin.js,sha256=WqHXYFmhTvXpysGV4J7kXzqSrQ-s6RcGuMpIL7WNRp4,12057
|
|
6
|
+
django_bootstrap6_admin/static/django_bootstrap6_admin/js/theme.js,sha256=UNgOsmH80yDyJ1NfF7Fj7zUR6jHYC6w9rJAdE9VJFWc,3016
|
|
7
|
+
django_bootstrap6_admin/static/django_bootstrap6_admin/vendor/bootstrap/LICENSE,sha256=vAzRjZTAKPHAti7J_a3cuZIcHgfCnPUtx9-Myp2vJIg,1093
|
|
8
|
+
django_bootstrap6_admin/static/django_bootstrap6_admin/vendor/bootstrap/css/bootstrap.min.css,sha256=Z4UIsZjZsbiHfjOPQZ_a2gACS-K8xjilOd1ySFYJURI,381199
|
|
9
|
+
django_bootstrap6_admin/static/django_bootstrap6_admin/vendor/bootstrap/js/bootstrap.bundle.min.js,sha256=R-pEf0biiN2dPoMUe3ulOcbfUZLAR7j5FznNVqVyEUg,219860
|
|
10
|
+
django_bootstrap6_admin/templates/admin/404.html,sha256=gp3o2PtVN59xa_B26tMbh-ZwEfKtqZUtpStZl2ny1Fo,595
|
|
11
|
+
django_bootstrap6_admin/templates/admin/500.html,sha256=w9owTy1O7FL3utEzbWoSupELbnU6wdjUTqxJbxOJEQc,1086
|
|
12
|
+
django_bootstrap6_admin/templates/admin/actions.html,sha256=98dvpMKkiSLcTmFQnLuM6ciiHz3iM9iR2wGhgs-F-2c,1617
|
|
13
|
+
django_bootstrap6_admin/templates/admin/app_index.html,sha256=JdPO1m1c8e7ZCS0RrSAe5SwXyUIyrKl61HXkR7f3xSQ,1475
|
|
14
|
+
django_bootstrap6_admin/templates/admin/app_list.html,sha256=lYaPUQtGSDUca6AyWcAknYGZdFQn99pgsYErzxeiNyQ,3038
|
|
15
|
+
django_bootstrap6_admin/templates/admin/base.html,sha256=M-EM5FpPATMPFD8hsTDu3-pfGL_VXbsOdEB46Ll_fxY,15818
|
|
16
|
+
django_bootstrap6_admin/templates/admin/base_site.html,sha256=FXXOcMbZfl559pD3Ch9uMBc6uWFw6CpC0wW8dZHakYs,772
|
|
17
|
+
django_bootstrap6_admin/templates/admin/change_form.html,sha256=U83zrN0vVUJcn_9SC-ppAjhwfql1kS7Oher9EI8qDSc,4943
|
|
18
|
+
django_bootstrap6_admin/templates/admin/change_form_object_tools.html,sha256=HKGgQvUIIxa0rxHhIh6qr0OEagJAsMSPsX789HXVPWo,652
|
|
19
|
+
django_bootstrap6_admin/templates/admin/change_list.html,sha256=D3HGm8XRW4tdZt6ojVY3AFunSVfKikrm3tUkQDDwfhU,7981
|
|
20
|
+
django_bootstrap6_admin/templates/admin/change_list_object_tools.html,sha256=hjGjdfzLz7DkLZc1RZAbAFron2DaZgbb3xvuvtNl6ZI,470
|
|
21
|
+
django_bootstrap6_admin/templates/admin/change_list_results.html,sha256=CwB5LcdOa38oK2z4K0RrwdfehdAPrV1wOc2U0kc1WH8,2203
|
|
22
|
+
django_bootstrap6_admin/templates/admin/color_theme_toggle.html,sha256=VM37zIb6EDIa0GQViFrDj3kxWCS_59hWB5_RPxs2XNc,1114
|
|
23
|
+
django_bootstrap6_admin/templates/admin/date_hierarchy.html,sha256=TKbM7dSEs9ITDQz9bWaA5oJZoX0Wyc0O_SQ7BhPo9Ag,1133
|
|
24
|
+
django_bootstrap6_admin/templates/admin/delete_confirmation.html,sha256=4VKdjllslhL9FRZd-1B77i8YyO3B8kUWGtkdR8xo3fY,4748
|
|
25
|
+
django_bootstrap6_admin/templates/admin/delete_selected_confirmation.html,sha256=NOSWCICJnQY2-WLQnpNIuBxVKnTa9hnUzWkOnIFxqDY,4191
|
|
26
|
+
django_bootstrap6_admin/templates/admin/filter.html,sha256=HYJn8i07H6BVsrnDHwPq9LBKtfzXu1vE9d8X6HwqTuI,868
|
|
27
|
+
django_bootstrap6_admin/templates/admin/index.html,sha256=C4otRCbyF30vztVT16C5GtAmDqgJqT2kuSIkUJ1JOVg,6787
|
|
28
|
+
django_bootstrap6_admin/templates/admin/login.html,sha256=XCyxvxDd8tBN5IKiG3YakrSCn8jVtWiR9W3aMD16no8,4181
|
|
29
|
+
django_bootstrap6_admin/templates/admin/nav_sidebar.html,sha256=or94XDlWKW8mPVzcgyXpaWxPJd3JrYjdVNGfutQBfUw,1184
|
|
30
|
+
django_bootstrap6_admin/templates/admin/object_history.html,sha256=RiC1G8dbkxzZXntMmJdWOngmudyOTmlGJoMqqcwUe4o,3857
|
|
31
|
+
django_bootstrap6_admin/templates/admin/pagination.html,sha256=iednU8xC7xiAPuXzaLKQnd1UNh4v2c1WiAhAIUjspXw,797
|
|
32
|
+
django_bootstrap6_admin/templates/admin/search_form.html,sha256=pln7KWWNzusITcAN8ZUPpIi1hu8Mne7oxrcRNTxwTQo,1944
|
|
33
|
+
django_bootstrap6_admin/templates/admin/submit_line.html,sha256=ExAHvVIta74KQRZsEYb7PMeadIGypi5gU48HCl2eWSw,2022
|
|
34
|
+
django_bootstrap6_admin/templates/admin/auth/user/add_form.html,sha256=Sxzn4aKaM4OqJwiE5hABKchjVQ-tV6zjvoVVC56WofY,398
|
|
35
|
+
django_bootstrap6_admin/templates/admin/auth/user/change_password.html,sha256=07zfXZth9EHAZrXIvWeX0ZUA6kB7jHn_R8lr-ZsHS8A,5217
|
|
36
|
+
django_bootstrap6_admin/templates/admin/edit_inline/stacked.html,sha256=4jX1kizarNPk1lzAuWSbQE53JxVPLtZpJ_3FPGeSYEE,3913
|
|
37
|
+
django_bootstrap6_admin/templates/admin/edit_inline/tabular.html,sha256=29tP9apphqyv_JGfo90q8ceGFR__3S5vd32txzVroVo,5659
|
|
38
|
+
django_bootstrap6_admin/templates/admin/includes/fieldset.html,sha256=KEhqDvZb2c5GlIkpu9jEP82ahKTMtdpff42qHVoqvpA,3109
|
|
39
|
+
django_bootstrap6_admin/templates/admin/includes/object_delete_summary.html,sha256=YGNq598VnhmQ23SN2A1iLMbOQ-KL7zNY9ktx1F6sCpQ,228
|
|
40
|
+
django_bootstrap6_admin/templates/admin/widgets/foreign_key_raw_id.html,sha256=Xkwuwkzg52TeLJI9VBUi69OKVo2imPKeUv4QLLTgQNc,651
|
|
41
|
+
django_bootstrap6_admin/templates/admin/widgets/related_widget_wrapper.html,sha256=A92GMY5xkj6JZjM2NZY82ftWl1XH6IuhH3QskZ43Hj4,2787
|
|
42
|
+
django_bootstrap6_admin/templates/registration/logged_out.html,sha256=DsjrDIXF3j5KGhPq23eAJKKQFw84fzHLdFZdmKnUXhQ,1099
|
|
43
|
+
django_bootstrap6_admin/templates/registration/password_change_done.html,sha256=PUYrXAqyFRwbGbGUpHLkhBocDdSRXOXvWu0jrzMA0wU,1064
|
|
44
|
+
django_bootstrap6_admin/templates/registration/password_change_form.html,sha256=4YC7vWhVBCRBuuf2gzH6c9aaHXGU2viMJKU_VW6nVKg,3318
|
|
45
|
+
django_bootstrap6_admin/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
|
+
django_bootstrap6_admin/templatetags/bootstrap6_admin.py,sha256=ut0AqRhjXIZdP5lWZtDoE_d0WhMxvXYfcCFj10tZtkU,904
|
|
47
|
+
django_bootstrap6_admin-0.1.0.dist-info/licenses/LICENSE,sha256=IAlZXEGOVIScTyMwe20vPXEAsyl4xrJIwNn26LT3fkQ,1076
|
|
48
|
+
django_bootstrap6_admin-0.1.0.dist-info/licenses/NOTICE,sha256=MnnIeQoGcYk3mLE6X9FTb6W08VFJy1eeQ4mJLM57whc,1996
|
|
49
|
+
django_bootstrap6_admin-0.1.0.dist-info/METADATA,sha256=kYoC0OLQ9lm5HUTuT_C2OQGp74T45imKpvPlZ7AsanE,9378
|
|
50
|
+
django_bootstrap6_admin-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
51
|
+
django_bootstrap6_admin-0.1.0.dist-info/top_level.txt,sha256=LazFaVgW97YImsUWUfPpGJFU3FHUl7f08id0KfbYESg,24
|
|
52
|
+
django_bootstrap6_admin-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Aliberk Sandıkçı
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|