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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-22 / +28 lines)
Lines 16-41 Link Here
16
16
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Serial collection information for  <i>[% bibliotitle | html %]</i></div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Serial collection information for  <i>[% bibliotitle | html %]</i></div>
18
18
19
[% IF ( delete ) %]
20
 <div class="yui-g">
21
 <div id="circ_needsconfirmation" class="dialog alert">
22
   <h3>Are you sure delete <b> [% serialnumber %] </b> selected serials</h3>
23
   <form action="/cgi-bin/koha/serials/serials-collection.pl/#">
24
           <h5>Delete associated items <input type="radio" name="delitems" value="Yes">Yes
25
           <input type="radio" name="delitems" value="No" checked>No</h5>
26
           <h5>Number of items available <b>: [% countitems %] </b> </h5>
27
           <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
28
           <input type="hidden" name="serialsid" value="[% serialsid %]" />
29
           <input type="hidden" name="confdelete" value="1" />
30
           <input type="submit" class="approve" value="Yes, delete"/>
31
       </form>
32
       <form action="/cgi-bin/koha/serials/serials-collection.pl/#">
33
           <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
34
           <input type="submit" class="deny" value="No, don't delete"/>
35
       </form>
36
   </div>
37
 </div>
38
 [% END %]
39
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
40
   
20
   
41
   <div id="bd">
21
   <div id="bd">
Lines 52-57 Link Here
52
		[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1>
32
		[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1>
53
[% END %]
33
[% END %]
54
34
35
[% IF ( delete ) %]
36
    <div class="dialog alert">
37
        <h3>Are you sure you want to delete? <b>[% serialnumber %]</b> serial(s) will be deleted</h3>
38
        <form action="/cgi-bin/koha/serials/serials-collection.pl/#">
39
            <h5>Number of items available: <b>[% countitems %]</b></h5>
40
            <p>
41
              <label>Delete associated items? <input type="checkbox" name="delitems" value="Yes" />Yes</label>
42
            </p>
43
44
            <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
45
            <input type="hidden" name="serialsid" value="[% serialsid %]" />
46
            <input type="hidden" name="confdelete" value="1" />
47
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
48
        </form>
49
        <form action="/cgi-bin/koha/serials/serials-collection.pl/#">
50
            <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
51
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
52
        </form>
53
    </div>
54
[% END %]
55
55
[% IF ( subscriptions ) %]
56
[% IF ( subscriptions ) %]
56
<table>
57
<table>
57
[% IF ( subscriptions.size == 1 ) %]
58
[% IF ( subscriptions.size == 1 ) %]
Lines 141-147 Link Here
141
                    <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
142
                    <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
142
                [% END %]
143
                [% END %]
143
            [% END %]
144
            [% END %]
144
            <input type="button" value="Delete selected issues" onclick="javascript:deleteIssues([% subscriptionidlist %])"/>
145
            <input type="button" value="Delete selected issues" class="delete-issues" data-subscriptionids="[% subscriptionidlist %]" />
145
        </p>
146
        </p>
146
    [% END %]
147
    [% END %]
147
      <span class="checkall">
148
      <span class="checkall">
Lines 403-408 Link Here
403
                }
404
                }
404
                return 1;
405
                return 1;
405
            });
406
            });
407
408
            $(".delete-issues").on("click", function(e){
409
                e.preventDefault();
410
                var subscriptionids = "[% subscriptionidlist %]";
411
                deleteIssues( subscriptionids );
412
            });
406
        });
413
        });
407
414
408
    </script>
415
    </script>
409
- 

Return to bug 17674