5 % if ( ! param('all_columns') ) {
6 <input name=all_columns type=submit value="any">
8 <input type=submit value="visible">
10 column in this dataset
11 % if ( ! param('all_code') ) {
13 <input name=all_code type=submit value="all code snippets">
17 % foreach my $depends ( sort { lc $a cmp lc $b } keys %$snippets ) {
18 <h2><%= $depends %></h2>
20 % foreach my $desc ( keys %{ $snippets->{$depends} } ) {
21 % my $have_deps = ! exists $no_deps->{$depends}->{$desc};
23 <form method=post action=/data/items>
24 <input type=submit name=<%= $have_deps ? 'test' : 'load' %> value="<%= $have_deps ? 'Load and test' : 'Load' %>">
25 % my $path = "$depends.$desc.pl";
26 <a target=code href="/code/<%= $path %>"><%= $desc %></a>
28 <input type=hidden name=code_depends value="<%= $depends %>">
29 <input type=hidden name=code_description value="<%= $desc %>">
31 <a class=remove href="<%= url_for( action => 'remove' )->query( path => $path ) %>">remove</a>
33 % my $code = $snippets->{$depends}->{$desc};
34 % my $rows = scalar split(/\n/,$code);
35 <textarea name=code rows=<%= $rows %> style="overflow:hidden; width: 100%">
44 <tt class=debug><%= dumper stash('snippets') %></tt>