An application providing some template tags to add buttons to pages


Keywords
django, buttons, bootstrap3, bootstrap4, fontawesome5
License
MIT
Install
pip install django-buttons==0.9.1

Documentation

pipeline status

django-buttons

This application provides some simple template tags to insert some buttons into templates.

Installation

Install application with pypi:

$ pip install django-buttons

Add application to your INSTALLED_APPS:

INSTALLED_APPS = [
...
'buttons',
...
]

Use buttons in your templates

{% load buttons_tags %}
...
{% btn_home %}

Buttons can have some parameters :

  • `url`: target url
  • `title`: displayed text
  • `icon`: fa aware name, ie. 'home' for fa-home
  • `icon_position`: Position of the icon, 'right', 'left' or 'none' (no icon displayed) ...

Enjoy !