Make BooleanField display a larger checkbox in Django

So I am creating a website using Django templates, forms etc. One thing I've noticed though is that the checkboxes I create via BooleanFields are too small. Any idea how to make the thing bigger?

Answers


You can try doing this using css, but the thing is very difficult: http://www.456bereastreet.com/lab/form_controls/checkboxes/

When you create a class in css you can add it to your input using widgets, something like:

field = forms.BooleanField(widget=forms.CheckboxInput(attrs={'class':'your_class'}))

Need Your Help

Python/PySide: How can i destroy a terminated thread object?

python multithreading pyqt multiprocessing pyside

I would like to implement a button to stop a thread with a process, it works but not as expected: i can't delete the thread object. (EDIT: The reference to the thread object seems to be deleted, bu...

Wordpress: fatal error no access on control panel/admin panel

php wordpress error-handling ftp wordpress-plugin

During a clean up of my plugins inside of Wordpress i deactivated the: smart archives reloaded plugin.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.