Revision: 3219
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 20, 2007 03:01 by bordalix
Initial Code
<p>Contact:<br/>
<table class="tbl">
<% cells = 0 %>
<% Contact.find(:all).each do |c| %>
<% cells += 1 %>
<% if cells.divmod(3)[1] == 1 -%><tr><% end -%>
<td><input type="radio" name="task[contact_id]" value="<%= c.id -%>"
<% if @task.contact == c -%> checked="checked" <% end -%> />
<%= c.name %></td>
<% if cells.divmod(3)[1] == 0 -%></tr><% end -%>
<% end %>
</table>
</p>
Initial URL
Initial Description
Initial Title
radiobox collection in a 3 column table
Initial Tags
table
Initial Language
Rails