placeholder for GNUPlot timefmt
[MojoFacets.git] / templates / data / columns.html.ep
1 % layout 'ui';
2
3 <style type="text/css">
4 /*
5 #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
6 #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
7 #sortable li span { position: absolute; margin-left: -1.3em; }
8 */
9 </style>
10 <script type="text/javascript">
11
12 $(document).ready(function() {
13         $("#sortable").sortable();
14         $("#sortable").disableSelection();
15 });
16
17 </script>
18
19
20 <div style="float:right">
21 % if ( $views ) {
22 Load view:
23 <ul>
24 %  foreach my $view ( @$views ) {
25 <li><a href="/data/columns/<%= $view %>"><%= $view %></a>
26 %  }
27 </ul>
28 % }
29 </div>
30
31
32 <h2>Select and reorder columns</h2>
33
34 <form method=post>
35
36 <input type=submit value="Select">
37
38 %= include 'all_checkboxes', add_class_to => 'parent()'
39
40 <ul id="sortable">
41 % foreach my $n ( @$columns ) {
42 <li>
43 <label>
44 <input type=checkbox name=columns value="<%= $n %>" <%= $checked->{$n} ? 'checked' : '' %>>
45 <%= $n %>
46 <span class="count"><%= $stats->{$n}->{count} %></span>
47 % if ( defined $stats->{$n}->{unique} ) {
48 <span title="unique">&#9997;</span>
49 % }
50 % if ( defined $stats->{$n}->{numeric} ) {
51 <span title="numeric">&#8319;</span>
52 % }
53 </label>
54 % }
55 </ul>
56
57 <input type=submit value="Select">
58
59 <input type=hidden name=path value="<%= session('path') %>" readonly>
60
61 <input type=text name=view placeholder="save view">
62
63 <a href="<%= url_for( action => 'stats' ) %>">rebuild stats</a>
64
65 </form>
66
67 <pre class=debug>
68 $columns = <%= dumper $columns %>
69 $stats = <%= dumper $stats %>
70 </pre>