This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Smartadmin module is a set of template tags and helpers for smartadmin template.
Twitter bootstrap is great product, but there is a downside for me as a programmer: complicated html.
Everytime I cannot remember how can I achieve my goals.
Therefor I have created extensive set of template tags to hide html details.
Smartadmin uses a lot of pair tags. End tags names are always by simple rule "end:{tag}". So if you use `widget`, end tag
is `end:widget`. It's simple as that.

Smartadmin is divided into multiple modules that can be loaded in templates:
* smartadmin_layout - layout tags belong here (e.g. row, column..)
* smartadmin_elements - elements such as buttons, icons...
* smartadmin_widgets - widgets (known as jarviswidgets)
* smartadmin_tables - tables tags


Smartadmin supports basic layout tags, e.g. grid tags etc..
List of tags:


Row is a pair tag that translates to bootstrap row. It has no kwargs currently.


{% row %}
{% end:row %}


Column is a pair tag that translates to bootstrap grid column.
You can define its sizes by providing keyword arguments:

* xs - extra small e.g. `xs=4` translates to col-xs-4
* sm
* md
* lg

{% column xs=12 md=6 lg=6 %}
{% end:column %}

This translates to `<div class="col-xs-12 col-md-6 col-lg-6">Hello</div>`


This module provides small UI elements from smartadmin such as button, icon and more...


This templatetag renders button.
Keyword arguments:

'default', 'primary', 'success', 'info', 'warning', 'danger', 'disabled', 'link'

'xs', 'sm', 'lg', 'xl'

'top', 'bottom', 'left', 'right'


This module provides template tags and filters that create tables


{% table striped=1 %}

{% end:table %}


Set of tags that create jarvis widgets.

Full working example:


{% load smartadmin_widgets %}
{% grid %}
{% widget %}
{% widget.header title="Books" icon="book" %}
{% widget.header.toolbar %}
<div class="btn-group">
<a href="{% url '' %}" class="btn btn-xs btn-success">
New Book
{% end:widget.header.toolbar %}
{% end:widget.header %}

{% widget.body %}

{% end:widget.body %}

{% end:widget %}
{% end:grid %}


Grid for widgets.
kwargs: None


{% grid %}
{% end:grid %}


Main jarvis widget.
Keyword arguments:

* id - id of widget


{% widget %}
{% end:widget %}


This pair tag creates widget header.


{% widget.header %}
{% end:widget.header %}


This pair tag creates toolbar for widget header


{% widget.header.toolbar %}

{% end:widget.header.toolbar %}


Body of the widget where you can put your awesome markup.


{% widget.body %}
Hello world!
{% end:widget.body %}


Toolbar for widget body.


{% widget.body.toolbar %}
This is my super toolbar
{% end:widget.body.toolbar %}
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-smartadmin-tags-0.1.0.tar.gz (15.5 kB) Copy SHA256 Checksum SHA256 Source Nov 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting