[copr] master: Style displaying of errors (5357284)
bkabrda at fedoraproject.org
bkabrda at fedoraproject.org
Mon Jan 21 11:12:44 UTC 2013
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 5357284c7ac90d874586bdfb81e6d17934983f05
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Mon Jan 21 08:20:44 2013 +0100
Style displaying of errors
>---------------------------------------------------------------
coprs_frontend/coprs/static/style-new.css | 4 ++++
coprs_frontend/coprs/templates/_helpers.html | 8 +++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/coprs_frontend/coprs/static/style-new.css b/coprs_frontend/coprs/static/style-new.css
index 097714d..527b1f5 100644
--- a/coprs_frontend/coprs/static/style-new.css
+++ b/coprs_frontend/coprs/static/style-new.css
@@ -189,6 +189,10 @@ input.rounded {
-webkit-border-radius: 10px;
}
+p.form-error {
+ color: red;
+}
+
table.releases {
width: 100%;
border-collapse:collapse;
diff --git a/coprs_frontend/coprs/templates/_helpers.html b/coprs_frontend/coprs/templates/_helpers.html
index 660c477..38d3aa4 100644
--- a/coprs_frontend/coprs/templates/_helpers.html
+++ b/coprs_frontend/coprs/templates/_helpers.html
@@ -3,11 +3,9 @@
<dt class="field-label">{{ label or field.label }}</dt>
<dd>
{% if field.errors %}
- <ul class=form-errors>
- {% for error in field.errors %}
- <li>{{ error }}</li>
- {% endfor %}
- </ul>
+ {% for error in field.errors %}
+ <p class="form-error">{{ error }}</p>
+ {% endfor %}
{% endif %}
{{ field(**kwargs)|safe }}
</dd>
More information about the copr-devel
mailing list