Skip to content

Instantly share code, notes, and snippets.

@rangalo
Created July 29, 2010 16:36
Show Gist options
  • Select an option

  • Save rangalo/498602 to your computer and use it in GitHub Desktop.

Select an option

Save rangalo/498602 to your computer and use it in GitHub Desktop.
<h1>Projekt Liste</h1>
<% form_tag :controller => 'project', :action => 'add_candidates', :method => 'post' do %>
<table id="oldprojecttable">
<tr>
<th>Name</th>
<th>Beginn Datum</th>
<th>End Datum</th>
</tr>
<% @projects.each_with_index do |project,i| %>
<% row_class = (i%2) == 0 ? "reven" : "rodd" %>
<tr class="<%= row_class %>">
<%= render project %>
</tr>
<% end %>
</table>
<table id="projecttable"></table>
<div id="pager"></div>
<%= render 'grid_data.xml.builder' %>
<div class="action"> <%= link_to 'Neues Projekt', new_project_path %></div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment