Django Template Mode for Panic Coda and SubEthaEdit

2010-02-23 Thread jbergantine
For anyone else that combines Django with Coda, I've created a mode for the Django Template language. You can preview it and get more info from http://joebergantine.com/werkstatt/djangotemplate. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Template Form Field Styles

2010-02-24 Thread jbergantine
One option is to use the field.errors logic to decide whether to wrap an error class around the input and then use descendent selectors to target the input element with CSS. (.error input { ... }). On Feb 24, 4:10 pm, Pugglewuggle wrote: > Hi, > > I'm making a form and would like to use CSS class

Re: Template Form Field Styles

2010-02-24 Thread jbergantine
{% endif %} {% if field.field.required %}*{% endif %} {{ field.label_tag }}{% if field.errors %} — {{ field.errors|first|lower|striptags }}{% endif %} {{ field }} {% endfor %} CSS just looks like: .error label { ... } .error input { ... } On Feb 24, 8:34 pm, kkerbel wrote: > @jbergantin