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
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
{% 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
3 matches
Mail list logo