diff options
author | Alex Legler <a3li@gentoo.org> | 2011-10-22 17:15:25 +0200 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2011-10-22 17:15:25 +0200 |
commit | 73f5202f6f731be8cacfc386dcac9c801006fede (patch) | |
tree | 4ac83a1fbdb2af5dd74d4324c08f39f9bb8d2278 /app/views/glsa/_package.html.erb | |
parent | Make XML builder core more robust to errors (diff) | |
download | glsamaker-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.erb | 2 |
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> |