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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-2 / +5 lines)
Lines 10-20 Link Here
10
    [% INCLUDE 'doc-head-open.inc' %]
10
    [% INCLUDE 'doc-head-open.inc' %]
11
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
11
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
12
    [% INCLUDE 'doc-head-close.inc' %]
12
    [% INCLUDE 'doc-head-close.inc' %]
13
    <script type="text/JavaScript" language="JavaScript">
13
    <script type="text/JavaScript">
14
        //<![CDATA[
14
        //<![CDATA[
15
            $(document).ready(function() {
15
            $(document).ready(function() {
16
                $("input[name='layout_choice']").change( function() { layout_method() } );
16
                $("input[name='layout_choice']").change( function() { layout_method() } );
17
                layout_method();
17
                layout_method();
18
                $("#font").on("change",function(){
19
                     checkOblique();
20
                });
18
            });
21
            });
19
            function layout_method() {
22
            function layout_method() {
20
                if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
23
                if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
Lines 173-179 Link Here
173
                                </li>
176
                                </li>
174
                                <li>
177
                                <li>
175
                                    <label for="font">Font: </label>
178
                                    <label for="font">Font: </label>
176
                                    <select name="font" id="font" onchange="checkOblique()">
179
                                    <select name="font" id="font">
177
                                        [% FOREACH font_type IN font_types %]
180
                                        [% FOREACH font_type IN font_types %]
178
                                        [% IF ( font_type.selected ) %]
181
                                        [% IF ( font_type.selected ) %]
179
                                        <option value="[% font_type.type %]" selected="selected">[% font_type.name %]</option>
182
                                        <option value="[% font_type.type %]" selected="selected">[% font_type.name %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt (-13 / +8 lines)
Lines 5-11 Link Here
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'calendar.inc' %]
6
[% INCLUDE 'calendar.inc' %]
7
<script type="text/javascript">
7
<script type="text/javascript">
8
// <![CDATA[
8
    $(document).ready(function(){
9
        $("#delete_patrons_form").on("submit",function(){
10
            return checkForm( this );
11
        });
12
    });
9
        /**
13
        /**
10
         *  checkForm(form)
14
         *  checkForm(form)
11
         *  This function check the form is correctly filled.
15
         *  This function check the form is correctly filled.
Lines 19-25 Link Here
19
              }
23
              }
20
              if((form.checkbox[1].checked)){
24
              if((form.checkbox[1].checked)){
21
                  if(!(form.date2.value)){
25
                  if(!(form.date2.value)){
22
                      alert(_("please enter a date!"));
26
                      alert(_("Please enter a date!"));
23
                      return false;
27
                      return false;
24
                  }
28
                  }
25
              }
29
              }
Lines 29-43 Link Here
29
              }
33
              }
30
              return true;
34
              return true;
31
          }
35
          }
32
33
        /**
34
         *  checkForm2(form)
35
         *  This function check the form2 is correctly filled.
36
         */
37
          function checkForm2(form) {
38
              return true;
39
          }
40
     // ]]>
41
</script>
36
</script>
42
37
43
</head>
38
</head>
Lines 60-66 Link Here
60
[% IF step == 1 %]
55
[% IF step == 1 %]
61
<!-- step 1 START -->
56
<!-- step 1 START -->
62
<div id="step1">
57
<div id="step1">
63
    <form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
58
    <form name="f1" id="delete_patrons_form" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
64
    <fieldset>
59
    <fieldset>
65
    <legend>Delete patrons</legend>
60
    <legend>Delete patrons</legend>
66
        <h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3>
61
        <h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3>
Lines 129-135 Link Here
129
[% IF step == 2 %]
124
[% IF step == 2 %]
130
<!-- STEP 2 START -->
125
<!-- STEP 2 START -->
131
<div id="step2">
126
<div id="step2">
132
        <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post" onsubmit="return checkForm2(this);">
127
        <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
133
    <fieldset>
128
    <fieldset>
134
        <legend>Warnings</legend>
129
        <legend>Warnings</legend>
135
        <ul>
130
        <ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-3 / +6 lines)
Lines 86-91 $(document).ready(function(){ Link Here
86
            $(".checkboxed").unCheckCheckboxes();
86
            $(".checkboxed").unCheckCheckboxes();
87
            return false;
87
            return false;
88
        });
88
        });
89
    $("#inventory_form").on("submit",function(){
90
        return checkForm();
91
    });
