diff --git a/media/css/layout.css b/media/css/layout.css index eec06bd6..80baf12e 100644 --- a/media/css/layout.css +++ b/media/css/layout.css @@ -644,6 +644,10 @@ TABLE.pgGenericFormTable TR TD INPUT { width: 100%; } +TABLE.pgGenericFormTable TR TD SELECT { + width: 100%; +} + TABLE.pgGenericFormTable TR TD TEXTAREA { width: 100%; } @@ -652,6 +656,21 @@ TABLE.pgGenericFormTable TR TD DIV.markdownpreview { width: 100%; } +TABLE.pgGenericFormTable TR.error { + background-color: red; + color: white; +} + +TABLE.pgGenericFormTable TR.errorinfo { + background-color: #FFFFCC; +} + +TABLE.pgGenericFormTable TR.errorheader TD { + background-color: #FFFFCC; + border: 1px solid red; + padding: 2px 2px 2px 2px; +} + /* Misc Classes */ .pgClearBoth { diff --git a/templates/base/form.html b/templates/base/form.html index f60641e8..a4332b1c 100644 --- a/templates/base/form.html +++ b/templates/base/form.html @@ -9,7 +9,22 @@ {%endif%}
Please correct the errors below, and re-submit the form. | +|
{{field.errors.as_ul}} | +|
{{field.label_tag}} | +{{field}} | +
---|