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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-2 / +28 lines)
Lines 118-124 Item types administration Link Here
118
                    <label for="description" class="required">Description: </label>
118
                    <label for="description" class="required">Description: </label>
119
                    <input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span>
119
                    <input type="text" id="description" name="description" size="48" value="[% itemtype.description | html %]" required="required" /> <span class="required">Required</span>
120
                    [% IF can_be_translated %]
120
                    [% IF can_be_translated %]
121
                        <a href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype | uri %]" title="Translate item type [% itemtype.itemtype | html %]" rel="gb_page_center[600,500]"><i class="fa fa-pencil"></i> Translate into other languages</a>
121
                        <a id="translate_itemtype" href="/cgi-bin/koha/admin/localization.pl?entity=itemtypes&code=[% itemtype.itemtype | uri %]" title="Translate item type [% itemtype.itemtype | html %]"><i class="fa fa-pencil"></i> Translate into other languages</a>
122
                    [% END %]
122
                    [% END %]
123
                </li>
123
                </li>
124
                <li>
124
                <li>
Lines 454-462 Item types administration Link Here
454
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
454
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
455
     </div> <!-- /.row -->
455
     </div> <!-- /.row -->
456
456
457
<!-- Modal -->
458
<div class="modal" id="translateModal" tabindex="-1" role="dialog" aria-labelledby="translateModalLabel">
459
    <div class="modal-dialog" role="document">
460
        <div class="modal-content">
461
            <div class="modal-header">
462
                <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
463
                <h4 class="modal-title" id="translateModalLabel">Item type translation</h4>
464
            </div>
465
            <div class="modal-body">
466
                <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
467
            </div>
468
            <div class="modal-footer">
469
                <button type="button" class="btn btn-default deny" data-dismiss="modal">Done</button>
470
            </div>
471
        </div> <!-- /.modal-content -->
472
    </div> <!-- /.modal-dialog -->
473
</div> <!-- /#translateModal -->
474
457
[% MACRO jsinclude BLOCK %]
475
[% MACRO jsinclude BLOCK %]
458
    [% Asset.js("js/admin-menu.js") | $raw %]
476
    [% Asset.js("js/admin-menu.js") | $raw %]
459
    [% INCLUDE 'greybox.inc' %]
460
    [% INCLUDE 'datatables.inc' %]
477
    [% INCLUDE 'datatables.inc' %]
461
    <script>
478
    <script>
462
         $(document).ready(function() {
479
         $(document).ready(function() {
Lines 480-485 Item types administration Link Here
480
                toUC(this);
497
                toUC(this);
481
            });
498
            });
482
            $(".library_limitation").tooltip();
499
            $(".library_limitation").tooltip();
500
501
            $("#translate_itemtype").on("click", function(e){
502
                e.preventDefault();
503
                $("#translateModal .modal-body").load( $(this).attr("href") );
504
                $("#translateModal").modal("show");
505
            });
506
            $("#translateModal").on("hidden.bs.modal", function(){
507
                $("#translateModal .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
508
            });
483
         });
509
         });
484
    </script>
510
    </script>
485
[% END %]
511
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt (-2 / +3 lines)
Lines 11-17 Link Here
11
    <div class="container-fluid">
11
    <div class="container-fluid">
12
        <div class="row">
12
        <div class="row">
13
            <div class="col-sm-12">
13
            <div class="col-sm-12">
14
<form id="add_translation" method="post">
14
<form id="add_translation" method="post" action="/cgi-bin/koha/admin/localization.pl">
15
    <input type="hidden" name="entity" value="[% entity | html %]" />
15
    <input type="hidden" name="entity" value="[% entity | html %]" />
16
    <input type="hidden" name="code" value="[% code | html %]" />
16
    <input type="hidden" name="code" value="[% code | html %]" />
17
    <input type="hidden" name="interface" value="[% interface_side | html %]" />
17
    <input type="hidden" name="interface" value="[% interface_side | html %]" />
Lines 57-62 Link Here
57
57
58
        <div class="row">
58
        <div class="row">
59
            <div class="col-sm-12">
59
            <div class="col-sm-12">
60
[% IF ( translations ) %]
60
<table id="localization">
61
<table id="localization">
61
    <thead>
62
    <thead>
62
        <tr>
63
        <tr>
Lines 81-86 Link Here
81
        [% END %]
82
        [% END %]
82
    </tbody>
83
    </tbody>
83
</table>
84
</table>
85
[% END %]
84
            </div> <!-- /.col-sm-12 -->
86
            </div> <!-- /.col-sm-12 -->
85
        </div> <!-- /.row -->
87
        </div> <!-- /.row -->
86
    </div> <!-- /.container-fluid -->
88
    </div> <!-- /.container-fluid -->
87
- 

Return to bug 22882