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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-70 / +63 lines)
Lines 355-439 canned reports and writing custom SQL reports.</p> Link Here
355
                <div id="note-error" class="alert alert-danger" role="alert">
355
                <div id="note-error" class="alert alert-danger" role="alert">
356
                    Please enter a report name and descriptive note before sharing (minimum 20 characters)
356
                    Please enter a report name and descriptive note before sharing (minimum 20 characters)
357
                </div>
357
                </div>
358
                [% IF ( languages_loop ) %]
358
                <div class="shared_infos rows">
359
                    [% UNLESS ( one_language_enabled ) %]
359
                    <li><span class="label">Id: </span><div id="shared_id"></div></li>
360
                        <div class="shared_infos rows">
360
                    <li><span class="label">Name: </span><div id="shared_name"></div></li>
361
                                <li> <span class="label">Id: </span><div id="shared_id"></div>
361
                    <li><span class="label">SQL: </span><div id="shared_sql"></div></li>
362
                                </li>
362
                    <li><span class="label">Group: </span><div id="shared_group"></div></li>
363
                                <li> <span class="label">Name: </span><div id="shared_name"></div>
363
                    <li><span class="label">Type: </span><div id="shared_type"></div></li>
364
                                </li>
364
                    <li><span class="label">Notes: </span><div id="shared_notes"></div></li>
365
                                <li> <span class="label">SQL: </span><div id="shared_sql"></div>
365
                </div>
366
                                </li>
366
                <div class="rows">
367
                                <li> <span class="label">Group: </span><div id="shared_group"></div>
367
                    <form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" >
368
                                </li>
368
                        <input type="hidden" name="phase" value="Share">
369
                                <li> <span class="label">Type: </span><div id="shared_type"></div>
369
370
                                </li>
370
                        [% IF (languages_loop) %]
371
                                <li> <span class="label">Notes: </span><div id="shared_notes"></div>
371
                            <fieldset class="shared_infos">
372
                                </li>
372
                                <label for="mana_language">Language:</label>
373
373
                                <select id="mana_language" name="mana_language">
374
                        </div>
374
                                    [% FOREACH languages_loo IN languages_loop %]
375
                        <div class="rows">
375
                                        [% IF ( languages_loo.group_enabled ) %]
376
                            <form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" >
376
                                            [% IF ( languages_loo.plural ) %]
377
                                <input type="hidden" name="phase" value="Share">