89
});
92
});
90
//]]>
93
//]]>
91
</script>
94
</script>
Lines 120-126 $(document).ready(function(){ Link Here
120
    [% END %]
123
    [% END %]
121
       [% UNLESS op %]
124
       [% UNLESS op %]
122
    <div class="yui-g">
125
    <div class="yui-g">
123
    <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data" onsubmit="return checkForm()">
126
    <form method="post" id="inventory_form" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
124
        <fieldset class="rows">
127
        <fieldset class="rows">
125
            <legend>Use a barcode file</legend>
128
            <legend>Use a barcode file</legend>
126
     <ol>
129
     <ol>
Lines 237-243 $(document).ready(function(){ Link Here
237
    <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
240
    <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
238
241
239
    [% UNLESS compareinv2barcd %]
242
    [% UNLESS compareinv2barcd %]
240
      <div><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
243
      <div><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div>
241
    [% END %]
244
    [% END %]
242
245
243
    <table id="inventoryt">
246
    <table id="inventoryt">
Lines 305-311 $(document).ready(function(){ Link Here
305
    </table>
308
    </table>
306
    <div class="spacer"></div>
309
    <div class="spacer"></div>
307
    [% UNLESS compareinv2barcd %]
310
    [% UNLESS compareinv2barcd %]
308
      <div style="padding : .3em 0"><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
311
      <div style="padding : .3em 0"><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div>
309
      <input type="submit" id="markseenandquit" value="Mark seen and quit" />
312
      <input type="submit" id="markseenandquit" value="Mark seen and quit" />
310
      <input type="submit" value="Mark seen and continue &gt;&gt;" id="markseenandcontinuebutton" />
313
      <input type="submit" value="Mark seen and continue &gt;&gt;" id="markseenandcontinuebutton" />
311
      <input type="submit" value="Continue without marking &gt;&gt;" id="continuewithoutmarkingbutton" class="submit" />
314
      <input type="submit" value="Continue without marking &gt;&gt;" id="continuewithoutmarkingbutton" class="submit" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-1 / +10 lines)
Lines 27-32 $(document).ready(function() { Link Here
27
      });
27
      });
28
    [% END %]
28
    [% END %]
29
29
30
    $("#newmodule").on("change",function(){
31
        if( $("#branch").val() == ""){
32
            var branchcode = "*";
33
        } else {
34
            var branchcode = $("#branch").val();
35
        }
36
        window.location.href = "/cgi-bin/koha/tools/letter.pl?op=add_form&module=" + $(this).val() + "&branchcode=" + branchcode;
37
    });
38
30
    $("#submit_form").click( function(event) {
39
    $("#submit_form").click( function(event) {
31
        event.preventDefault();
40
        event.preventDefault();
32
        var at_least_one_exists = 0;
41
        var at_least_one_exists = 0;
Lines 295-301 $(document).ready(function() { Link Here
295
				<label for="module">Koha module:</label>
304
				<label for="module">Koha module:</label>
296
				<input type="hidden" name="oldmodule" value="[% module %]" />
305
				<input type="hidden" name="oldmodule" value="[% module %]" />
297
                [% IF adding  %]
306
                [% IF adding  %]
298
                  <select name="module" id="module" onchange="javascript:window.location.href = unescape(window.location.pathname)+'?op=add_form&amp;module='+this.value+'&amp;content='+window.document.forms['Aform'].elements['content'].value;">
307
                  <select name="module" id="newmodule">
299
                [% ELSE %]
308
                [% ELSE %]
300
                  <select name="module" id="module">
309
                  <select name="module" id="module">
301
                [% END %]
310
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-2 / +5 lines)
Lines 138-144 Link Here
138
[% BLOCK newsearch %]
138
[% BLOCK newsearch %]
139
    <form id="newsearch">
139
    <form id="newsearch">
140
        <fieldset class="action">
140
        <fieldset class="action">
141
            <button onclick="SubmitMe('new'); return false;">New search</button>
141
            <button id="new_search">New search</button>
142
        </fieldset>
142
        </fieldset>
143
    </form>
143
    </form>
144
    [% IF plugin %]
144
    [% IF plugin %]
Lines 337-342 $(document).ready(function() { Link Here
337
        var record_id = $(this).data("record-id");
337
        var record_id = $(this).data("record-id");
338
        DeleteEntry( record_id );
338
        DeleteEntry( record_id );
339
    });
339
    });
340
    $("#new_search").on("click",function(e){
341
        e.preventDefault();
342
        SubmitMe('new');
343
    });
340
});
344
});
341
//]]>
345
//]]>
342
</script>
346
</script>
343
- 

Return to bug 17083