Skip to content

Commit

Permalink
put buttons in tables together nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywatts committed Sep 24, 2014
1 parent 24fd09b commit 17a82a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions app/views/attendance_entries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
<th>Email</th>
<th>Swipe-In Time</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>

Expand All @@ -58,9 +56,15 @@
<td><%= attendance_entry.netid %></td>
<td><%= attendance_entry.email %></td>
<td><%= attendance_entry.swipe_time %></td>
<td><%= link_to 'More Details', attendance_entry_path(attendance_entry), :class => "btn btn-default" %></td>
<td><%= link_to 'Edit', edit_attendance_entry_path(attendance_entry), :class => "btn btn-default" %></td>
<td><%= link_to 'Destroy', attendance_entry_path(attendance_entry), method: :delete, data: { confirm: 'Are you sure?' }, :class => "btn btn-danger" %></td>
<td>
<div class="btn-group">
<%= link_to 'More Details', attendance_entry_path(attendance_entry), :class => "btn btn-default" %>
<%= link_to 'Edit', edit_attendance_entry_path(attendance_entry), :class => "btn btn-default" %>
</div>
<div class="btn-group">
<%= link_to 'Destroy', attendance_entry_path(attendance_entry), method: :delete, data: { confirm: 'Are you sure?' }, :class => "btn btn-danger" %>
</div>
</td>
</tr>
<% end %>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion app/views/events/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<td><%= event.attendance_entries.count %></td>
<td><%= event.last_edited %></td>
<td><%= link_to 'Edit', edit_event_path(event), :class => "btn btn-default" %></td>
<td><%= link_to 'Destroy', event, method: :delete, data: { confirm: 'Are you sure?' }, :class => "btn btn-danger btn-sm" %></td>
<td><%= link_to 'Destroy', event, method: :delete, data: { confirm: 'Are you sure?' }, :class => "btn btn-danger" %></td>
</tr>
<% end %>
</tbody>
Expand Down

0 comments on commit 17a82a6

Please sign in to comment.