summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2011-10-22 17:15:25 +0200
committerAlex Legler <a3li@gentoo.org>2011-10-22 17:15:25 +0200
commit73f5202f6f731be8cacfc386dcac9c801006fede (patch)
tree4ac83a1fbdb2af5dd74d4324c08f39f9bb8d2278 /app/views/glsa/_package.html.erb
parentMake XML builder core more robust to errors (diff)
downloadglsamaker-73f5202f6f731be8cacfc386dcac9c801006fede.tar.gz
glsamaker-73f5202f6f731be8cacfc386dcac9c801006fede.tar.bz2
glsamaker-73f5202f6f731be8cacfc386dcac9c801006fede.zip
Properly render all entered information when saving a draft failed
Diffstat (limited to 'app/views/glsa/_package.html.erb')
-rw-r--r--app/views/glsa/_package.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/glsa/_package.html.erb b/app/views/glsa/_package.html.erb
index 304e991..308eda5 100644
--- a/app/views/glsa/_package.html.erb
+++ b/app/views/glsa/_package.html.erb
@@ -1,5 +1,5 @@
<% comps = %w{ >= > *>= *> <= < *<= *< == } -%>
-<tr class="entry">
+<tr class="entry <%= 'invalid' if package.invalid? %>">
<%= fields_for "glsa[package][]", package do |pf| %>
<td><%= pf.text_field :atom, :class => :nice, :index => nil %></td>
<td class="odd"><%= pf.select :comp, comps, {}, :index => nil %></td>