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

(-)a/admin/aqplan.pl (-26 / +6 lines)
Lines 156-172 push( @category_list, $$_{'authcat'} ) foreach @$auth_cats_loop; Link Here
156
156
157
#reorder the list
157
#reorder the list
158
@category_list = sort { $a cmp $b } @category_list;
158
@category_list = sort { $a cmp $b } @category_list;
159
my $tab_list = CGI::scrolling_list(
160
    -name     => 'authcat',
161
    -id       => 'authcat',
162
    -values   => \@category_list,
163
    -default  => $authcat,
164
    -size     => 1,
165
    -tabindex => '',
166
    -multiple => 0,
167
);
168
159
169
$template->param( authcat_dropbox => $tab_list );
160
$template->param( authcat_dropbox => {
161
        values => \@category_list,
162
        default => $authcat,
163
    });
170
164
171
my @budgets = @$budgets_ref;
165
my @budgets = @$budgets_ref;
172
my $CGISort;
166
my $CGISort;
Lines 330-351 foreach my $n (@names) { Link Here
330
# ------------------------------------------------------------
324
# ------------------------------------------------------------
331
#         DEFAULT DISPLAY BEGINS
325
#         DEFAULT DISPLAY BEGINS
332
326
333
my $CGIextChoice = CGI::scrolling_list(
327
my $CGIextChoice = ( 'CSV' ); # FIXME translation
334
    -name     => 'MIME',
328
my $CGIsepChoice = ( C4::Context->preference("delimiter") );
335
    -id       => 'MIME',
336
    -values   => ['CSV'], # FIXME translation
337
    -size     => 1,
338
    -multiple => 0
339
);
340
341
my @dels         = ( C4::Context->preference("delimiter") );
342
my $CGIsepChoice = CGI::scrolling_list(
343
    -name     => 'sep',
344
    -id       => 'sep',
345
    -values   => \@dels,
346
    -size     => 1,
347
    -multiple => 0
348
);
349
329
350
my ( @budget_lines, %cell_hash );
330
my ( @budget_lines, %cell_hash );
351
331
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-8 / +30 lines)
Lines 235-245 Link Here
235
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
235
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
236
<fieldset class="brief">
236
<fieldset class="brief">
237
<h4>Filter</h4>
237
<h4>Filter</h4>
238
238
[% BLOCK planning_types %]
239
[%   SWITCH type %]
240
[%     CASE 'MONTHS'    %]<span>by months</span>
241
[%     CASE 'ITEMTYPES' %]<span>by item types</span>
242
[%     CASE 'BRANCHES'  %]<span>by libraries</span>
243
[%   END %]
244
[% END %]
239
<ol>
245
<ol>
240
    <li>
246
    <li>
241
        <label for="authcat"> Select planning type:</label>
247
        <label for="authcat"> Select planning type:</label>
242
        [% authcat_dropbox %]
248
        <select name="authcat" id="authcat" size="1">
249
        [% FOREACH value IN authcat_dropbox.values %]
250
            [% IF ( value == authcat_dropbox.default ) %]
251
            <option value="[% value %]" selected>[% PROCESS planning_types type=value %]</option>
252
            [% ELSE %]
253
            <option value="[% value %]">[% PROCESS planning_types type=value %]</option>
254
            [% END %]
255
        [% END %]
256
        </select>
243
    </li>
257
    </li>
244
    <li class="radio">
258
    <li class="radio">
245
    [% IF ( show_mine ) %]
259
    [% IF ( show_mine ) %]
Lines 275-287 Link Here
275
</form>
289
</form>
276
[% IF ( budget_lines ) %]
290
[% IF ( budget_lines ) %]
277
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
291
<form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
278
<h4>Export</h4>
279
<fieldset class="brief">
292
<fieldset class="brief">
293
<h4>Export</h4>
280
    <ol>
294
    <ol>
281
    <li><label for="basename">Output to a file named: </label><input type="text" name="basename" id="basename" value="Export" /></li>
295
        <li><label for="basename">Output to a file named: </label><input type="text" name="basename" id="basename" value="Export" /></li>
282
    <li><label class="inline" for="MIME">Into an application
296
        <li><label class="inline" for="MIME">Into an application</label>
283
    </label>[% CGIextChoice %]
297
            <select name="MIME" id="MIME" size="1">
284
    [% CGIsepChoice %]</li>
298
            [% FOREACH value IN CGIextChoice %]
299
                <option value="[% value %]">[% value %]</option>
300
            [% END %]
301
            </select>
302
            <select name="sep" id="sep" size="1">
303
            [% FOREACH value IN CGIsepChoice %]
304
                <option value="[% value %]">[% value %]</option>
305
            [% END %]
306
            </select>
307
        </li>
285
    </ol>
308
    </ol>
286
    <fieldset class="action">    <input type="submit" value="Submit"/>
309
    <fieldset class="action">    <input type="submit" value="Submit"/>
287
    <input type="hidden" name="report_name" value="[% report_name %]" />
310
    <input type="hidden" name="report_name" value="[% report_name %]" />
288
- 

Return to bug 766