| #------------------------------------------------------------------------ |
| # Compiled template generated by the Template Toolkit version 2.15 |
| #------------------------------------------------------------------------ |
| |
| Template::Document->new({ |
| METADATA => { |
| 'modtime' => '1138010588', |
| 'name' => 'reports/series.html.tmpl', |
| }, |
| BLOCK => sub { |
| my $context = shift || die "template sub called without context\n"; |
| my $stash = $context->stash; |
| my $output = ''; |
| my $error; |
| |
| eval { BLOCK: { |
| $output .= "\n"; |
| $output .= "\n\n"; |
| $output .= "\n"; |
| #line 30 "template/en/custom/reports/series.html.tmpl" |
| $output .= $context->process('reports/series-common.html.tmpl', { 'newtext' => 'New (name below)' }); |
| $output .= "\n \n<table cellpadding=\"2\" cellspacing=\"2\" border=\"0\"\n style=\"text-align: left; margin-left: 20px\">\n <tbody>\n <tr>\n <th>Category:</th>\n <th></th>\n <th>Sub-category:</th>\n <th>Name:</th>\n <td></td>\n </tr>\n <tr>"; |
| #line 45 "template/en/custom/reports/series.html.tmpl" |
| $output .= $context->process('series_select', { 'sel' => { 'name' => 'category', 'size' => 5, 'onchange' => 'catSelected()' } }); |
| $output .= "\n <td>\n <noscript>\n <input type=\"submit\" name=\"action-edit\" value=\"Update -->\">\n </noscript>\n </td>\n "; |
| #line 54 "template/en/custom/reports/series.html.tmpl" |
| $output .= $context->process('series_select', { 'sel' => { 'name' => 'subcategory', 'size' => 5, 'onchange' => 'checkNewState()' } }); |
| $output .= "\n \n <td valign=\"top\" name=\"name\">\n <input type=\"text\" name=\"name\" maxlength=\"64\" \n value=\""; |
| #line 60 "template/en/custom/reports/series.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['default', 0, 'name', 0, 0, 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\" size=\"25\">\n </td>\n\n <td valign=\"top\">\n <span style=\"font-weight: bold;\">Run every</span> \n <input type=\"text\" size=\"2\" name=\"frequency\"\n value=\""; |
| #line 66 "template/en/custom/reports/series.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= ($stash->get(['default', 0, 'frequency', 0, 0, 0]) || 7); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\">\n <span style=\"font-weight: bold;\"> day(s)</span><br>\n "; |
| #line 75 "template/en/custom/reports/series.html.tmpl" |
| if ($stash->get(['UserInGroup', [ 'admin' ]])) { |
| $output .= " \n <input type=\"checkbox\" name=\"public\""; |
| #line 72 "template/en/custom/reports/series.html.tmpl" |
| if ($stash->get(['default', 0, 'public', 0, 0, 0])) { |
| $output .= 'checked=\'checked\''; |
| } |
| |
| $output .= ">\n <span style=\"font-weight: bold;\">Visible to all<br>\n (within group restrictions)</span> "; |
| } |
| |
| $output .= "\n </td>\n </tr>\n\n <tr>\n <td>\n <input type=\"text\" style=\"width: 100%\" name=\"newcategory\" \n maxlength=\"64\" value=\""; |
| #line 82 "template/en/custom/reports/series.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['default', 0, 'newcategory', 0, 0, 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\">\n </td>\n <td></td>\n <td>\n <input type=\"text\" style=\"width: 100%\" name=\"newsubcategory\"\n maxlength=\"64\" \n value=\""; |
| #line 88 "template/en/custom/reports/series.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get(['default', 0, 'newsubcategory', 0, 0, 0]); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\">\n </td>\n <td></td>\n <td>\n <input type=\"submit\" name=\"submit-button\" \n value=\""; |
| #line 93 "template/en/custom/reports/series.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('button_name'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\">\n </td>\n </tr>\n </tbody>\n</table>\n"; |
| } }; |
| if ($@) { |
| $error = $context->catch($@, \$output); |
| die $error unless $error->type eq 'return'; |
| } |
| |
| return $output; |
| }, |
| DEFBLOCKS => { |
| |
| }, |
| }); |