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 345-429 canned reports and writing custom SQL reports.</p> Link Here
345
                <div id="note-error" class="alert alert-danger" role="alert">
345
                <div id="note-error" class="alert alert-danger" role="alert">
346
                    Please enter a report name and descriptive note before sharing (minimum 20 characters)
346
                    Please enter a report name and descriptive note before sharing (minimum 20 characters)
347
                </div>
347
                </div>
348
                [% IF ( languages_loop ) %]
348
                <div class="shared_infos rows">
349
                    [% UNLESS ( one_language_enabled ) %]
349
                    <li><span class="label">Id: </span><div id="shared_id"></div></li>
350
                        <div class="shared_infos rows">
350
                    <li><span class="label">Name: </span><div id="shared_name"></div></li>
351
                                <li> <span class="label">Id: </span><div id="shared_id"></div>
351
                    <li><span class="label">SQL: </span><div id="shared_sql"></div></li>
352
                                </li>
352
                    <li><span class="label">Group: </span><div id="shared_group"></div></li>
353
                                <li> <span class="label">Name: </span><div id="shared_name"></div>
353
                    <li><span class="label">Type: </span><div id="shared_type"></div></li>
354
                                </li>
354
                    <li><span class="label">Notes: </span><div id="shared_notes"></div></li>
355
                                <li> <span class="label">SQL: </span><div id="shared_sql"></div>
355
                </div>
356
                                </li>
356
                <div class="rows">
357
                                <li> <span class="label">Group: </span><div id="shared_group"></div>
357
                    <form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" >
358
                                </li>
358
                        <input type="hidden" name="phase" value="Share">
359
                                <li> <span class="label">Type: </span><div id="shared_type"></div>
359
360
                                </li>
360
                        [% IF (languages_loop) %]
361
                                <li> <span class="label">Notes: </span><div id="shared_notes"></div>
361
                            <fieldset class="shared_infos">
362
                                </li>
362
                                <label for="mana_language">Language:</label>
363
363
                                <select id="mana_language" name="mana_language">
364
                        </div>
364
                                    [% FOREACH languages_loo IN languages_loop %]
365
                        <div class="rows">
365
                                        [% IF ( languages_loo.group_enabled ) %]
366
                            <form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" >
366
                                            [% IF ( languages_loo.plural ) %]
367
                                <input type="hidden" name="phase" value="Share">
