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

Return to bug 17047