View | Details | Raw Unified | Return to bug 14275
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-1 / +7 lines)
Lines 783-789 canned reports and writing custom SQL reports.</p> Link Here
783
                [% ELSIF ( sql_param.input == 'text' ) %]
783
                [% ELSIF ( sql_param.input == 'text' ) %]
784
                    <li><label for="sql_params[% loop.count %]">[% sql_param.entry %]: </label><input id="sql_params[% loop.count %]" type="text" name="sql_params" /></li>
784
                    <li><label for="sql_params[% loop.count %]">[% sql_param.entry %]: </label><input id="sql_params[% loop.count %]" type="text" name="sql_params" /></li>
785
                [% ELSE %]
785
                [% ELSE %]
786
                    <li><label for="sql_params_[% sql_param.labelid %]">[% sql_param.entry %]:</label> [% sql_param.input %]</li>
786
                    <li><label for="sql_params_[% sql_param.labelid %]">[% sql_param.entry %]:</label>
787
                        <select name="[%- sql_param.input.name -%]" tabindex="1"  size="1" id="[%- sql_param.input.id -%]">
788
                        [% FOREACH value IN sql_param.input.values %]
789
                            <option value="[%- value -%]">[%- sql_param.input.labels.$value -%]</option>
790
                        [% END %]
791
                        </select>
792
                    </li>
787
                [% END %]
793
                [% END %]
788
            [% END %]
794
            [% END %]
789
            </ol>
795
            </ol>
(-)a/reports/guided_reports.pl (-12 / +6 lines)
Lines 722-738 elsif ($phase eq 'Run this report'){ Link Here
722
                    }
722
                    }
723
                    $labelid = $text;
723
                    $labelid = $text;
724
                    $labelid =~ s/\W//g;
724
                    $labelid =~ s/\W//g;
725
                    $input =CGI::scrolling_list(      # FIXME: factor out scrolling_list
725
                    $input = {
726
                        -name     => "sql_params",
726
                        name    => "sql_params",
727
                        -id       => "sql_params_".$labelid,
727
                        id      => "sql_params_".$labelid,
728
                        -values   => \@authorised_values,
728
                        values  => \@authorised_values,
729
#                     -default  => $value,
729
                        labels  => \%authorised_lib,
730
                        -labels   => \%authorised_lib,
730
                    };
731
                        -override => 1,
732
                        -size     => 1,
733
                        -multiple => 0,
734
                        -tabindex => 1,
735
                    );
736
                }
731
                }
737
732
738
                push @tmpl_parameters, {'entry' => $text, 'input' => $input, 'labelid' => $labelid };
733
                push @tmpl_parameters, {'entry' => $text, 'input' => $input, 'labelid' => $labelid };
739
- 

Return to bug 14275