all values must be arrays
[MojoFacets.git] / templates / data / columns.html.ep
index 13548eb..5ea9dff 100644 (file)
@@ -8,10 +8,12 @@
 */
 </style>
 <script type="text/javascript">
-$(function() {
+
+$(document).ready(function() {
        $("#sortable").sortable();
        $("#sortable").disableSelection();
 });
+
 </script>
 
 
@@ -19,7 +21,11 @@ $(function() {
 
 <h2>Select and reorder columns</h2>
 
-<form method=post action=/data/table >
+<form method=post>
+
+<input type=submit value="Select">
+
+<%= include 'all_checkboxes' %>
 
 <ul id="sortable">
 % foreach my $n ( @$columns ) {
@@ -28,11 +34,18 @@ $(function() {
 <input type=checkbox name=columns value="<%= $n %>" <%= $checked->{$n} ? 'checked' : '' %>>
 <%= $n %>
 <span class="count"><%= $stats->{$n}->{count} %></span>
+% if ( defined $stats->{$n}->{unique} ) {
+<span title="unique">&#9997;</a>
+% }
 </label>
 % }
 </ul>
 
-<input type=submit>
+<input type=submit value="Select">
+
+from <input type=text name=path value="<%= session('path') %>" readonly>
+
+<a href="<%= url_for( action => 'stats' ) %>">rebuild stats</a>
 
 </form>