AdminLTE template packaged for Django
Project description
django-adminlte3
django-adminlte3 provides the functionality of the AdminLTE3 theme to developers in the form of standard base templates. Optional styling for Django's built-in admin interface is also provided.
Usage
The base template is designed to be highly customisable. Template blocks are provided to allow you to hook in customisations as you wish
Template blocks
Base templates define blocks that may be set in templates that extends them.
Here is a list of available blocks. Blocks marked as 'new' are introduced in this forked django-adminlte3 implementation. Blocks marked as 'deprecated' were present in d-demirci/django-adminlte3 and remains supported in this implementation until v0.3.0 where they will disappear. Deprecated blocks may have a 'new' alternative, in such a case it is recommended to upgrade your templates to adopt it.
The following blocks are available for use:
HTML
elementhtml_lang
(new) - Defines the value of thelang
attribute in the<html>
element. Defaults toen
.
HEAD
elementtitle_outer
(deprecated) - Surrounds the<title></title>
element in the<head></head>
of the document; deprecated as an emptyhead_title
block value may be used instead.head_title
(new, replacestitle
) - Value of the<title></title>
element. Defaults to{{ site.name }}
head_meta
(new) andmeta
(deprecated) - Surrounds the default<meta>
elements. Can be reset with a blank block, or completely redeclared.css
(new) andstylesheets
(deprecated) - Surrounds the default<link rel="stylesheet">
elements. Can be reset with a blank block, or completely redeclared.css_xtra
(new) andstyle_sheets
(deprecated) - Placeholder for extra CSS stylesheets set in your templates without overwriting the default CSS stylesheets.
head_xtra
(new) andextra_head
(deprecated) - Placeholder for extra elements in<head></head>
.
BODY
element-
body_class
(new) - Surrounds the default value of theclass
attribute in the<body>
element.body_class_xtra
(new) andbodyclass
(deprecated) - Placeholder for extra classes in<body>
element. d-demirci/django-adminlte3'sbody_class
has been reused in the current implementation.
-
body_wrapper
(new) andbody
(deprecated) - Surrounds the<div class="wrapper"></div>
element and all of its content.nav_header
- Surrounds the<nav class="main-header"></nav>
element that forms the top header.nav_bar
(deprecated) - Contains all the elements of the top header.navbar_link
(new) - Surrounds the<ul class="navbar-nav"></ul>
element that forms the links menu.navbar_center
(new) andnav_bar_center
(deprecated) - Surrounds the search form in the navbar.navbar_custom
(new) andnav_custom_menu
(deprecated) - Surrounds the dropdown menus on the right-side of the navbar.header_dropdowns
(deprecated) - Content of the<ul></ul>
element defined in the upper-levelnavbar_custom
block.user_info
(deprecated) - Declares the item with user profile information.change_password_url
(deprecated) - Declares the password change URL.logout_url
(deprecated) - Declares the logout URL.
nav_sidebar
- Surrounds the<aside class="main-sidebar"></aside>
element that forms the menu.logo
- Defines the logo on the top left hand corner of the page.logo_text
(deprecated) - Defines the logo text
sidebar
(new) - The content of<div class="sidebar"></div>
.sidebar_user_panel
(new) anduser_panel
(deprecated) - Defines the user panel in the lateral menu.sidebar_search_form
(new) andform
(deprecated) - Placeholder for optional search form in the sidebar.sidebar_menu
(new) andnav_links_ul
(deprecated) - Defines the sidebar menu content.nav_links_outer
(deprecated) - Defines the list items of the menu.nav_heading
(deprecated) - Defines the content of the menu heading line.nav_links
(deprecated) - Defines the list items with the menu links.
content_wrapper
- Surrounds the content wrapper.content_header
- Surrounds the<section class="content-header"></section>
element.no_heading
(deprecated) - Defines the content of thecontent_header
section.title
(new) andpage_name
(deprecated) - Defines the title of the page.header_actions
(new) andpage_actions
(deprecated) - Defines actions.
header_description
(new) andno_description
(deprecated) - Defines description in the header.page_description
(deprecated)
breadcrumbs
(deprecated)
content_section
(new) andcontent_outer
(deprecated) - Surrounds the<section class="content"></section>
element.messages
- Displays the messages returned by the applications.content
andcontent_block_wrap
(deprecated) - Placeholder for the page content.
footer_wrapper
(new) andnav_footer
(deprecated) - Surrounds the<footer class="main-footer"></footer>
element that forms the page footer.footer_right
- Declares the content on the right of the footer (typically the version).version
- Contains the version number
footer_left
- Declares the content on the left of the footer (typically the copyright).legal
(deprecated) - The legal content
-
js
(new) andjavascript
(deprecated) - Surrounds the default<script>
elements. Can be reset with a blank black, or completely redeclared.js_xtra
(new) - Placeholder for extra scripts set in your templates without overwriting the default scripts. In d-demirci/django-adminlte3, this was namedjs
, but this block name is reused in the current implementation.
-
extra_js
(deprecated) - Placeholder for extra scripts. Contrary tojs_xtra
, this placeholder is set outside of thejs
block. -
body_xtra
(new) andextra_foot
(deprecated) - Placeholder at the foot of the<body></body>
element.
-
Versions
-
v0.2.0 (under development)
- Templates are reworked: Included subtemplates are embedded into the main template, so the blocks are now correctly parsed.
- Transition release: Block compatibility with d-demirci/django-adminlte3 v0.1.7-alpha is supported when possible. Some new blocks are introduces, others are deprecated (an alternative may be proposed, or not.)
-
v0.1.99 (March 9th, 2021)
- Similar to release v0.1.7-alpha of
d-demirci/django-adminlte3
- Similar to release v0.1.7-alpha of
Credits
This project a based heavily on work by the following:
- d-demirci for d-demirci/django-adminlte3
- dnaextrim for django_adminlte_x
- beastbikes for django-adminlte
- adamcharnock for django-adminlte2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file django_adminlte3_amigne-0.2.0.dev0-py3-none-any.whl
.
File metadata
- Download URL: django_adminlte3_amigne-0.2.0.dev0-py3-none-any.whl
- Upload date:
- Size: 21.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12dcfe1ffe2cf7a02798c36a607990b189703f162f7e1c25784720a3c6f91b62 |
|
MD5 | 3505fca5c3d906d696923b88a36104c1 |
|
BLAKE2b-256 | 963c950bf3ba9632c43b579da9f3681b8e3b70b324b6addd90c2b24f11ab5daf |