Skip to content

Commit

Permalink
Actually, stick to decent boosttrap tables
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Jan 8, 2017
1 parent ee7b534 commit 4d81fcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
7 changes: 0 additions & 7 deletions app/views/access_levels/_access_level.html.erb
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
<tr id="<%= dom_id(access_level) %>">
<td><%= access_level.name %></td>
<td class="spacer"></td>
<td>
<%= access_level.registrations.size %> (<%= access_level.registrations.paid.size %>) / <%= access_level.capacity.presence || "&infin;".html_safe %>
<span class="label label-<%= color_for_tickets_left(access_level) %> pull-right"><%= "#{pluralize(access_level.tickets_left, "ticket")} left" if access_level.capacity.presence %></span>
</td>
<td class="spacer"></td>
<td>&euro; <%= number_with_precision access_level.price || "0", precision: 2 %></td>
<td class="spacer"></td>
<td><%= translate access_level.permit %></td>
<td class="spacer"></td>
<td><%= access_level.has_comment ? 'Yes' : 'No' %></td>
<td class="spacer"></td>
<td><%= access_level.hidden ? 'Yes' : 'No' %></td>
<td class="spacer"></td>
<% if advanced %>
<td><%= render partial: 'access_levels/zones', locals: {access_level: access_level} %></td>
<td class="spacer"></td>
<% end %>
<td>
<div class="nowrap">
Expand Down
21 changes: 7 additions & 14 deletions app/views/access_levels/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@
<div class="col-sm-12">
<h2>Manage tickets</h2>
<div class="table-responsive">
<table id="table-access-levels">
<table class="table" id="table-access-levels">
<thead>
<th class="header">Name</th>
<th class="header spacer"></th>
<th class="header" width="200">Sold (Paid) /Capacity</th>
<th class="header spacer"></th>
<th class="header">Price</th>
<th class="header spacer"></th>
<th class="header">Allow</th>
<th class="header spacer"></th>
<th class="header">Allows comments</th>
<th class="header spacer"></th>
<th class="header">Hidden</th>
<th class="header spacer"></th>
<th>Name</th>
<th width="200">Sold (Paid) /Capacity</th>
<th>Price</th>
<th>Allow</th>
<th>Allows comments</th>
<th>Hidden</th>
<% if @advanced %>
<th>Zones</th>
<th class="header spacer"></th>
<% end %>
<th>Actions</th>
</thead>
Expand Down

0 comments on commit 4d81fcf

Please sign in to comment.