move css styles to static file
[MojoFacets.git] / templates / data / columns.html.ep
1 % layout 'default';
2 <h2><%= $message %></h2>
3
4 <form method=post action=/data/table >
5
6 <ul>
7 % my $checked; $checked->{$_}++ foreach @{ session('columns') };
8 % foreach my $n ( sort { $stats->{$b}->{count} <=> $stats->{$a}->{count} } keys %$stats ) {
9 <li>
10 <label>
11 <input type=checkbox name=columns value="<%= $n %>" <%= $checked->{$n} ? 'checked' : '' %>>
12 <%= $n %>
13 <span class="count"><%= $stats->{$n}->{count} %></span>
14 </label>
15 % }
16 </ul>
17
18 <input type=submit>
19
20 </form>