| 
      
            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">×</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 %]  |