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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-36 / +34 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Administration &rsaquo; Authorized values
3
<title>Koha &rsaquo; Administration &rsaquo; Authorized values
3
[% IF op == 'add_form' %]
4
[% IF op == 'add_form' %]
Lines 9-50 Link Here
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
11
11
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
12
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
12
[% INCLUDE 'datatables.inc' %]
13
<script type="text/javascript">
14
//<![CDATA[
15
 $(document).ready(function() {
16
    $("#table_authorized_values").dataTable($.extend(true, {}, dataTablesDefaults, {
17
        "aoColumnDefs": [
18
            { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
19
        ],
20
        "aaSorting": [[ 1, "asc" ]],
21
        "sPaginationType": "four_button"
22
    }));
23
24
    if ( $("#branches option:selected").length < 1 ) {
25
        $("#branches option:first").attr("selected", "selected");
26
    }
27
    $('#icons').tabs();
28
29
    $("a.delete").click(function(){
30
        return confirm(_("Are you sure you want to delete this authorized value?"));
31
    });
32
});
33
//]]>
34
</script>
35
36
[% IF op == 'list' %]
37
<script type="text/javascript">
38
//<![CDATA[
39
$(document).ready(function() {
40
    $('#category').find("input:submit").hide();
41
    $('#searchfield').change(function() {
42
        $('#category').submit();
43
    });
44
});
45
//]]>
46
</script>
47
[% END %]
48
13
49
<style type="text/css">
14
<style type="text/css">
50
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
15
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
Lines 53-58 $(document).ready(function() { Link Here
53
    fieldset.rows .ui-tabs-nav { margin-left : 10px; }
18
    fieldset.rows .ui-tabs-nav { margin-left : 10px; }
54
</style>
19
</style>
55
</head>
20
</head>
21
56
<body id="admin_authorised_values" class="admin">
22
<body id="admin_authorised_values" class="admin">
57
[% INCLUDE 'header.inc' %]
23
[% INCLUDE 'header.inc' %]
58
[% INCLUDE 'prefs-admin-search.inc' %]
24
[% INCLUDE 'prefs-admin-search.inc' %]
Lines 313-316 $(document).ready(function() { Link Here
313
[% INCLUDE 'admin-menu.inc' %]
279
[% INCLUDE 'admin-menu.inc' %]
314
</div>
280
</div>
315
</div>
281
</div>
282
283
[% MACRO jsinclude BLOCK %]
284
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
285
    [% INCLUDE 'datatables.inc' %]
286
    <script type="text/javascript">
287
        $(document).ready(function() {
288
            $("#table_authorized_values").dataTable($.extend(true, {}, dataTablesDefaults, {
289
                "aoColumnDefs": [
290
                    { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
291
                ],
292
                "aaSorting": [[ 1, "asc" ]],
293
                "sPaginationType": "four_button"
294
            }));
295
296
            if ( $("#branches option:selected").length < 1 ) {
297
                $("#branches option:first").attr("selected", "selected");
298
            }
299
            $('#icons').tabs();
300
301
            $("a.delete").click(function(){
302
                return confirm(_("Are you sure you want to delete this authorized value?"));
303
            });
304
            [% IF op == 'list' %]
305
                $('#category').find("input:submit").hide();
306
                $('#searchfield').change(function() {
307
                    $('#category').submit();
308
                });
309
            [% END %]
310
        });
311
    </script>
312
313
[% END %]
316
[% INCLUDE 'intranet-bottom.inc' %]
314
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-39 / +43 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Administration &rsaquo; Libraries and groups
3
<title>Koha &rsaquo; Administration &rsaquo; Libraries and groups
3
[% IF op == 'editcategory' %]
4
[% IF op == 'editcategory' %]
Lines 12-57 Link Here
12
</title>
13
</title>
13
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
14
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
15
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
15
[% INCLUDE 'datatables.inc' %]
16
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script>
17
<script type="text/javascript">
18
//<![CDATA[
19
    $(document).ready(function() {
20
        $("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, {
21
            "aoColumnDefs": [
22
                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
23
            ],
24
            "iDisplayLength": 10,
25
            "sPaginationType": "four_button"
26
        }));
27
28
        $("#library_entry").validate({
29
            rules: {
30
                branchcode: {
31
                    required: true,
32
                    letters_numbers: true
33
                },
34
                branchname: "required"
35
            }
36
        });
37
    });
38
tinyMCE.init({
39
    mode : "textareas",
40
    theme : "advanced",
41
    content_css : "[% interface %]/[% theme %]/css/tinymce.css",
42
    plugins : "table,save,advhr,advlink,contextmenu",
43
    theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,",
44
    theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
45
    // theme_advanced_buttons3 : "",
46
    theme_advanced_toolbar_location : "top",
47
    theme_advanced_toolbar_align : "left",
48
    theme_advanced_path_location : "bottom",
49
    theme_advanced_resizing : true,
50
    apply_source_formatting : true
51
});
52
//]]>
53
</script>
54
</head>
16
</head>
17
55
<body id="admin_branches" class="admin">
18
<body id="admin_branches" class="admin">
56
[% INCLUDE 'header.inc' %]
19
[% INCLUDE 'header.inc' %]
57
[% INCLUDE 'prefs-admin-search.inc' %]
20
[% INCLUDE 'prefs-admin-search.inc' %]
Lines 407-410 tinyMCE.init({ Link Here
407
[% INCLUDE 'admin-menu.inc' %]
370
[% INCLUDE 'admin-menu.inc' %]
408
</div>
371
</div>
409
</div>
372
</div>
373
374
[% MACRO jsinclude BLOCK %]
375
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
376
    [% INCLUDE 'datatables.inc' %]
377
    <script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script>
378
    <script type="text/javascript">
379
        $(document).ready(function() {
380
            $("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, {
381
                "aoColumnDefs": [
382
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
383
                ],
384
                "iDisplayLength": 10,
385
                "sPaginationType": "four_button"
386
            }));
387
388
            $("#library_entry").validate({
389
                rules: {
390
                    branchcode: {
391
                        required: true,
392
                        letters_numbers: true
393
                    },
394
                    branchname: "required"
395
                }
396
            });
397
        });
398
        tinyMCE.init({
399
            mode : "textareas",
400
            theme : "advanced",
401
            content_css : "[% interface %]/[% theme %]/css/tinymce.css",
402
            plugins : "table,save,advhr,advlink,contextmenu",
403
            theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,",
404
            theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
405
            // theme_advanced_buttons3 : "",
406
            theme_advanced_toolbar_location : "top",
407
            theme_advanced_toolbar_align : "left",
408
            theme_advanced_path_location : "bottom",
409
            theme_advanced_resizing : true,
410
            apply_source_formatting : true
411
        });
412
    </script>
413
[% END %]
410
[% INCLUDE 'intranet-bottom.inc' %]
414
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-28 / +31 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% USE Price %]
3
[% USE Price %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Administration &rsaquo; Item types [% IF op == 'add_form' %]&rsaquo;
6
<title>Koha &rsaquo; Administration &rsaquo; Item types [% IF op == 'add_form' %]&rsaquo;
6
  [% IF ( itemtype ) %]
7
  [% IF ( itemtype ) %]
Lines 22-54 Data deleted Link Here
22
</title>
23
</title>
23
[% INCLUDE 'doc-head-close.inc' %]
24
[% INCLUDE 'doc-head-close.inc' %]
24
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
25
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
25
[% INCLUDE 'greybox.inc' %]
26
[% INCLUDE 'datatables.inc' %]
27
<script type="text/javascript">
28
//<![CDATA[
29
     $(document).ready(function() {
30
        $('#icons').tabs();
31
        $("#table_item_type").dataTable($.extend(true, {}, dataTablesDefaults, {
32
            "aoColumnDefs": [
33
                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
34
            ],
35
            "aaSorting": [[ 2, "asc" ]],
36
            "iDisplayLength": 10,
37
            "sPaginationType": "four_button"
38
        }));
39
        $( "#itemtypeentry" ).validate({
40
            rules: {
41
                itemtype: { required: true },
42
                description: { required: true },
43
                rentalcharge: { number: true }
44
            }
45
        });
46
        $("#itemtype").on("blur",function(){
47
            toUC(this);
48
        });
49
     });
50
//]]>
51
</script>
52
<style type="text/css">
26
<style type="text/css">
53
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
27
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
54
  fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-active {background-color : #F4F8F9; }
28
  fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-active {background-color : #F4F8F9; }
Lines 56-61 Data deleted Link Here
56
  fieldset.rows .ui-tabs-nav { margin-left : 10px; }
30
  fieldset.rows .ui-tabs-nav { margin-left : 10px; }
57
</style>
31
</style>
58
</head>
32
</head>
33
59
<body id="admin_itemtypes" class="admin">
34
<body id="admin_itemtypes" class="admin">
60
[% INCLUDE 'header.inc' %]
35
[% INCLUDE 'header.inc' %]
61
[% INCLUDE 'prefs-admin-search.inc' %]
36
[% INCLUDE 'prefs-admin-search.inc' %]
Lines 418-421 Item types administration Link Here
418
[% INCLUDE 'admin-menu.inc' %]
393
[% INCLUDE 'admin-menu.inc' %]
419
</div>
394
</div>
420
</div>
395
</div>
396
397
[% MACRO jsinclude BLOCK %]
398
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
399
    [% INCLUDE 'greybox.inc' %]
400
    [% INCLUDE 'datatables.inc' %]
401
    <script type="text/javascript">
402
         $(document).ready(function() {
403
            $('#icons').tabs();
404
            $("#table_item_type").dataTable($.extend(true, {}, dataTablesDefaults, {
405
                "aoColumnDefs": [
406
                    { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
407
                ],
408
                "aaSorting": [[ 2, "asc" ]],
409
                "iDisplayLength": 10,
410
                "sPaginationType": "four_button"
411
            }));
412
            $( "#itemtypeentry" ).validate({
413
                rules: {
414
                    itemtype: { required: true },
415
                    description: { required: true },
416
                    rentalcharge: { number: true }
417
                }
418
            });
419
            $("#itemtype").on("blur",function(){
420
                toUC(this);
421
            });
422
         });
423
    </script>
424
[% END %]
421
[% INCLUDE 'intranet-bottom.inc' %]
425
[% INCLUDE 'intranet-bottom.inc' %]
422
- 

Return to bug 19607