added CSS classes for displaying error messages in forms

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2804 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2008-08-11 21:16:18 +00:00
parent 7e7012ccd4
commit 621d894799

View file

@ -26,6 +26,12 @@
data view/data;
state view/formState">
<table style="width: 100%">
<tbody tal:condition="state/severity">
<tr>
<td colspan="2">
<div class="error error-heading"
i18n:translate="">Please correct the indicated errors.</div></td></tr>
</tbody>
<tal:fields repeat="field fields">
<tal:field define="name field/name;
errors state/fieldInstances/?name/errors|python: [];">
@ -46,9 +52,9 @@
style="padding: 4px; margin-bottom: 4px;">
<tal:errors repeat="error errors">
<tr>
<td colspan="2" style="padding: 4px"
i18n:translate=""
tal:content="error/description">???</td>
<td colspan="2" style="padding: 4px">
<div i18n:translate=""
tal:content="error/description">???</div></td>
</tr>
</tal:errors>
<tr>