Skip to content

Instantly share code, notes, and snippets.

@tylerlee
Last active January 3, 2016 03:59
Show Gist options
  • Save tylerlee/8405790 to your computer and use it in GitHub Desktop.
Save tylerlee/8405790 to your computer and use it in GitHub Desktop.
<%= list_table_for @team_members, :form_action => 'search' do |list| %>
<% list.empty 'There are no people to show at this time' %>
<% list.search 'Search for a Person', width: '300px' %>
<%# list.sort [
sort_button('Name', @sortable),
sort_button('ID', @sortable),
sort_button('Status', @sortable)
] %>
<% list.header do %>
<th class="mass-checkbox">
<th>User</th>
<th>Email Address</th>
<th>God Name</th>
<% end %>
<% list.row do |team_member| %>
<td class="mass-checkbox"></td>
<td class="list-item">
<%= profile_picture(team_member) %>
<div class="list-item-title with-pic">
<h5><%= team_member.display_name %></h5>
<div class="details"><%= (team_member.city + ', ' if team_member.city) + team_member.state %></div>
</div>
</td>
<td>
<%= team_member.email_address %>
</td>
<td>
<%= team_member.god_title %>
</td>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment