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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/generate_next.inc (+21 lines)
Line 0 Link Here
1
<div id="generate_next" class="modal" tabindex="-1" role="dialog" aria-labelledby="generate_next" aria-hidden="true">
2
    <div class="modal-dialog">
3
        <div class="modal-content">
4
            <form action="/cgi-bin/koha/serials/serials-collection.pl" method="post">
5
                [% INCLUDE 'csrf-token.inc' %]
6
                <div class="modal-body">
7
                    <fieldset class="rows">
8
                        <legend>Do you really want to generate next serial?</legend>
9
                        <input type="hidden" name="op" value="cud-gennext" />
10
                        <input type="hidden" name="subscriptionid" value="[% subscriptionidlist || subscriptionid | html %]" />
11
                    </fieldset>
12
                </div>
13
14
                <div class="modal-footer">
15
                    <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
16
                    <input type="submit" class="btn btn-default approve" value="Yes" />
17
                </div>
18
            </form>
19
        </div>
20
    </div>
21
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-8 / +4 lines)
Lines 39-44 Link Here
39
39
40
                [% INCLUDE 'modals/serials_skip_issues.inc' %]
40
                [% INCLUDE 'modals/serials_skip_issues.inc' %]
41
41
42
                [% INCLUDE 'modals/generate_next.inc' %]
43
44
42
                [% UNLESS ( popup ) %]
45
                [% UNLESS ( popup ) %]
43
                    [% INCLUDE 'serials-toolbar.inc' %]
46
                    [% INCLUDE 'serials-toolbar.inc' %]
44
47
Lines 182-188 Link Here
182
                                                <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-primary btn-sm" /></div>
185
                                                <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-primary btn-sm" /></div>
183
                                                [% UNLESS subscription.closed %]
186
                                                [% UNLESS subscription.closed %]
184
                                                    <div class="btn-group">
187
                                                    <div class="btn-group">
185
                                                        <input type="button" value="Generate next" data-subscriptionid="[% subscriptionidlist | html %]" class="btn btn-default btn-sm generatenext" />
188
                                                        <input type="button" value="Generate next" data-subscriptionid="[% subscriptionidlist | html %]" href="#generate_next" class="btn btn-default btn-sm" data-toggle="modal" />
186
                                                    </div>
189
                                                    </div>
187
                                                    <div class="btn-group">
190
                                                    <div class="btn-group">
188
                                                        <input type="button" value="Skip issues and generate next" data-subscriptionid="[% subscriptionidlist | html %]"  href="#skip_issues" class="btn btn-default btn-sm" data-toggle="modal" />
191
                                                        <input type="button" value="Skip issues and generate next" data-subscriptionid="[% subscriptionidlist | html %]"  href="#skip_issues" class="btn btn-default btn-sm" data-toggle="modal" />
Lines 352-363 Link Here
352
            }
355
            }
353
        }
356
        }
354
357
355
        function generateNext(subscriptionid) {
356
            if(confirm(_("Do you really want to generate next serial?"))){
357
                document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid;
358
            }
359
        }
360
361
        $(document).ready(function() {
358
        $(document).ready(function() {
362
            if( $("#subscription_years .tab-pane.active").length < 1 ){
359
            if( $("#subscription_years .tab-pane.active").length < 1 ){
363
                $("#subscription_years a:first").tab("show");
360
                $("#subscription_years a:first").tab("show");
364
- 

Return to bug 37294