Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django <input> inside <label>

Some front-end experts claim that wrapping an <input> with the <label> (implicit labels) is a preferable practice (compared to explicit ones, even if they have the for attribute).

Whatever the reasons for that, I'd like to see how this can be technically done with Django in an elegant way.

like image 423
kmt Avatar asked Jan 06 '11 18:01

kmt


1 Answers

Write your own Widgets and use them on your Forms.

like image 51
Hank Gay Avatar answered Sep 19 '22 21:09

Hank Gay