367
                                                [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
368
368
                                                    [% IF ( sublanguages_loo.enabled ) %]
369
                                <fieldset class="shared_infos">
369
                                                        [% IF ( sublanguages_loo.sublanguage_current ) %]
370
                                    <label for="mana_language">Language:</label>
371
                                    <select id="mana_language" name="mana_language">
372
                                        [% FOREACH languages_loo IN languages_loop %]
373
                                            [% IF ( languages_loo.group_enabled ) %]
374
                                                [% IF ( languages_loo.plural ) %]
375
                                                    [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
376
                                                        [% IF ( sublanguages_loo.enabled ) %]
377
                                                            [% IF ( sublanguages_loo.sublanguage_current ) %]
378
                                                                <option value="[% languages_loo.rfc4646_subtag %]" selected>
379
                                                                    [% sublanguages_loo.native_description %]
380
                                                                    [% sublanguages_loo.script_description %]
381
                                                                    [% sublanguages_loo.region_description %]
382
383
                                                                    [% sublanguages_loo.variant_description %]
384
                                                                    ([% sublanguages_loo.rfc4646_subtag %])
385
                                                                </option>
386
                                                            [% ELSE %]
387
                                                                <option value="[% languages_loo.rfc4646_subtag %]">
388
                                                                    [% sublanguages_loo.native_description %]
389
                                                                    [% sublanguages_loo.script_description %]
390
                                                                    [% sublanguages_loo.region_description %]
391
                                                                    [% sublanguages_loo.variant_description %]
392
                                                                    ([% sublanguages_loo.rfc4646_subtag %])
393
                                                                </option>
394
                                                            [% END %]
395
                                                        [% END %]
396
                                                    [% END %]
397
                                                [% ELSE %]
398
                                                    [% IF ( languages_loo.group_enabled ) %]
399
                                                        [% IF ( languages_loo.current ) %]
400
                                                            <option value="[% languages_loo.rfc4646_subtag %]" selected>
370
                                                            <option value="[% languages_loo.rfc4646_subtag %]" selected>
401
                                                                [% IF ( languages_loo.native_description ) %]
371
                                                                [% sublanguages_loo.native_description %]
402
                                                                    [% languages_loo.native_description %]
372
                                                                [% sublanguages_loo.script_description %]
403
                                                                [% ELSE %]
373
                                                                [% sublanguages_loo.region_description %]
404
                                                                    [% languages_loo.rfc4646_subtag %]
374
405
                                                                [% END %]
375
                                                                [% sublanguages_loo.variant_description %]
376
                                                                ([% sublanguages_loo.rfc4646_subtag %])
406
                                                            </option>
377
                                                            </option>
407
                                                        [% ELSE %]
378
                                                        [% ELSE %]
408
                                                            <option value="[% languages_loo.rfc4646_subtag %]">
379
                                                            <option value="[% languages_loo.rfc4646_subtag %]">
409
                                                                [% IF ( languages_loo.native_description ) %]
380
                                                                [% sublanguages_loo.native_description %]
410
                                                                    [% languages_loo.native_description %]
381
                                                                [% sublanguages_loo.script_description %]
411
                                                                [% ELSE %]
382
                                                                [% sublanguages_loo.region_description %]
412
                                                                    [% languages_loo.rfc4646_subtag %]
383
                                                                [% sublanguages_loo.variant_description %]
413
                                                                [% END %]
384
                                                                ([% sublanguages_loo.rfc4646_subtag %])
414
                                                            </option>
385
                                                            </option>
415
                                                        [% END %]
386
                                                        [% END %]
416
                                                    [% END %]
387
                                                    [% END %]
417
                                                [% END %]
388
                                                [% END %]
389
                                            [% ELSE %]
390
                                                [% IF ( languages_loo.group_enabled ) %]
391
                                                    [% IF ( languages_loo.current ) %]
392
                                                        <option value="[% languages_loo.rfc4646_subtag %]" selected>
393
                                                            [% IF ( languages_loo.native_description ) %]
394
                                                                [% languages_loo.native_description %]
395
                                                            [% ELSE %]
396
                                                                [% languages_loo.rfc4646_subtag %]
397
                                                            [% END %]
398
                                                        </option>
399
                                                    [% ELSE %]
400
                                                        <option value="[% languages_loo.rfc4646_subtag %]">
401
                                                            [% IF ( languages_loo.native_description ) %]
402
                                                                [% languages_loo.native_description %]
403
                                                            [% ELSE %]
404
                                                                [% languages_loo.rfc4646_subtag %]
405
                                                            [% END %]
406
                                                        </option>
407
                                                    [% END %]
408
                                                [% END %]
418
                                            [% END %]
409
                                            [% END %]
419
                                        [% END %]
410
                                        [% END %]
420
                                    </select>
411
                                    [% END %]
421
                                    <input type="hidden" id="reportid" name="reportid" value="[% savedreport.id %]"/>
412
                                </select>
422
                                </fieldset>
413
                            </fieldset>
423
                            </form>
414
                        [% ELSE %]
424
                        </div>
415
                            <input type="hidden" name="mana_language" value="[% lang %]">
425
                    [% END %]
416
                        [% END %]
426
                [% END %]
417
                        <input type="hidden" id="reportid" name="reportid"/>
418
                    </form>
419
                </div>
427
            </div>
420
            </div>
428
            <div class="modal-footer">
421
            <div class="modal-footer">
429
                <button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button>
422
                <button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button>
Lines 1126-1131 $(document).ready(function() { Link Here
1126
                    $("#note-error").show();
1119
                    $("#note-error").show();
1127
                }
1120
                }
1128
                else{
1121
                else{
1122
                    $("#reportid").val($(this).closest("tr").find(".report_id").text());
1129
                    $("#shared_id").html($(this).closest("tr").find(".report_id").text());
1123
                    $("#shared_id").html($(this).closest("tr").find(".report_id").text());
1130
                    $("#shared_name").html($(this).closest("tr").find(".report_name").text());
1124
                    $("#shared_name").html($(this).closest("tr").find(".report_name").text());
1131
                    $("#shared_sql").html($(this).closest("tr").find(".report_sql").val());
1125
                    $("#shared_sql").html($(this).closest("tr").find(".report_sql").val());
1132
- 

Return to bug 17047