377
                                                [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
378
378
                                                    [% IF ( sublanguages_loo.enabled ) %]
379
                                <fieldset class="shared_infos">
379
                                                        [% IF ( sublanguages_loo.sublanguage_current ) %]
380
                                    <label for="mana_language">Language:</label>
381
                                    <select id="mana_language" name="mana_language">
382
                                        [% FOREACH languages_loo IN languages_loop %]
383
                                            [% IF ( languages_loo.group_enabled ) %]
384
                                                [% IF ( languages_loo.plural ) %]
385
                                                    [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
386
                                                        [% IF ( sublanguages_loo.enabled ) %]
387
                                                            [% IF ( sublanguages_loo.sublanguage_current ) %]
388
                                                                <option value="[% languages_loo.rfc4646_subtag %]" selected>
389
                                                                    [% sublanguages_loo.native_description %]
390
                                                                    [% sublanguages_loo.script_description %]
391
                                                                    [% sublanguages_loo.region_description %]
392
393
                                                                    [% sublanguages_loo.variant_description %]
394
                                                                    ([% sublanguages_loo.rfc4646_subtag %])
395
                                                                </option>
396
                                                            [% ELSE %]
397
                                                                <option value="[% languages_loo.rfc4646_subtag %]">
398
                                                                    [% sublanguages_loo.native_description %]
399
                                                                    [% sublanguages_loo.script_description %]
400
                                                                    [% sublanguages_loo.region_description %]
401
                                                                    [% sublanguages_loo.variant_description %]
402
                                                                    ([% sublanguages_loo.rfc4646_subtag %])
403
                                                                </option>
404
                                                            [% END %]
405
                                                        [% END %]
406
                                                    [% END %]
407
                                                [% ELSE %]
408
                                                    [% IF ( languages_loo.group_enabled ) %]
409
                                                        [% IF ( languages_loo.current ) %]
410
                                                            <option value="[% languages_loo.rfc4646_subtag %]" selected>
380
                                                            <option value="[% languages_loo.rfc4646_subtag %]" selected>
411
                                                                [% IF ( languages_loo.native_description ) %]
381
                                                                [% sublanguages_loo.native_description %]
412
                                                                    [% languages_loo.native_description %]
382
                                                                [% sublanguages_loo.script_description %]
413
                                                                [% ELSE %]
383
                                                                [% sublanguages_loo.region_description %]
414
                                                                    [% languages_loo.rfc4646_subtag %]
384
415
                                                                [% END %]
385
                                                                [% sublanguages_loo.variant_description %]
386
                                                                ([% sublanguages_loo.rfc4646_subtag %])
416
                                                            </option>
387
                                                            </option>
417
                                                        [% ELSE %]
388
                                                        [% ELSE %]
418
                                                            <option value="[% languages_loo.rfc4646_subtag %]">
389
                                                            <option value="[% languages_loo.rfc4646_subtag %]">
419
                                                                [% IF ( languages_loo.native_description ) %]
390
                                                                [% sublanguages_loo.native_description %]
420
                                                                    [% languages_loo.native_description %]
391
                                                                [% sublanguages_loo.script_description %]
421
                                                                [% ELSE %]
392
                                                                [% sublanguages_loo.region_description %]
422
                                                                    [% languages_loo.rfc4646_subtag %]
393
                                                                [% sublanguages_loo.variant_description %]
423
                                                                [% END %]
394
                                                                ([% sublanguages_loo.rfc4646_subtag %])
424
                                                            </option>
395
                                                            </option>
425
                                                        [% END %]
396
                                                        [% END %]
426
                                                    [% END %]
397
                                                    [% END %]
427
                                                [% END %]
398
                                                [% END %]
399
                                            [% ELSE %]
400
                                                [% IF ( languages_loo.group_enabled ) %]
401
                                                    [% IF ( languages_loo.current ) %]
402
                                                        <option value="[% languages_loo.rfc4646_subtag %]" selected>
403
                                                            [% IF ( languages_loo.native_description ) %]
404
                                                                [% languages_loo.native_description %]
405
                                                            [% ELSE %]
406
                                                                [% languages_loo.rfc4646_subtag %]
407
                                                            [% END %]
408
                                                        </option>
409
                                                    [% ELSE %]
410
                                                        <option value="[% languages_loo.rfc4646_subtag %]">
411
                                                            [% IF ( languages_loo.native_description ) %]
412
                                                                [% languages_loo.native_description %]
413
                                                            [% ELSE %]
414
                                                                [% languages_loo.rfc4646_subtag %]
415
                                                            [% END %]
416
                                                        </option>
417
                                                    [% END %]
418
                                                [% END %]
428
                                            [% END %]
419
                                            [% END %]
429
                                        [% END %]
420
                                        [% END %]
430
                                    </select>
421
                                    [% END %]
431
                                    <input type="hidden" id="reportid" name="reportid" value="[% savedreport.id %]"/>
422
                                </select>
432
                                </fieldset>
423
                            </fieldset>
433
                            </form>
424
                        [% ELSE %]
434
                        </div>
425
                            <input type="hidden" name="mana_language" value="[% lang %]">
435
                    [% END %]
426
                        [% END %]
436
                [% END %]
427
                        <input type="hidden" id="reportid" name="reportid"/>
428
                    </form>
429
                </div>
437
            </div>
430
            </div>
438
            <div class="modal-footer">
431
            <div class="modal-footer">
439
                <button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button>
432
                <button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button>
Lines 1288-1293 canned reports and writing custom SQL reports.</p> Link Here
1288
                    $("#note-error").show();
1281
                    $("#note-error").show();
1289
                }
1282
                }
1290
                else{
1283
                else{
1284
                    $("#reportid").val($(this).closest("tr").find(".report_id").text());
1291
                    $("#shared_id").html($(this).closest("tr").find(".report_id").text());
1285
                    $("#shared_id").html($(this).closest("tr").find(".report_id").text());
1292
                    $("#shared_name").html($(this).closest("tr").find(".report_name").text());
1286
                    $("#shared_name").html($(this).closest("tr").find(".report_name").text());
1293
                    $("#shared_sql").html($(this).closest("tr").find(".report_sql").val());
1287
                    $("#shared_sql").html($(this).closest("tr").find(".report_sql").val());
1294
- 

Return to bug 17047