1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<% comps = %w{ >= > *>= *> <= < *<= *< = } -%>
<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>
<td class="odd"><%= pf.text_field :version, :class => :nice, :size => 10, :index => nil %></td>
<td class="odd"><%= pf.text_field :slot, :class => :nice, :size => 5, :index => nil %></td>
<td><%= pf.text_field :arch, :class => :nice, :size => 7, :index => nil %></td>
<td class="odd"><%= pf.select :automatic, [["yes", true], ["no", false]], {}, :index => nil %></td>
<td><%= link_to_function(
image_tag('icons/package-remove.png', :alt => 'Remove package'),
"GLSAMaker.editing.packages.del(this)",
:title => 'Remove package') %>
<%= pf.hidden_field :my_type, :index => nil %></td>
<% end %>
</tr>
|